From 154a1a0930a9dda3714de34d62b9ff73798d7b8b Mon Sep 17 00:00:00 2001 From: wangw <1594593906@qq.com> Date: Sat, 12 Apr 2025 17:30:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E5=90=8C=E6=AD=A5=20?= =?UTF-8?q?=E5=85=B3=E8=81=94Id?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../czg/service/product/service/impl/ShopSyncServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cash-service/product-service/src/main/java/com/czg/service/product/service/impl/ShopSyncServiceImpl.java b/cash-service/product-service/src/main/java/com/czg/service/product/service/impl/ShopSyncServiceImpl.java index 381117af6..4230f341c 100644 --- a/cash-service/product-service/src/main/java/com/czg/service/product/service/impl/ShopSyncServiceImpl.java +++ b/cash-service/product-service/src/main/java/com/czg/service/product/service/impl/ShopSyncServiceImpl.java @@ -620,7 +620,7 @@ public class ShopSyncServiceImpl implements ShopSyncService { List> mainMapList = new ArrayList<>(); Map dataMap = new HashMap<>(); Product newEntity = BeanUtil.copyProperties(mainEntity, Product.class); - newEntity.setSyncId(mainEntity.getSyncId()); + newEntity.setSyncId(mainEntity.getId()); newEntity.setShopId(shopId); newEntity.setCategoryId(newEntity.getCategoryId() != null ? categoryMap.get(shopId) : null); newEntity.setSpecId(newEntity.getSpecId() != null ? specMap.get(shopId) : null);