|
@ -378,12 +378,12 @@ public class ScreenProjectCategoryOrgDailyServiceImpl extends BaseServiceImpl<Sc |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
Map<Boolean, List<CategoryProjectResultDTO>> groupByStatus = categoryProjectGrid.stream().collect(Collectors.groupingBy(CategoryProjectResultDTO::getStatus)); |
|
|
Map<Boolean, List<CategoryProjectResultDTO>> groupByStatus = categoryProjectGrid.stream().collect(Collectors.groupingBy(CategoryProjectResultDTO::getStatus)); |
|
|
// 取出分类标签code不一样的数据
|
|
|
// 取出分类标签code同agency级别不一样的数据
|
|
|
List<CategoryProjectResultDTO> categoryProjectResultDTOS1 = groupByStatus.get(false); |
|
|
List<CategoryProjectResultDTO> categoryProjectResultDTOS1 = groupByStatus.get(false); |
|
|
categoryProjectResultDTOS.addAll(categoryProjectResultDTOS1); |
|
|
categoryProjectResultDTOS.addAll(categoryProjectResultDTOS1); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
// result = ConvertUtils.sourceToTarget(categoryProjectResultDTOS,ScreenProjectCategoryOrgDailyEntity.class);
|
|
|
result = ConvertUtils.sourceToTarget(categoryProjectResultDTOS,ScreenProjectCategoryOrgDailyEntity.class); |
|
|
/** |
|
|
/** |
|
|
* 查询父子客户所有的分类,根据分类分组,然后把agencyId统一换成父客户的 |
|
|
* 查询父子客户所有的分类,根据分类分组,然后把agencyId统一换成父客户的 |
|
|
* 在保存一份子客户自己agencyId的 |
|
|
* 在保存一份子客户自己agencyId的 |
|
@ -409,6 +409,8 @@ public class ScreenProjectCategoryOrgDailyServiceImpl extends BaseServiceImpl<Sc |
|
|
} |
|
|
} |
|
|
// 此时的 'categoryProjectResultDTOS' 等于 父子客户所有的分类标签
|
|
|
// 此时的 'categoryProjectResultDTOS' 等于 父子客户所有的分类标签
|
|
|
Map<String, List<CategoryProjectResultDTO>> groupByCategoryCode = categoryProjectResultDTOS.stream().collect(Collectors.groupingBy(CategoryProjectResultDTO::getCategoryCode)); |
|
|
Map<String, List<CategoryProjectResultDTO>> groupByCategoryCode = categoryProjectResultDTOS.stream().collect(Collectors.groupingBy(CategoryProjectResultDTO::getCategoryCode)); |
|
|
|
|
|
// 这时的result集合要清空,因为被上边使用 【result = ConvertUtils.sourceToTarget(categoryProjectResultDTOS,ScreenProjectCategoryOrgDailyEntity.class);】
|
|
|
|
|
|
result.clear(); |
|
|
List<ScreenProjectCategoryOrgDailyEntity> finalResult = result; |
|
|
List<ScreenProjectCategoryOrgDailyEntity> finalResult = result; |
|
|
groupByCategoryCode.forEach((code, list) -> { |
|
|
groupByCategoryCode.forEach((code, list) -> { |
|
|
ScreenProjectCategoryOrgDailyEntity e = new ScreenProjectCategoryOrgDailyEntity(); |
|
|
ScreenProjectCategoryOrgDailyEntity e = new ScreenProjectCategoryOrgDailyEntity(); |
|
|