From 573c491b4a1ba60e12a5678a01c1546c0077c1ee Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期二, 30 七月 2019 09:07:42 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- fanli/src/main/java/com/yeshi/fanli/service/inter/goods/CommonGoodsService.java | 39 ++++++++++++++++++++++++++++++++++++++- 1 files changed, 38 insertions(+), 1 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/inter/goods/CommonGoodsService.java b/fanli/src/main/java/com/yeshi/fanli/service/inter/goods/CommonGoodsService.java index 382067d..03def9f 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/inter/goods/CommonGoodsService.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/inter/goods/CommonGoodsService.java @@ -1,5 +1,7 @@ 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; @@ -53,6 +55,41 @@ * @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); + + /** + * 鏍规嵁搴楅摵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); } -- Gitblit v1.8.0