空指针问题

This commit is contained in:
2026-02-04 16:45:28 +08:00
parent 257977a000
commit 9784695482

View File

@@ -1197,7 +1197,7 @@ public class OrderInfoCustomServiceImpl implements OrderInfoCustomService {
if (orderInfo.getCreditBuyerId() != null) { if (orderInfo.getCreditBuyerId() != null) {
upOrderInfo.setCreditBuyerId(orderInfo.getCreditBuyerId()); upOrderInfo.setCreditBuyerId(orderInfo.getCreditBuyerId());
} }
if (payType.equals(PayEnums.FREE_PAY)) { if (PayEnums.FREE_PAY.equals(payType)) {
if (orderInfo.getDiscountAllAmount() == null) { if (orderInfo.getDiscountAllAmount() == null) {
upOrderInfo.setDiscountAllAmount(orderInfo.getOrderAmount()); upOrderInfo.setDiscountAllAmount(orderInfo.getOrderAmount());
} else { } else {