xuhy
2025-01-09 712f70b2936079a131ecb1e63c6d337171618cad
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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.BaseWarpper;
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<UserMerchantCoupon> {
 
 
    /**
     * 根据核销码获取用户商家优惠券
     * @param code
     * @return
     */
    UserMerchantCouponWapper getUserMerchantCoupon(@Param("code") String code);
 
 
    /**
     * 商家获取优惠券核销记录
     * @param id
     * @param pageNum
     * @param size
     * @return
     */
    List<Map<String, Object>> getWriteOffHistory(@Param("activityId") Integer activityId, @Param("id") Integer id,
                                                 @Param("pageNum") Integer pageNum, @Param("size") Integer size);
 
 
    /**
     * 获取我的商家券
     * @param uid
     * @param type
     * @return
     */
    List<MerchantCouponWarpper> getMyMerchantCoupon(@Param("uid") Integer uid, @Param("type") Integer type);
 
 
    /**
     * 修改过期状态
     */
    void updateExpired();
}