霸王餐充值
满减活动记录 日期筛选
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.czg.service.order.dto;
|
||||
|
||||
import com.czg.order.dto.CheckOrderPay;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
|
||||
@@ -52,11 +53,8 @@ public class VipPayParamDTO {
|
||||
private String authCode;
|
||||
private String pwd;
|
||||
private Long rechargeDetailId;
|
||||
private BigDecimal orderAmount;
|
||||
/**
|
||||
* 订单原金额(包含打包费+餐位费) 不含折扣价格
|
||||
*/
|
||||
private BigDecimal originAmount;
|
||||
//霸王餐使用
|
||||
private CheckOrderPay checkOrderPay;
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -146,8 +146,8 @@ public class PayServiceImpl implements PayService {
|
||||
if (!freeConfig.getEnable()) {
|
||||
throw new CzgException("该店铺未启用霸王餐");
|
||||
}
|
||||
|
||||
CheckOrderPay checkOrderPay = BeanUtil.copyProperties(payParam, CheckOrderPay.class);
|
||||
CheckOrderPay checkOrderPay = payParam.getCheckOrderPay();
|
||||
// CheckOrderPay checkOrderPay = BeanUtil.copyProperties(payParam, CheckOrderPay.class);
|
||||
OrderInfo orderInfo = orderInfoService.checkOrderPay(checkOrderPay.setFreeDine(true).setWithCoupon(freeConfig.getWithCoupon()).setWithPoints(freeConfig.getWithPoints()));
|
||||
payParam.setAmount(orderInfo.getOrderAmount().multiply(BigDecimal.valueOf(freeConfig.getRechargeTimes())));
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user