package com.ruoyi.mall.mapper; import java.util.List; import com.ruoyi.mall.domain.UserCoupon; /** * 优惠卷发放Mapper接口 * * @author ruoyi * @date 2023-11-07 */ public interface UserCouponMapper { /** * 查询优惠卷发放 * * @param cuId 优惠卷发放主键 * @return 优惠卷发放 */ public UserCoupon selectUserCouponByCuId(Long cuId); /** * 查询优惠卷发放列表 * * @param userCoupon 优惠卷发放 * @return 优惠卷发放集合 */ public List selectUserCouponList(UserCoupon userCoupon); /** * 新增优惠卷发放 * * @param userCoupon 优惠卷发放 * @return 结果 */ public int insertUserCoupon(UserCoupon userCoupon); /** * 修改优惠卷发放 * * @param userCoupon 优惠卷发放 * @return 结果 */ public int updateUserCoupon(UserCoupon userCoupon); /** * 删除优惠卷发放 * * @param cuId 优惠卷发放主键 * @return 结果 */ public int deleteUserCouponByCuId(Long cuId); /** * 批量删除优惠卷发放 * * @param cuIds 需要删除的数据主键集合 * @return 结果 */ public int deleteUserCouponByCuIds(Long[] cuIds); /** * 修改用户过期优惠卷 * * @return 结果 */ public int updateUserExpireCoupon(); }