|
|
@@ -119,7 +119,7 @@ public class ReceivableController {
|
|
|
if (null == data || CollUtil.isEmpty(data.getRecords())){
|
|
|
return HttpResult.ok(BigDecimal.ZERO);
|
|
|
}
|
|
|
- BigDecimal reduce = data.getRecords().stream().map(income -> StrUtil.isNotBlank(income.getSuperviseCostsPremiums()) ? new BigDecimal(income.getSuperviseCostsPremiums()) : BigDecimal.ZERO)
|
|
|
+ BigDecimal reduce = data.getRecords().stream().map(income -> StrUtil.isNotBlank(income.getCarInsuranceSuperviseCostsPremiums()) ? new BigDecimal(income.getCarInsuranceSuperviseCostsPremiums()) : BigDecimal.ZERO)
|
|
|
.reduce(BigDecimal.ZERO, BigDecimal::add);
|
|
|
return HttpResult.ok(reduce);
|
|
|
}
|
|
|
@@ -198,7 +198,7 @@ public class ReceivableController {
|
|
|
if (null == data || CollUtil.isEmpty(data.getRecords())){
|
|
|
return HttpResult.ok(BigDecimal.ZERO);
|
|
|
}
|
|
|
- BigDecimal reduce = data.getRecords().stream().map(income -> StrUtil.isNotBlank(income.getOtherCostsPremiums()) ? new BigDecimal(income.getOtherCostsPremiums()) : BigDecimal.ZERO)
|
|
|
+ BigDecimal reduce = data.getRecords().stream().map(income -> StrUtil.isNotBlank(income.getCarInsuranceOtherCostsPremiums()) ? new BigDecimal(income.getCarInsuranceOtherCostsPremiums()) : BigDecimal.ZERO)
|
|
|
.reduce(BigDecimal.ZERO, BigDecimal::add);
|
|
|
return HttpResult.ok(reduce);
|
|
|
}
|