|
|
@ -345,7 +345,7 @@ public class IssueProjectCategoryDictServiceImpl extends BaseServiceImpl<IssuePr |
|
|
|
entity.setPid(NumConstant.ZERO_STR ); |
|
|
|
entity.setPids(NumConstant.ZERO_STR ); |
|
|
|
entity.setParentCategoryCode(NumConstant.ZERO_STR); |
|
|
|
// 查询 当前客户下,+1 后最大的一级分类数。从1开始
|
|
|
|
// 查询 当前客户下最大的一级分类数。
|
|
|
|
Integer maxCategoryCode = baseDao.getMaxCategoryCode(formDTO.getCustomerId(), NumConstant.ZERO_STR); |
|
|
|
if (NumConstant.ZERO == maxCategoryCode) { |
|
|
|
maxCategoryCode = 1001; |
|
|
@ -406,7 +406,7 @@ public class IssueProjectCategoryDictServiceImpl extends BaseServiceImpl<IssuePr |
|
|
|
entity.setPids(formDTO.getParentCategoryId()); |
|
|
|
IssueProjectCategoryDictEntity parentCategoryCode = baseDao.selectById(formDTO.getParentCategoryId()); |
|
|
|
entity.setParentCategoryCode(parentCategoryCode.getCategoryCode()); |
|
|
|
// 查询 当前客户下,+1 后最大的一级分类数
|
|
|
|
// 查询 当前客户下最大的一级分类数。
|
|
|
|
Integer maxCategoryCode = baseDao.getMaxCategoryCode(formDTO.getCustomerId(), parentCategoryCode.getCategoryCode()); |
|
|
|
if (NumConstant.ZERO == maxCategoryCode) { |
|
|
|
maxCategoryCode = Integer.valueOf(parentCategoryCode.getCategoryCode() + "1001"); |
|
|
|