Commit ebd1415e authored by 张亚辉's avatar 张亚辉

分红处理

parent 006dc1a5
......@@ -158,11 +158,14 @@ public class ProductOrderServiceImpl implements ProductOrderService, Constant {
final TxFundNav txFundNav = txFundNavMap.get(String.valueOf(c.getFundId())).stream()
.filter(nav -> StringUtils.equals(String.valueOf(c.getFundId()), nav.getFundId())
&& c.getExDate().getTime() == nav.getPriceDate().getTime()).findFirst().get();
&& c.getExDate().getTime() == nav.getPriceDate().getTime()).findFirst().orElse(null);
if (txFundNav == null) {
return null;
}
build.setFundNet(txFundNav.getNav());
return build;
}).collect(Collectors.toList());
}).collect(Collectors.toList()).stream().filter(Objects::nonNull).collect(Collectors.toList());
}
return new ArrayList<>(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