From 9a24f2802a3d6fe3e82c05e52f2880d65ad04dcf Mon Sep 17 00:00:00 2001 From: yujian <yujian> Date: 星期一, 29 四月 2019 08:59:47 +0800 Subject: [PATCH] Merge branch 'div_develop' into master_develop --- fanli/src/main/java/com/yeshi/fanli/service/inter/goods/CommonGoodsService.java | 50 +++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 49 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 321b354..50562ee 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,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; /** * 鏇存柊鍟嗗搧淇℃伅 @@ -36,4 +48,40 @@ */ public void offlineCommonGoods(Long goodsId, int goodsType); + /** + * 鏍规嵁鍟嗗搧ID鍜屽晢鍝佺被鍨嬫煡璇㈠簱鍟嗗搧 + * + * @param goodsId + * @param goodsType + * @return + */ + 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); + } -- Gitblit v1.8.0