From 745eb2e35b7e5859f68d7052484ac4f57fdaf484 Mon Sep 17 00:00:00 2001 From: yuanye <418471657@qq.com> Date: Mon, 31 Mar 2025 17:47:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BB=B7=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/src/main/java/com/hfkj/jd/Impl/JdServiceImpl.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/service/src/main/java/com/hfkj/jd/Impl/JdServiceImpl.java b/service/src/main/java/com/hfkj/jd/Impl/JdServiceImpl.java index 431c19e..308d8d5 100644 --- a/service/src/main/java/com/hfkj/jd/Impl/JdServiceImpl.java +++ b/service/src/main/java/com/hfkj/jd/Impl/JdServiceImpl.java @@ -534,8 +534,8 @@ public class JdServiceImpl implements JdService { // 查询规格 GoodsSpecs specs = goodsSpecsService.queryDetailByThirdId(goodsMsg.getThirdId()); - if (specs != null) { - if (specs.getAutomaticPrice() == 1) { + if (specs != null && specs.getThirdId() != null) { + if (specs.getAutomaticPrice() != null && specs.getAutomaticPrice() == 1) { // 根据skuId 查询商品详情 // 根据skuId 查询商品售价 @@ -560,7 +560,6 @@ public class JdServiceImpl implements JdService { goodsSpecsService.update(specs); } } - } @Override