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
package com.yeshi.fanli.service.inter.push;
 
import java.util.List;
 
import com.yeshi.fanli.entity.push.PushCoupon;
import com.yeshi.fanli.exception.push.PushCouponException;
import com.yeshi.fanli.exception.push.PushException;
 
public interface PushCouponService {
 
    public int deleteByPrimaryKey(Long id);
 
    public int insert(PushCoupon record);
 
    public int insertSelective(PushCoupon record);
 
    public PushCoupon selectByPrimaryKey(Long id);
 
    public int updateByPrimaryKeySelective(PushCoupon record);
 
    public int updateByPrimaryKey(PushCoupon record);
 
    public void deleteBatchByPrimaryKey(List<Long> list);
    
    /**
     * 后端列表查询
     * @param start
     * @param count
     * @param key
     * @return
     */
    public List<PushCoupon> listQuery(long start, int count, String key, Integer state);
    
    public long countQuery(String key, Integer state) throws PushCouponException;
    
 
    public void save(PushCoupon record) throws PushCouponException, Exception;
 
    /**
     * 执行推送
     * @param id
     * @throws Exception
     * @throws PushCouponException
     * @throws PushException
     */
    public void executePush(Long id) throws Exception, PushCouponException, PushException;
    
    
    /**
     *  有效活动
     * @return
     */
    public List<PushCoupon> listQueryEffective();
 
    
}