|
@@ -1231,7 +1231,8 @@ public class SubInfoController extends BaseController {
|
|
|
|
|
|
//总完成投资
|
|
|
BigDecimal allEndAmt = BigDecimal.ZERO;
|
|
|
- BigDecimal totalAmt = (BigDecimal) (subInfo.get("amt_total"));
|
|
|
+// BigDecimal totalAmt = (BigDecimal) (subInfo.get("amt_total")); 这个原始用法出现问题,类型错误报错
|
|
|
+ BigDecimal totalAmt = new BigDecimal(((Float) subInfo.get("amt_total")).toString());
|
|
|
List<RptCont> allRpt = subRptContService.getListBySub(subId, null, RptContKindEnum.MONTH);
|
|
|
if (CollectionUtil.isNotEmpty(allRpt)) {
|
|
|
double sum = allRpt.stream().mapToDouble(new ToDoubleFunction<RptCont>() {
|