admin
2020-05-20 98b1a0affd69bbe63223c21fdd2c404e8bedfccb
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
package com.yeshi.fanli.service.inter.config;
 
import java.math.BigDecimal;
import java.util.List;
 
import com.yeshi.fanli.entity.system.SystemCoupon;
 
public interface SystemCouponService {
 
    public int insertSelective(SystemCoupon record);
 
    public SystemCoupon selectByPrimaryKey(Long id);
 
    public int updateByPrimaryKeySelective(SystemCoupon record);
 
    public int updateByPrimaryKey(SystemCoupon record);
    
    /**
     * 根据主键批量删除
     * @param list
     * @return
     */
    public int deleteBatchByPrimaryKey(List<Long> list);
 
    /**
     * 跟订单使用的券
     * @return
     */
    public List<SystemCoupon> getOrderCouponList();
    
 
    /**
     * 跟商品使用的券
     * @return
     */
    public List<SystemCoupon> getGoodsCouponList();
 
    /**
     * 根据类型查询
     * @param type
     * @return
     */
    public SystemCoupon getCouponByType(String type);
 
    /**
     * 根据类型、比例查询
     * @param type
     * @param percent
     * @return
     */
    public SystemCoupon getCouponByTypeAndPercent(String type, BigDecimal percent);
 
    /**
     * 赠送免单券
     * @return
     */
    public List<SystemCoupon> getGiveFreeCouponList();
    
}