From 30d8e227e8d823b6c38c3b9c90ac2df03b63befe Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期二, 25 二月 2025 16:41:22 +0800 Subject: [PATCH] 淘宝转链接口更新 --- fanli/src/main/java/com/yeshi/fanli/service/inter/goods/CommonGoodsService.java | 190 +++++++++++++++++++++++++--------------------- 1 files changed, 103 insertions(+), 87 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 50562ee..af7ce13 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,87 +1,103 @@ -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; - -/** - * 甯歌鍟嗗搧搴� - * - * @author Administrator - * - */ -public interface CommonGoodsService { - - /** - * 娣诲姞鍟嗗搧锛堟棤灏辨坊鍔狅紝鏈夊垯鏇存柊锛� - * - * @param commonGoods - * @return - * @throws CommonGoodsException - */ - public CommonGoods addOrUpdateCommonGoods(CommonGoods commonGoods) throws CommonGoodsException; - - - /** - * 娣诲姞鍟嗗搧锛堟棤灏辨坊鍔狅紝鏈夊垯杩斿洖锛� - * - * @param commonGoods - * @return - * @throws CommonGoodsException - */ - public CommonGoods addCommonGoods(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); - - /** - * 鏍规嵁鍟嗗搧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); - -} +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; + +/** + * 甯歌鍟嗗搧搴� + * + * @author Administrator + * + */ +public interface CommonGoodsService { + + /** + * 娣诲姞鍟嗗搧锛堟棤灏辨坊鍔狅紝鏈夊垯鏇存柊锛� + * + * @param commonGoods + * @return + * @throws CommonGoodsException + */ + public CommonGoods addOrUpdateCommonGoods(CommonGoods commonGoods) throws CommonGoodsException; + + + /** + * 娣诲姞鍟嗗搧锛堟棤灏辨坊鍔狅紝鏈夊垯杩斿洖锛� + * + * @param commonGoods + * @return + * @throws CommonGoodsException + */ + public CommonGoods addCommonGoods(CommonGoods commonGoods) throws CommonGoodsException; + + /** + * 鏇存柊鍟嗗搧淇℃伅 + * + * @param commonGoods + * @throws CommonGoodsException + */ + public void updateCommonGoods(CommonGoods commonGoods) throws CommonGoodsException; + + /** + * 鍟嗗搧涓嬬嚎 + * + * @param goodsId + * @param goodsType + */ + public void offlineCommonGoods(String goodsId, Integer goodsType); + + /** + * 鏍规嵁鍟嗗搧ID鍜屽晢鍝佺被鍨嬫煡璇㈠簱鍟嗗搧 + * + * @param goodsId + * @param goodsType + * @return + */ + public CommonGoods getCommonGoodsByGoodsIdAndGoodsType(String goodsId, Integer 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, Integer goodsType); + + /** + * 缁熻搴楅摵鍟嗗搧鏈夊埜鏁伴噺 + * @param sellerId + * @return + */ + public long countBySellerIdAndHasCoupon(Long sellerId, Integer goodsType); + + + /** + * 鎵归噺鍟嗗搧id鏌ヨ鍟嗗搧淇℃伅 + * @param list + * @return + */ + public List<CommonGoods> getByListGoodsId(List<String> list, Integer goodsType); + + + /** + * 鑾峰彇鍟嗗搧 + * @param id + * @return + */ + public CommonGoods selectByPrimaryKey(Long id); + +} -- Gitblit v1.8.0