From 2970e109d9640585ca059cdc152d040ceb59be5a Mon Sep 17 00:00:00 2001 From: liuchen864 <23082234@qq.com> Date: Thu, 14 Dec 2023 16:12:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9Bug=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../win/module/wms/service/location/LocationServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/win-module-wms/win-module-wms-biz/src/main/java/com/win/module/wms/service/location/LocationServiceImpl.java b/win-module-wms/win-module-wms-biz/src/main/java/com/win/module/wms/service/location/LocationServiceImpl.java index 1297509c..9298cb37 100644 --- a/win-module-wms/win-module-wms-biz/src/main/java/com/win/module/wms/service/location/LocationServiceImpl.java +++ b/win-module-wms/win-module-wms-biz/src/main/java/com/win/module/wms/service/location/LocationServiceImpl.java @@ -316,8 +316,8 @@ public class LocationServiceImpl implements LocationService { JSONObject jsonObject = JSONUtil.parseObj(ruleRespVO.getConfiguration()); String locationCode = jsonObject.getStr("LocationCode"); //设置了库位直接返回 - if (locationCode != null) { - return this.selectLocation(String.valueOf(locationCode)); + if (locationCode != null && !locationCode.isEmpty()) { + return this.selectLocation(locationCode); } //增加过滤条件 QueryWrapper queryWrapper = new QueryWrapper<>();