From 6637180cbf93f1e6410713706580c57541dc34d1 Mon Sep 17 00:00:00 2001 From: liyj <1617420630@qq.com> Date: Mon, 20 Oct 2025 15:36:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=80=9D=E8=BF=85=E5=90=8C=E6=AD=A5=E5=BA=93?= =?UTF-8?q?=E5=AD=98=E9=97=AE=E9=A2=98=E4=BF=AE=E6=94=B9=EF=BC=8C=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E9=97=AE=E9=A2=98=E6=89=A3=E5=87=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mall/shop/sync/service/impl/SyncThirdDataServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mall-shop/src/main/java/com/suisung/mall/shop/sync/service/impl/SyncThirdDataServiceImpl.java b/mall-shop/src/main/java/com/suisung/mall/shop/sync/service/impl/SyncThirdDataServiceImpl.java index 5471e585..7763519c 100644 --- a/mall-shop/src/main/java/com/suisung/mall/shop/sync/service/impl/SyncThirdDataServiceImpl.java +++ b/mall-shop/src/main/java/com/suisung/mall/shop/sync/service/impl/SyncThirdDataServiceImpl.java @@ -901,7 +901,7 @@ public class SyncThirdDataServiceImpl extends SyncBaseThirdSxAbstract implements String productKey= (String) k; String[] productKeyArrys=productKey.split("-"); logger.info("productNumber:{}",productKeyArrys[0]); - logger.info("orderId:{}",productKeyArrys[0]); + logger.info("orderId:{}",productKeyArrys[1]); if(productKeyArrys.length!=2){ return; } @@ -958,7 +958,7 @@ public class SyncThirdDataServiceImpl extends SyncBaseThirdSxAbstract implements String itemId=productBase.getProduct_number(); cn.hutool.json.JSONArray array_item_spec= JSONUtil.parseArray(spuItem.getItem_spec()); if(array_item_spec.isEmpty()){ - redisTemplate.opsForHash().increment(key, itemId, delta.doubleValue()); + redisTemplate.opsForHash().increment(key, itemId+"-"+orderId, delta.doubleValue()); continue; } cn.hutool.json.JSONObject item = (cn.hutool.json.JSONObject) ((cn.hutool.json.JSONObject) array_item_spec.get(0)).get("item");