1.修复新用户注册创建默认仓库码从1000开始问题

2.修改提示删除建垛规则提示信息
master
x_z 2 years ago
parent d25b0321e7
commit 0de518e40f

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

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

Loading…
Cancel
Save