This commit is contained in:
parent
10cc6c2cde
commit
d5ed07d4d0
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue