r.getTotalInvestMoney():也是BigDecimal 类型
BigDecimal totalInvestMoney=null;
for (RebareDetailedVO r : rdVoList) {
totalInvestMoney=totalInvestMoney.add(r.getTotalInvestMoney());
}
为什么add的时候会报错.
r.getTotalInvestMoney():也是BigDecimal 类型
BigDecimal totalInvestMoney=null;
for (RebareDetailedVO r : rdVoList) {
totalInvestMoney=totalInvestMoney.add(r.getTotalInvestMoney());
}
为什么add的时候会报错.