From b5239368f537527d861a2cd954e0d66659b99e8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=9D=BE?= <8605635+zhang3064194730@user.noreply.gitee.com> Date: Thu, 27 Nov 2025 14:16:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E8=8F=9C=E6=97=B6=E9=97=B4=E5=AE=8C?= =?UTF-8?q?=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/product/service/impl/ConsStockFlowServiceImpl.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/ConsStockFlowServiceImpl.java b/cash-service/product-service/src/main/java/com/czg/service/product/service/impl/ConsStockFlowServiceImpl.java index c7f678c54..271783bd7 100644 --- a/cash-service/product-service/src/main/java/com/czg/service/product/service/impl/ConsStockFlowServiceImpl.java +++ b/cash-service/product-service/src/main/java/com/czg/service/product/service/impl/ConsStockFlowServiceImpl.java @@ -97,7 +97,7 @@ consStockFlow.setCreateUserName(createUserName); String conId = entity.getConId(); ConsInfo consInfo; - if (entity.getConId() == null) { + if (StrUtil.isBlank(entity.getConId())) { consInfo = consInfoMapper.selectOneByQuery(new QueryWrapper().like(ConsInfo::getConName, entity.getConName()) .eq(ConsInfo::getShopId, shopId).limit(1)); entity.setConId(consInfo == null ? null : consInfo.getId().toString());