Browse Source

代码逻辑调整

dev_shibei_match
sunyuchao 4 years ago
parent
commit
3227011268
  1. 6
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/service/impl/IssueProjectCategoryDictServiceImpl.java

6
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/service/impl/IssueProjectCategoryDictServiceImpl.java

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

Loading…
Cancel
Save