Commit f9eb99cde83af9ad8c399d4a8222ad5314b68ff4

Authored by 谭毅彬
1 parent 98135dc7

库位不能为null

Signed-off-by: TanYibin <5491541@qq.com>
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&lt;LocationMapper, Location&gt; i @@ -99,7 +99,7 @@ public class LocationServiceImpl extends ServiceImpl&lt;LocationMapper, Location&gt; i
99 @Override 99 @Override
100 public Location getLocationByCode(String locationCode, String warehouseCode) { 100 public Location getLocationByCode(String locationCode, String warehouseCode) {
101 if (StringUtils.isEmpty(locationCode)) { 101 if (StringUtils.isEmpty(locationCode)) {
102 - throw new JeecgBootException("库位不能为空"); 102 + return null;
103 } 103 }
104 if (StringUtils.havaLowerCase(locationCode)) { 104 if (StringUtils.havaLowerCase(locationCode)) {
105 throw new JeecgBootException("库位不能有小字母:" + locationCode); 105 throw new JeecgBootException("库位不能有小字母:" + locationCode);