霸王餐金额

This commit is contained in:
2026-02-04 16:29:38 +08:00
parent 7b9dcafc53
commit 624abd31b4

View File

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