Administrator
2018-11-26 31d6bd3dd8163a5d6c182110dcf21e94b4770dac
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
package com.yeshi.fanli.service.inter.goods;
 
import com.yeshi.fanli.exception.goods.CommonGoodsException;
import com.yeshi.fanli.goods.CommonGoods;
 
/**
 * 常规商品库
 * 
 * @author Administrator
 *
 */
public interface CommonGoodsService {
 
    /**
     * 添加商品(无就添加,有则更新)
     * 
     * @param commonGoods
     * @return
     * @throws CommonGoodsException
     */
    public CommonGoods addOrUpdateCommonGoods(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);
 
}