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/impl/lable/LabelGoodsServiceImpl.java | 23 +++++++++++------------ 1 files changed, 11 insertions(+), 12 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/lable/LabelGoodsServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/lable/LabelGoodsServiceImpl.java index c929a10..f9d2628 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/impl/lable/LabelGoodsServiceImpl.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/lable/LabelGoodsServiceImpl.java @@ -65,8 +65,7 @@ if (ids != null && ids.size() > 0) { for (String gid: ids) { - Long goodsId = Long.parseLong(gid); - labelGoodsMapper.deleteByGoodsId(goodsId); + labelGoodsMapper.deleteByGoodsId(gid); } } } @@ -79,7 +78,7 @@ * @return */ @Override - public int deleteByGoodsIdAndLabId(Long goodsId, Long labId){ + public int deleteByGoodsIdAndLabId(String goodsId, Long labId){ return labelGoodsMapper.deleteByGoodsIdAndLabId(goodsId, labId); } @@ -96,18 +95,18 @@ @Override - public List<LabelGoods> queryByGoodsId(int start, int count, Long goodsId) throws LabelClassException { + public List<LabelGoods> queryByGoodsId(int start, int count, String goodsId) throws LabelClassException { return labelGoodsMapper.queryByGoodsId(start, count, goodsId); } @Override - public int getCountQueryByGoodsId(Long goodsId){ + public int getCountQueryByGoodsId(String goodsId){ return labelGoodsMapper.getCountQueryByGoodsId(goodsId); } @Override - public int getCountByGoodsId(Long goodsId){ + public int getCountByGoodsId(String goodsId){ return labelGoodsMapper.getCountByGoodsId(goodsId); } @@ -119,7 +118,7 @@ * @return */ @Override - public Long isExistence(Long goodsId, Long labId){ + public Long isExistence(String goodsId, Long labId){ return labelGoodsMapper.isExistence(goodsId, labId); } @@ -156,7 +155,7 @@ @Override @Transactional(rollbackFor=Exception.class) - public void batchGoodsAddLables(List<Long> goodsIdList, List<Long> labIdList, AdminUser admin) throws Exception { + public void batchGoodsAddLables(List<String> goodsIdList, List<Long> labIdList, AdminUser admin) throws Exception { /* 鍟嗗搧id 涓虹┖ 涓嶅鐞� */ if (goodsIdList == null || goodsIdList.size() == 0) { @@ -190,9 +189,9 @@ } - for (Long goodsId: goodsIdList) { + for (String goodsId: goodsIdList) { - TaoBaoGoodsBrief goodsBrief = taoBaoGoodsBriefService.selectByPrimaryKey(goodsId); + TaoBaoGoodsBrief goodsBrief = taoBaoGoodsBriefService.selectByGoodsId(goodsId); if (goodsBrief != null) { /* 璐翠笂鏍囩 锛� 宸茶创涓嶅鐞嗗垯 */ @@ -218,7 +217,7 @@ @Override @Transactional(rollbackFor=Exception.class) - public void singleGoodsAddLables(Long goodsId, List<Long> labIdList, AdminUser admin) throws Exception { + public void singleGoodsAddLables(String goodsId, List<Long> labIdList, AdminUser admin) throws Exception { /* 鍟嗗搧id 涓虹┖ 涓嶅鐞� */ if (goodsId == null) { @@ -234,7 +233,7 @@ return; } - TaoBaoGoodsBrief goodsBrief = taoBaoGoodsBriefService.selectByPrimaryKey(goodsId); + TaoBaoGoodsBrief goodsBrief = taoBaoGoodsBriefService.selectByGoodsId(goodsId); if (goodsBrief == null) { return; } -- Gitblit v1.8.0