Browse Source

修改bug:
解决/getPlatFormReceivableTotalAmount接口异常的问题

jiakai 4 months ago
parent
commit
3e5387fcfa

+ 1 - 1
tenant/organization/src/main/java/com/jzg/organization/controller/ReceivableController.java

@@ -386,7 +386,7 @@ public class ReceivableController {
         if (null == data || CollUtil.isEmpty(data.getRecords())){
             return HttpResult.ok(BigDecimal.ZERO);
         }
-        BigDecimal reduce = data.getRecords().stream().map(income -> null != income.getInsFeeOrders().getTotalReceivablePremium() ? income.getInsFeeOrders().getTotalReceivablePremium() : BigDecimal.ZERO)
+        BigDecimal reduce = data.getRecords().stream().map(income -> null != income.getInsFeeOrders() ? income.getInsFeeOrders().getTotalReceivablePremium() : BigDecimal.ZERO)
                 .reduce(BigDecimal.ZERO, BigDecimal::add);
         return HttpResult.ok(reduce);
     }