霸王餐修改

This commit is contained in:
张松
2025-10-16 15:57:45 +08:00
parent 8ed6fae67f
commit e09abbbb62

View File

@@ -148,8 +148,8 @@ public class PayServiceImpl implements PayService {
}
CheckOrderPay checkOrderPay = BeanUtil.copyProperties(payParam, CheckOrderPay.class);
orderInfoService.checkOrderPay(checkOrderPay.setFreeDine(true).setWithCoupon(freeConfig.getWithCoupon()).setWithPoints(freeConfig.getWithPoints()));
payParam.setAmount(payParam.getAmount().multiply(BigDecimal.valueOf(freeConfig.getRechargeTimes())));
OrderInfo orderInfo = orderInfoService.checkOrderPay(checkOrderPay.setFreeDine(true).setWithCoupon(freeConfig.getWithCoupon()).setWithPoints(freeConfig.getWithPoints()));
payParam.setAmount(orderInfo.getOrderAmount().multiply(BigDecimal.valueOf(freeConfig.getRechargeTimes())));
return true;
}
return false;