fix: 挂账支付实现

This commit is contained in:
张松
2024-12-19 09:50:38 +08:00
parent 569a465850
commit 51d03bbe54

View File

@@ -896,7 +896,7 @@ public class PayService {
}
if (creditDTO.getPayAmount().add(creditDTO.getDiscountAmount()).compareTo(orderInfo.getOrderAmount()) != 0) {
if (creditDTO.getPayAmount() != null && creditDTO.getPayAmount().add(creditDTO.getDiscountAmount()).compareTo(orderInfo.getOrderAmount()) != 0) {
return Result.fail("优惠金额 + 支付金额不等于订单金额");
}