Commit 5da084ac authored by 张亚辉's avatar 张亚辉

排序

parent ca4c65b2
......@@ -1480,7 +1480,8 @@ public class ProductServiceImpl implements ProductService, Constant {
fundNavs = fundNavs.stream().collect(
Collectors.collectingAndThen(
Collectors.toCollection(() ->
new TreeSet<>(Comparator.comparing(IfaImportedFundNav::getPriceDate))), ArrayList::new));
new TreeSet<>(Comparator.comparing(IfaImportedFundNav::getPriceDate))), ArrayList::new))
.stream().sorted(Comparator.comparing(IfaImportedFundNav::getPriceDate).reversed()).collect(Collectors.toList());
return new Page<>(page, startPage.getTotal(), fundNavs.stream()
.sorted(Comparator.comparing(IfaImportedFundNav::getPriceDate).reversed())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment