mitao
2024-07-08 022a7ff7abf82cd2546e18071ade5228b4e2339f
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
package com.sinata.modular.system.dao;
 
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.sinata.modular.system.model.MyCoupon;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
 
/**
 * <p>
 * 优惠券 Mapper 接口
 * </p>
 *
 * @author fq
 * @since 2023-03-05
 */
public interface MyCouponMapper extends BaseMapper<MyCoupon> {
    List<MyCoupon> selectMyCouponList(@Param("type")Integer type,@Param("beginTime")String beginTime,@Param("endTime") String endTime
            , @Param("name")String name,@Param("couponType")String couponType, @Param("serverType")String serverType, @Param("page")Page<MyCoupon> page);
 
    /**
     * 订单使用/退还优惠券
     * @param userId
     * @param couponId
     * @param isUse
     * @return
     */
    boolean updateUseCoupon(@Param("userId") Integer userId, @Param("couponId") Integer couponId, @Param("isUse") Integer isUse);
 
}