This commit is contained in:
mashuai 2025-02-14 17:54:28 +08:00
parent 10cc6c2cde
commit d5ed07d4d0
1 changed files with 1 additions and 0 deletions

View File

@ -460,6 +460,7 @@ public class ScrapApplyDetailsServiceImpl implements IScrapApplyDetailsService {
String result = list.stream()
.map(ScrapTotalListVo::getMonth) // 提取 month 属性
.distinct() // 去重
.sorted() // 按升序排序
.collect(Collectors.joining(",")); // 用逗号拼接
scrapTotalListVo.setTotalCost(totalCost);
scrapTotalListVo.setMonth(result);