admin
2019-07-11 3824cbcaec6e6c67418d5280a53e9c2fedeef6f9
fanli/src/main/java/com/yeshi/fanli/service/inter/goods/CommonGoodsService.java
@@ -21,6 +21,16 @@
    * @throws CommonGoodsException
    */
   public CommonGoods addOrUpdateCommonGoods(CommonGoods commonGoods) throws CommonGoodsException;
   /**
    * 添加商品(无就添加,有则返回)
    *
    * @param commonGoods
    * @return
    * @throws CommonGoodsException
    */
   public CommonGoods addCommonGoods(CommonGoods commonGoods) throws CommonGoodsException;
   /**
    * 更新商品信息
@@ -53,4 +63,33 @@
    */
   public void updateBatchCommonGoods(List<CommonGoods> listCommonGoods);
   /**
    * 批量插入
    * @param listCommonGoods
    */
   public void addBatchCommonGoods(List<CommonGoods> listCommonGoods);
   /**
    *  根据店铺id查询 最新5个
    * @param sellerId
    * @return
    */
   public List<CommonGoods> listBySellerId(Long sellerId);
   /**
    * 统计店铺商品有券数量
    * @param sellerId
    * @return
    */
   public long countBySellerIdAndHasCoupon(Long sellerId);
   /**
    * 批量商品id查询商品信息
    * @param list
    * @return
    */
   public List<CommonGoods> getByListGoodsId(List<Long> list);
}