|
@@ -97,10 +97,10 @@ public class BillStatementServiceImpl extends ServiceImpl<BillStatementMapper, B
|
97
|
97
|
// 缴费单id集合
|
98
|
98
|
List<Integer> billInvoiceIdCollect = childBillOrderList.stream().map(billOrder -> billOrder.getTpBillInvoiceId()).collect(Collectors.toList());
|
99
|
99
|
// 总金额
|
100
|
|
- Long sumPrice = childBillOrderList.stream().map(billOrder -> {
|
|
100
|
+ Long sumPrice = childBillOrderList.stream().mapToLong(billOrder -> {
|
101
|
101
|
BillInvoice billInvoice = billInvoiceMapper.selectById(billOrder.getTpBillInvoiceId());
|
102
|
102
|
return billInvoice.getPayPrice();
|
103
|
|
- }).count();
|
|
103
|
+ }).sum();
|
104
|
104
|
|
105
|
105
|
e.setBillIdList(billIdCollect);
|
106
|
106
|
e.setBillInvoiceIdList(billInvoiceIdCollect);
|