BigDecimal类型的累加
作者:互联网
// lastMonth.add(item.getNowMonthPlanSettle() != null ? item.getNowMonthPlanSettle() : new BigDecimal(0)); 这样累加会都是0
lastMonth = lastMonth.add(item.getNowMonthPlanSettle() != null ? item.getNowMonthPlanSettle() : new BigDecimal(0));
标签:lastMonth,BigDecimal,累加,item,add,类型,new,getNowMonthPlanSettle 来源: https://www.cnblogs.com/sglblog/p/16308830.html