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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
package com.yeshi.fanli.service.inter.push;
 
import java.util.Date;
import java.util.List;
 
import com.yeshi.fanli.entity.push.PushGoods;
import com.yeshi.fanli.exception.push.PushException;
import com.yeshi.fanli.exception.push.PushGoodsException;
 
public interface PushGoodsService {
 
    public int deleteByPrimaryKey(Long id) throws PushGoodsException;
 
    public int insert(PushGoods record) throws PushGoodsException;
 
    public int insertSelective(PushGoods record) throws PushGoodsException;
 
    public PushGoods selectByPrimaryKey(Long id);
 
    public int updateByPrimaryKeySelective(PushGoods record) throws PushGoodsException;
 
    public int updateByPrimaryKey(PushGoods record) throws PushGoodsException;
 
    public void save(PushGoods record, List<Long> goodsId) throws PushGoodsException,Exception;
    
    /**
     * 批量删除
     * @param list
     * @return
     */
    public int deleteBatchByPrimaryKey(List<Long> list) throws Exception;
    
    
    /**
     * 后端列表查询
     * @param start
     * @param count
     * @param key
     * @return
     */
    public List<PushGoods> listQuery(long start, int count, String key, Integer state);
    
    public long countQuery(String key, Integer state);
 
    /**
     * 获取历史推送商品信息
     * @param start
     * @param count
     * @param pushTime
     * @return
     */
    public List<PushGoods> listHistoryByPushTime(long start, int count, Long uid, Date pushTime);
 
    public long countHistoryByPushTime(Long uid, Date pushTime);
 
    
    /**
     * 执行推送
     * @param id
     * @throws Exception
     * @throws PushGoodsException
     * @throws PushException
     */
    public void executePush(PushGoods record) throws Exception, PushGoodsException, PushException;
 
    /**
     * 定时推送任务
     * @return
     */
    public List<PushGoods> listTask();
 
    /**
     * 定时推送处理
     * @param record
     */
    public void taskPush(PushGoods record);
 
    /**
     * 后端推送
     * @param id
     * @throws Exception
     * @throws PushGoodsException
     * @throws PushException
     */
    public void handPush(Long id) throws Exception, PushGoodsException, PushException;
 
    /**
     * 保存信息
     * @param record
     * @throws PushGoodsException
     * @throws Exception
     */
    public void saveInfo(PushGoods record) throws PushGoodsException, Exception;
    
}