fix: 挂账支付实现
This commit is contained in:
@@ -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("优惠金额 + 支付金额不等于订单金额");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user