Helius
2022-05-27 4351e71d782741143a98f86f6648acd16689165f
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
53
54
55
56
57
58
59
60
61
62
package com.matrix.system.shopXcx.dao;
 
import com.matrix.core.pojo.PaginationVO;
import com.matrix.system.shopXcx.bean.ShopCoupon;
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 ShopCouponDao{
 
    public int insert(@Param("item") ShopCoupon shopCoupon);
       
       public int batchInsert(@Param("list") List<ShopCoupon> shopCouponList);
       
    public int updateByMap(Map<String, Object> modifyMap);
    
    public int updateByModel(@Param("record") ShopCoupon shopCoupon);
    
    public int deleteByIds(@Param("list") List<String> list);
    
    public int deleteById(Integer id);
 
    public int deleteByModel(@Param("record") ShopCoupon shopCoupon);
    
    public List<ShopCoupon> selectInPage(@Param("record") ShopCoupon shopCoupon, @Param("pageVo") PaginationVO pageVo);
 
    public List<ShopCoupon> selectByModel(@Param("record") ShopCoupon shopCoupon);
    
    public int selectTotalRecord(@Param("record") ShopCoupon shopCoupon);
    
    public ShopCoupon  selectById(Integer id);
    
    public ShopCoupon  selectForUpdate(Integer id);
 
    List<ShopCoupon> selectUsableCoupon(@Param("isNewPeople") boolean isNewPeople, @Param("userId") String userId,
                                        @Param("pageVo") PaginationVO pageVo);
 
    List<ShopCoupon> selectUsableCouponByProductInfo(@Param("userId") String userId,
                                        @Param("productId") Integer productId, @Param("attrIds") List<String> attrIds);
 
    List<ShopCoupon> selectCouponListByTag(@Param("isNewPeople") boolean isNewPeople, @Param("userId") String userId,
                                           @Param("tag") String tag,@Param("companyId") Long companyId);
 
    public int updateStateByStateAndIds(@Param("list") List<String> list, @Param("state") int state);
 
    int updateAllCouponStatus();
 
    int updateCouponStatusById(@Param("id") Integer id);
 
    ShopCoupon selectByIdAndUserId(@Param("id") Integer id, @Param("userId") String userId);
 
    public List<ShopCoupon> selectHdListByProductId(@Param("productId") Integer productId, @Param("attrIds") List<String> attrIds, @Param("companyId")Long companyId);
 
    ShopCoupon getCouponByTitle(@Param("title")String title, @Param("companyId")Long companyId);
 
}