Преглед на файлове

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

jiakai преди 4 месеца
родител
ревизия
3e5387fcfa
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      tenant/organization/src/main/java/com/jzg/organization/controller/ReceivableController.java

+ 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);
     }