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");