935090232@qq.com
2021-04-01 5371cd3262eea83baa626edddb5a6b1a9ede3cae
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
package com.matrix.system.hive.service;
 
import com.matrix.core.pojo.PaginationVO;
import com.matrix.system.app.dto.ShoppingGoodsListDto;
import com.matrix.system.app.vo.ShoppingGoodsDetailVo;
import com.matrix.system.app.vo.ShoppingGoodsListVo;
import com.matrix.system.hive.bean.ShoppingGoods;
import com.matrix.system.hive.plugin.util.BaseServices;
 
import java.util.Date;
import java.util.List;
/**
 *
 * @date 2016-07-30 09:54
 */
public interface ShoppingGoodsService  extends BaseServices<ShoppingGoods>{
    
    /**
     * 新增ShoppingGoods
     * 
     */
    public int add(ShoppingGoods shoppingGoods);
       
       /**
     * 更新ShoppingGoods
     * 
     */
    public int modify(ShoppingGoods shoppingGoods);
    
    /**
     * 批量删除ShoppingGoods
     * 
     */
    public int remove(List<Long> list);
 
    /**
     * 根据id删除ShoppingGoods
     * 
     */
    public int removeById(Long id);
    
    /**
     * 分页查询ShoppingGoods
     * 
     */
    public List<ShoppingGoods> findInPage(ShoppingGoods shoppingGoods, PaginationVO pageVo);
 
    /**
     * 根据对象查询ShoppingGoods
     * 
     */
    public List<ShoppingGoods> findByModel(ShoppingGoods shoppingGoods);
    /**
     * 数据迁移专用
     * @param shoppingGoods
     * @return
     */
    public List<ShoppingGoods> findByModelData(ShoppingGoods shoppingGoods);
    /**
     * 统计记录数ShoppingGoods
     * 
     */
    public int  findTotal(ShoppingGoods shoppingGoods);
    
    /**
     * 根据id查询ShoppingGoods
     * 
     */
    public ShoppingGoods  findById(Long id);
    
    public int update(Long id);
    
    
    
    
    /**
     * 数据迁移用
     * 分页查询查询项目充值卡,去除套餐
     */
    public List<ShoppingGoods> findInPageNoTaocan(ShoppingGoods shoppingGoods, PaginationVO pageVo);
    
    /**
     * 数据迁移用
     * 查询查询项目充值卡,去除套餐
     * 统计记录数ShoppingGoods
     */
    public int  findTotalNoTaocan(ShoppingGoods shoppingGoods);
    /**
     * 检测是否可以修改
     * @param id
     * @return
     */
    public boolean checkIsUpdate(Long id);
    /**
     * 查询所有
     * @author xiaochonggao
     * @email 760568680@qq.com
     * @date 2019年1月29日
     * @param shoppingGoods
     * @return
     */
    public List<ShoppingGoods> findAll(ShoppingGoods shoppingGoods);
 
    public  ShoppingGoods findByCode(String goodsCode);
 
    Date calInvalidTime(ShoppingGoods shoppingGoods, Integer type, Date buyDate);
 
    List<ShoppingGoodsListVo> findShoppingGoodsListForApi(ShoppingGoodsListDto shoppingGoodsListDto);
 
    int findShoppingGoodsListTotalForApi(ShoppingGoodsListDto shoppingGoodsListDto);
 
    ShoppingGoodsDetailVo findApiShoppingGoodsDetailById(Long id);
}