|
|
@ -211,18 +211,18 @@ public class IssueProjectCategoryDictServiceImpl extends BaseServiceImpl<IssuePr |
|
|
|
} |
|
|
|
//end sun
|
|
|
|
customerIdList.forEach(cu->{ |
|
|
|
List<IssueProjectCategoryDictEntity> list = baseDao.selectCategoryListByCustomer(formDTO.getCustomerId()); |
|
|
|
List<IssueProjectCategoryDictEntity> list = baseDao.selectCategoryListByCustomer(cu); |
|
|
|
if (CollectionUtils.isEmpty(list)) { |
|
|
|
//分类初始化
|
|
|
|
List<IssueProjectCategoryDictEntity> categoryList = baseDao.selectCategoryListByCustomer("default"); |
|
|
|
categoryList.forEach(item -> { |
|
|
|
item.setCustomerId(formDTO.getCustomerId()); |
|
|
|
item.setCustomerId(cu); |
|
|
|
}); |
|
|
|
this.insertBatch(categoryList); |
|
|
|
//标签初始化
|
|
|
|
List<IssueProjectTagDictEntity> tagList = issueProjectTagDictService.getTagListByCustomer("default"); |
|
|
|
tagList.forEach(item -> { |
|
|
|
item.setCustomerId(formDTO.getCustomerId()); |
|
|
|
item.setCustomerId(cu); |
|
|
|
}); |
|
|
|
issueProjectTagDictService.insertBatch(tagList); |
|
|
|
} |
|
|
|