|
|
@ -245,6 +245,7 @@ public class ScreenProjectServiceImpl implements ScreenProjectService { |
|
|
|
|
|
|
|
/** |
|
|
|
* @Description 【项目分类】查询项目分类 |
|
|
|
* 二级分类总数占比改为 二级分类总数/一级分类总数 |
|
|
|
* @param formDTO |
|
|
|
* @param tokenDto |
|
|
|
* @author zxc |
|
|
@ -325,6 +326,11 @@ public class ScreenProjectServiceImpl implements ScreenProjectService { |
|
|
|
collect.forEach(c -> { |
|
|
|
c.setChildren(c.getChildren().stream().sorted(Comparator.comparing(ProjectCategoryResultDTO::getProjectTotal).reversed()).collect(Collectors.toList())); |
|
|
|
}); |
|
|
|
collect.forEach(p -> { |
|
|
|
p.getChildren().forEach(c -> { |
|
|
|
c.setTotalRatio(ratio(c.getProjectTotal(), p.getProjectTotal())); |
|
|
|
}); |
|
|
|
}); |
|
|
|
return collect; |
|
|
|
} |
|
|
|
|
|
|
|