|
@ -106,6 +106,10 @@ public class PayPaymentServiceImpl extends ServiceImpl<PayPaymentMapper,PayPayme |
|
|
} |
|
|
} |
|
|
BigDecimal notPayAmount = verificationAmount.subtract(payedAmount); |
|
|
BigDecimal notPayAmount = verificationAmount.subtract(payedAmount); |
|
|
|
|
|
|
|
|
|
|
|
if(paymentBo.getPayAmount()==null){ |
|
|
|
|
|
Assert.throwEx("支付金额不能为空!"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if(paymentBo.getPayAmount().compareTo(notPayAmount)>0){ |
|
|
if(paymentBo.getPayAmount().compareTo(notPayAmount)>0){ |
|
|
Assert.throwEx("支付金额已超出可支付额"); |
|
|
Assert.throwEx("支付金额已超出可支付额"); |
|
|
} |
|
|
} |
|
@ -218,10 +222,14 @@ public class PayPaymentServiceImpl extends ServiceImpl<PayPaymentMapper,PayPayme |
|
|
} |
|
|
} |
|
|
BigDecimal notPayAmount = verificationAmount.subtract(payedAmount); |
|
|
BigDecimal notPayAmount = verificationAmount.subtract(payedAmount); |
|
|
|
|
|
|
|
|
if(paymentBo.getPayAmount().compareTo(notPayAmount)>0){ |
|
|
if(1 != paymentBo.getRelease()) { |
|
|
|
|
|
if(paymentBo.getPayAmount()==null){ |
|
|
|
|
|
Assert.throwEx("支付金额不能为空!"); |
|
|
|
|
|
} |
|
|
|
|
|
if (paymentBo.getPayAmount().compareTo(notPayAmount) > 0) { |
|
|
Assert.throwEx("支付金额已超出可支付额"); |
|
|
Assert.throwEx("支付金额已超出可支付额"); |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
PayPayment payPayment = new PayPayment(); |
|
|
PayPayment payPayment = new PayPayment(); |
|
|
payPayment.setPayType("unPay"); |
|
|
payPayment.setPayType("unPay"); |
|
|