parent
29e57fbfda
commit
15e826ddc1
|
|
@ -1,12 +1,8 @@
|
|||
package com.czg.controller;
|
||||
|
||||
import com.czg.annotation.Debounce;
|
||||
import com.czg.annotation.SaStaffCheckPermission;
|
||||
import com.czg.entity.resp.CzgBaseResp;
|
||||
import com.czg.order.entity.OrderInfo;
|
||||
import com.czg.resp.CzgResult;
|
||||
import com.czg.sa.StpKit;
|
||||
import com.czg.service.order.dto.RechargeDTO;
|
||||
import com.czg.service.order.dto.VipMemberPayParamDTO;
|
||||
import com.czg.service.order.dto.VipPayParamDTO;
|
||||
import com.czg.service.order.dto.VipRefundDTO;
|
||||
|
|
|
|||
|
|
@ -36,7 +36,10 @@ public class MkConsumeCashbackRecordServiceImpl extends ServiceImpl<MkConsumeCas
|
|||
.leftJoin(ShopInfo.class).on(ShopInfo::getId, MkConsumeCashbackRecord::getShopId)
|
||||
.leftJoin(OrderInfo.class).on(OrderInfo::getId, MkConsumeCashbackRecord::getOrderId)
|
||||
.leftJoin(ShopUser.class).on(ShopUser::getId, MkConsumeCashbackRecord::getShopUserId)
|
||||
.le(MkConsumeCashbackRecord::getCreateTime, endTime)
|
||||
.ge(MkConsumeCashbackRecord::getCreateTime, startTime)
|
||||
.eq(MkConsumeCashbackRecord::getShopId, shopId);
|
||||
|
||||
QueryWrapper totalQuery = new QueryWrapper()
|
||||
.leftJoin(ShopInfo.class).on(ShopInfo::getId, MkConsumeCashbackRecord::getShopId)
|
||||
.leftJoin(OrderInfo.class).on(OrderInfo::getId, MkConsumeCashbackRecord::getOrderId)
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue