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 59851a6..cfe0c6c 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
@@ -98,8 +98,11 @@ public class LocationServiceImpl extends ServiceImpl<LocationMapper, Location> i
 
     @Override
     public Location getLocationByCode(String locationCode, String warehouseCode) {
+        if (StringUtils.isEmpty(locationCode)) {
+            throw new JeecgBootException("库位不能为空");
+        }
         if (StringUtils.havaLowerCase(locationCode)) {
-            throw new JeecgBootException("库位不能有小字母" + locationCode);
+            throw new JeecgBootException("库位不能有小字母:" + locationCode);
         }
         LambdaQueryWrapper<Location> locationLambdaQueryWrapper = Wrappers.lambdaQuery();
         locationLambdaQueryWrapper.eq(Location::getCode, locationCode).eq(Location::getEnable, QuantityConstant.STATUS_ENABLE).eq(Location::getWarehouseCode,