From f9eb99cde83af9ad8c399d4a8222ad5314b68ff4 Mon Sep 17 00:00:00 2001 From: TanYibin <5491541@qq.com> Date: Mon, 19 Jun 2023 17:40:52 +0800 Subject: [PATCH] 库位不能为null --- huaheng-wms-core/src/main/java/org/jeecg/modules/wms/config/location/service/impl/LocationServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/huaheng-wms-core/src/main/java/org/jeecg/modules/wms/config/location/service/impl/LocationServiceImpl.java b/huaheng-wms-core/src/main/java/org/jeecg/modules/wms/config/location/service/impl/LocationServiceImpl.java index cfe0c6c..86007f8 100644 --- a/huaheng-wms-core/src/main/java/org/jeecg/modules/wms/config/location/service/impl/LocationServiceImpl.java +++ b/huaheng-wms-core/src/main/java/org/jeecg/modules/wms/config/location/service/impl/LocationServiceImpl.java @@ -99,7 +99,7 @@ public class LocationServiceImpl extends ServiceImpl<LocationMapper, Location> i @Override public Location getLocationByCode(String locationCode, String warehouseCode) { if (StringUtils.isEmpty(locationCode)) { - throw new JeecgBootException("库位不能为空"); + return null; } if (StringUtils.havaLowerCase(locationCode)) { throw new JeecgBootException("库位不能有小字母:" + locationCode); -- libgit2 0.22.2