Commit 8623e72f authored by 张亚辉's avatar 张亚辉

净值涨跌幅

parent 2761daa0
......@@ -780,8 +780,8 @@ public class ProductServiceImpl implements ProductService, Constant {
FundNav pre = fundNavs.get(i + 1);
if (pre.getNav().compareTo(BigDecimal.ZERO) == 1) {
BigDecimal dailyIncrease = f.getNav().subtract(pre.getNav()).divide(pre.getNav(), 2, BigDecimal.ROUND_HALF_UP);
vo.setDailyIncrease(BigDecimalUtil.toString(dailyIncrease, 2));
BigDecimal dailyIncrease = f.getNav().subtract(pre.getNav()).divide(pre.getNav(), 4, BigDecimal.ROUND_HALF_UP);
vo.setDailyIncrease(BigDecimalUtil.multiply100(dailyIncrease));
}
}
}
......
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