Commit 848895b5 authored by pengxiong's avatar pengxiong

去掉RetIncep字段排序

parent 043baf6d
......@@ -543,11 +543,15 @@ public class ProductServiceImpl implements ProductService, Constant {
return;
}
// List<FundCount> list = mappings.stream()
// .filter(mapping -> fundCountMap.containsKey(mapping.getFundId()))
// .map(m -> fundCountMap.get(m.getFundId()))
// .sorted(Comparator.comparing(FundCount::getRetIncep).reversed())
// .collect(Collectors.toList());
List<FundCount> list = mappings.stream()
.filter(mapping -> fundCountMap.containsKey(mapping.getFundId()))
.map(m -> fundCountMap.get(m.getFundId()))
.sorted(Comparator.comparing(FundCount::getRetIncep).reversed())
.collect(Collectors.toList());
.map(m -> fundCountMap.get(m.getFundId())).collect(Collectors.toList());
if (CollectionUtils.isNotEmpty(list)) {
FundCount fundCount = list.get(0);
......
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