From 2e5cc6ab928f963d54e380e62bba8cea7b306a6a Mon Sep 17 00:00:00 2001 From: SongZhang <2064194730@qq.com> Date: Tue, 27 Aug 2024 15:53:38 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BB=A3=E5=AE=A2=E4=B8=8B=E5=8D=95=20specSn?= =?UTF-8?q?ap=E4=B8=BAnull=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cashier/service/impl/productimpl/TbProductServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eladmin-system/src/main/java/cn/ysk/cashier/service/impl/productimpl/TbProductServiceImpl.java b/eladmin-system/src/main/java/cn/ysk/cashier/service/impl/productimpl/TbProductServiceImpl.java index d4107fbd..90de31c1 100644 --- a/eladmin-system/src/main/java/cn/ysk/cashier/service/impl/productimpl/TbProductServiceImpl.java +++ b/eladmin-system/src/main/java/cn/ysk/cashier/service/impl/productimpl/TbProductServiceImpl.java @@ -772,7 +772,7 @@ public class TbProductServiceImpl implements TbProductService { for (String res : result) { boolean found = false; for (Map spec : specList) { - if (res.equals(spec.get("specSnap").toString())) { + if (spec.get("specSnap")!= null && res.equals(spec.get("specSnap").toString())) { spec.put("isGrounding", true); found = true; break;