<p>private Collection&lt;List&lt;List<Object>&gt;&gt; getSheetDatas(final String activityId) {
final List<MidLevelDemocracyEvaluationVO> midLevelDemocracyEvaluations = getMidLevelDemocracyEvaluations(activityId);
final Map&lt;Integer, List&lt;List<Object>&gt;&gt; collect = CollectionUtils.emptyIfNull(midLevelDemocracyEvaluations)
.stream()
.collect(Collectors.groupingBy(
MidLevelDemocracyEvaluationVO::getOrgSort,
LinkedHashMap::new,
Collectors.mapping(this::createDataObjects, Collectors.toList())));
return collect.values();</p>
代码优化 private CollectionListListObject getSheetDatasfinal String activityId final ListMidLevelDemocracyEvaluationVO midLevelDemocracyEvaluations = getMidLevelDemocracyEvaluationsactivityId;

原文地址: https://www.cveoy.top/t/topic/ishv 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录