admin
2019-03-13 69bee82b81626b82b7f39f0e459e4f56b1699b51
fanli/src/main/java/com/yeshi/fanli/service/inter/goods/CommonGoodsService.java
@@ -1,7 +1,9 @@
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;
import com.yeshi.fanli.goods.CommonGoods;
/**
 * 常规商品库
@@ -19,6 +21,16 @@
    * @throws CommonGoodsException
    */
   public CommonGoods addOrUpdateCommonGoods(CommonGoods commonGoods) throws CommonGoodsException;
   /**
    * 添加商品(无就添加,有则返回)
    *
    * @param commonGoods
    * @return
    * @throws CommonGoodsException
    */
   public CommonGoods addCommonGoods(CommonGoods commonGoods) throws CommonGoodsException;
   /**
    * 更新商品信息
@@ -43,6 +55,19 @@
    * @param goodsType
    * @return
    */
   CommonGoods getCommonGoodsByGoodsIdAndGoodsType(Long goodsId, int goodsType);
   public CommonGoods getCommonGoodsByGoodsIdAndGoodsType(Long goodsId, int goodsType);
   /**
    * 批量更新
    * @param listCommonGoods
    */
   public void updateBatchCommonGoods(List<CommonGoods> listCommonGoods);
   /**
    * 批量插入
    * @param listCommonGoods
    */
   public void addBatchCommonGoods(List<CommonGoods> listCommonGoods);
}