admin
2018-12-12 ec6389a5f15c729a0a76577de04b61e602db0663
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
package com.yeshi.fanli.service.inter.goods;
 
import java.util.List;
 
import com.yeshi.fanli.entity.goods.CommonGoods;
import com.yeshi.fanli.exception.goods.CommonGoodsException;
 
/**
 * 常规商品库
 * 
 * @author Administrator
 *
 */
public interface CommonGoodsService {
 
    /**
     * 添加商品(无就添加,有则更新)
     * 
     * @param commonGoods
     * @return
     * @throws CommonGoodsException
     */
    public CommonGoods addOrUpdateCommonGoods(CommonGoods commonGoods) throws CommonGoodsException;
    
    
    /**
     * 添加商品(无就添加,有则返回)
     * 
     * @param commonGoods
     * @return
     * @throws CommonGoodsException
     */
    public CommonGoods addCommonGoods(CommonGoods commonGoods) throws CommonGoodsException;
 
    /**
     * 更新商品信息
     * 
     * @param commonGoods
     * @throws CommonGoodsException
     */
    public void updateCommonGoods(CommonGoods commonGoods) throws CommonGoodsException;
 
    /**
     * 商品下线
     * 
     * @param goodsId
     * @param goodsType
     */
    public void offlineCommonGoods(Long goodsId, int goodsType);
 
    /**
     * 根据商品ID和商品类型查询库商品
     * 
     * @param goodsId
     * @param goodsType
     * @return
     */
    public CommonGoods getCommonGoodsByGoodsIdAndGoodsType(Long goodsId, int goodsType);
 
    /**
     * 批量更新
     * @param listCommonGoods
     */
    public void updateBatchCommonGoods(List<CommonGoods> listCommonGoods);
 
 
    /**
     * 批量插入
     * @param listCommonGoods
     */
    public void addBatchCommonGoods(List<CommonGoods> listCommonGoods);
 
}