From 59e5f0b9eaffaa169dec1f0c9ed4b0cbb11a452d Mon Sep 17 00:00:00 2001 From: wangw <1594593906@qq.com> Date: Fri, 11 Apr 2025 10:28:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E6=97=B6=20=E5=A6=82?= =?UTF-8?q?=E6=9E=9C=E5=AD=98=E5=9C=A8=20=E4=BF=9D=E7=95=99=E6=9F=90?= =?UTF-8?q?=E4=BA=9B=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../product/service/impl/ShopSyncServiceImpl.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 25edf1fff..9abbe0363 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 @@ -500,6 +500,15 @@ public class ShopSyncServiceImpl implements ShopSyncService { if (finalMap.containsKey(shopId)) { Product childEntity = finalMap.get(shopId); newEntity.setId(childEntity.getId()); + newEntity.setStartTime(null); + newEntity.setEndTime(null); + newEntity.setDays(null); + newEntity.setIsHot(null); + newEntity.setIsStock(null); + newEntity.setIsSoldStock(null); + newEntity.setStockNumber(null); + newEntity.setIsSale(null); + newEntity.setIsRefundStock(null); productService.updateById(newEntity); } else { newEntity.setId(null); @@ -728,6 +737,9 @@ public class ShopSyncServiceImpl implements ShopSyncService { if (childSkuMap.containsKey(skus.getId())) { ProdSku childSku = childSkuMap.get(skus.getId()); newSku.setId(childSku.getId()); + newSku.setIsGrounding(null); + newSku.setIsPauseSale(null); + newSku.setRealSalesNumber(null); } else { newSku.setId(null); } @@ -854,6 +866,7 @@ public class ShopSyncServiceImpl implements ShopSyncService { if (finalMap.containsKey(shopId)) { ConsInfo childEntity = finalMap.get(shopId); newEntity.setId(childEntity.getId()); + newEntity.setStockNumber(null); consInfoService.updateById(newEntity); } else { newEntity.setId(null);