diff --git a/src/main/java/com/glxp/udi/admin/controller/basic/StackRulesController.java b/src/main/java/com/glxp/udi/admin/controller/basic/StackRulesController.java index 9962e91..682f89d 100644 --- a/src/main/java/com/glxp/udi/admin/controller/basic/StackRulesController.java +++ b/src/main/java/com/glxp/udi/admin/controller/basic/StackRulesController.java @@ -104,7 +104,7 @@ public class StackRulesController { } Long count = stackRulesService.countEnableRules(deleteRequest.getCustomerId()); if (count == 1) { - return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL, "至少保留一条规则"); + return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL, "至少保留一条启用规则"); } stackRulesService.delete(deleteRequest.getId()); return ResultVOUtils.success(); diff --git a/src/main/java/com/glxp/udi/admin/service/inventory/InvWarehouseService.java b/src/main/java/com/glxp/udi/admin/service/inventory/InvWarehouseService.java index b7913e8..da9bc43 100644 --- a/src/main/java/com/glxp/udi/admin/service/inventory/InvWarehouseService.java +++ b/src/main/java/com/glxp/udi/admin/service/inventory/InvWarehouseService.java @@ -150,7 +150,7 @@ public class InvWarehouseService { //查询数据库仓库中已经的最大仓库码 String maxCode = invWarehouseDao.selectMaxCode(filterInvWarehouseRequest); Integer code; - if (StrUtil.isNotBlank(maxCode)) { + if (StrUtil.isBlank(maxCode)) { code = 1000; //无仓库时,编码从1000开始 } else { code = Integer.parseInt(maxCode) + 1;