傅行帆 4 years ago
parent
commit
878a93e180

+ 5
- 1
src/main/java/com/huiju/estateagents/property/service/impl/BillStatementServiceImpl.java View File

@@ -99,7 +99,11 @@ public class BillStatementServiceImpl extends ServiceImpl<BillStatementMapper, B
99 99
             // 总金额
100 100
             Long sumPrice = childBillOrderList.stream().mapToLong(billOrder -> {
101 101
                 BillInvoice billInvoice = billInvoiceMapper.selectById(billOrder.getTpBillInvoiceId());
102
-                return billInvoice.getPayPrice();
102
+                Integer payPrice = 0;
103
+                if (null != billInvoice){
104
+                    payPrice = billInvoice.getPayPrice();
105
+                }
106
+                return payPrice;
103 107
             }).sum();
104 108
 
105 109
             e.setBillIdList(billIdCollect);