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
package com.yeshi.fanli.service.inter.push;
 
import java.util.List;
 
import com.yeshi.fanli.entity.push.PushGoodsGroup;
import com.yeshi.fanli.exception.push.PushGoodsGroupException;
 
public interface PushGoodsGroupService {
 
    public int deleteByPrimaryKey(Long id) throws PushGoodsGroupException;
 
    public int insert(PushGoodsGroup record) throws PushGoodsGroupException;
 
    public int insertSelective(PushGoodsGroup record) throws PushGoodsGroupException;
 
    public PushGoodsGroup selectByPrimaryKey(Long id) throws PushGoodsGroupException;
 
    public int updateByPrimaryKeySelective(PushGoodsGroup record) throws PushGoodsGroupException;
 
    public int updateByPrimaryKey(PushGoodsGroup record) throws PushGoodsGroupException;
 
 
    /**
     * 根据推送id统计
     * @param pushId
     * @return
     */
    public long countByPushId(Long pushId);
    
    /**
     * 根据推送id删除商品
     * @param pushId
     * @return
     */
    public int deleteByPushId(Long pushId) throws PushGoodsGroupException;
    
    /**
     * 批量插入
     * @param list
     * @return
     */
    public int insertBatch(List<PushGoodsGroup> list) throws PushGoodsGroupException;
    
    /**
     * 根据推送id查询
     * @param pushId
     * @return
     */
    public List<PushGoodsGroup> selectByPushId(Long pushId) throws PushGoodsGroupException;
    
    /**
     * 批量删除
     * @param list
     * @return
     */
    public int deleteBatchByPrimaryKey(List<Long> list) throws PushGoodsGroupException;
    
    /**
     * 批量删除 根据推送id
     * @param list
     * @return
     */
    public int deleteBatchByPushId(List<Long> list) throws PushGoodsGroupException;
    
    
    /**
     * 根据推送id查询商品所有信息
     * @param pushId
     * @return
     */
    public List<PushGoodsGroup> getAllInfoByPushId(Long pushId)  throws PushGoodsGroupException;
}