|
|
@ -392,8 +392,17 @@ public class PayPaymentServiceImpl extends ServiceImpl<PayPaymentMapper,PayPayme |
|
|
|
totalAmount = totalAmount.add(verificationSubject.getUsedAmount()); |
|
|
|
hasAmount = hasAmount.add(verificationSubject.getPayAmount()); |
|
|
|
} |
|
|
|
PayPaymentAmountDto amountDto = new PayPaymentAmountDto(totalAmount,hasAmount,vtbVerificationSubjectList); |
|
|
|
return amountDto; |
|
|
|
//统计不再支付
|
|
|
|
List<PayPayment> unPayList = this.list( |
|
|
|
new LambdaQueryWrapper<PayPayment>() |
|
|
|
.eq(PayPayment::getPayType,PaymentType.UN_PAYMENT) |
|
|
|
.eq(PayPayment::getSupplierId,supplierId) |
|
|
|
); |
|
|
|
BigDecimal totalUnPay = BigDecimal.ZERO; |
|
|
|
for (PayPayment payment : unPayList) { |
|
|
|
totalUnPay = totalUnPay.add(payment.getPayAmount()); |
|
|
|
} |
|
|
|
return new PayPaymentAmountDto(totalAmount,hasAmount,totalUnPay,vtbVerificationSubjectList); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|