jyy
2021-04-09 1443f8eb9f3b001e84f101852aa5f6ec7f49f4c9
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
49
50
51
52
package com.matrix.system.shopXcx.dao;
 
import com.matrix.core.pojo.PaginationVO;
import com.matrix.system.shopXcx.bean.ShopCouponRecord;
import com.matrix.system.shopXcx.api.vo.CouponReceiveInfoVO;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
import java.util.Map;
 
/**
 * @description 优惠券领取记录
 * @author jyy
 * @date 2019-06-12 15:17
 */
public interface ShopCouponRecordDao{
 
    public int insert(@Param("item") ShopCouponRecord shopCouponRecord);
       
       public int batchInsert(@Param("list") List<ShopCouponRecord> shopCouponRecordList);
       
    public int updateByMap(Map<String, Object> modifyMap);
    
    public int updateByModel(@Param("record") ShopCouponRecord shopCouponRecord);
    
    public int deleteByIds(@Param("list") List<String> list);
    
    public int deleteById(Integer id);
 
    public int deleteByModel(@Param("record") ShopCouponRecord shopCouponRecord);
    
    public List<ShopCouponRecord> selectInPage(@Param("record") ShopCouponRecord shopCouponRecord, @Param("pageVo") PaginationVO pageVo);
 
    public List<ShopCouponRecord> selectByModel(@Param("record") ShopCouponRecord shopCouponRecord);
    
    public int selectTotalRecord(@Param("record") ShopCouponRecord shopCouponRecord);
    
    public ShopCouponRecord  selectById(Integer id);
    
    public ShopCouponRecord  selectForUpdate(Integer id);
 
    List<CouponReceiveInfoVO> selectMyCouponByUserId(@Param("userId") Long userId);
 
    CouponReceiveInfoVO selectMyCouponByReceiveId(@Param("receiveId") Integer receiveId);
 
    List<CouponReceiveInfoVO> selectMyCouponByStatus(@Param("companyId") Long shopId, @Param("userId") Long userId, @Param("status") Integer status,
                                                     @Param("pageVo") PaginationVO pageVo);
 
    List<CouponReceiveInfoVO> selectMyPastCoupon(@Param("companyId")Long shopId, @Param("userId") Long userId, @Param("pageVo") PaginationVO pageVo);
 
    int countUnuseCouponRecord(Long id);
}