Administrator
2018-11-23 29391e981f24a8498215d51f4d0196d57d601f99
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);
 
}