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);