private List createScoreRecodeList(final List tableSource, final String activityId) { return tableSource.stream() .flatMap(item -> item.getScoreList().stream()) .flatMap(scoreItem -> TreeBuilderUtil.postorderErgodic(scoreItem).stream()) .map(scoreItem -> createScoreRecode(scoreItem, activityId)) .collect(Collectors.toList()); }

代码优化 private ListActivityScoreRecodeEntity createScoreRecodeListfinal ListScoreItemTableSourceVO tableSource final String activityId

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

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