package com.stylefeng.guns.modular.system.dao; import com.baomidou.mybatisplus.mapper.BaseMapper; import com.stylefeng.guns.modular.system.model.UserMerchantCoupon; import com.stylefeng.guns.modular.system.warpper.MerchantCouponWarpper; import com.stylefeng.guns.modular.system.warpper.UserMerchantCouponWapper; import org.apache.ibatis.annotations.Param; import java.util.List; import java.util.Map; public interface UserMerchantCouponMapper extends BaseMapper { /** * 根据核销码获取用户商家优惠券 * @param code * @return */ UserMerchantCouponWapper getUserMerchantCoupon(@Param("code") String code); /** * 商家获取优惠券核销记录 * @param id * @param pageNum * @param size * @return */ List> getWriteOffHistory(@Param("activityId") Integer activityId, @Param("id") Integer id, @Param("pageNum") Integer pageNum, @Param("size") Integer size); /** * 获取我的商家券 * @param uid * @param type * @return */ List getMyMerchantCoupon(@Param("uid") Integer uid, @Param("type") Integer type); /** * 修改过期状态 */ void updateExpired(); }