1
This commit is contained in:
parent
a6184dfb36
commit
9143962110
@ -26,7 +26,7 @@ public class CustomerBalanceController {
|
|||||||
private CustomerBalanceService customerBalanceService;
|
private CustomerBalanceService customerBalanceService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 支付完成回调
|
* 更新用户余额信息(充值完成的回调)
|
||||||
* @author PQZ
|
* @author PQZ
|
||||||
* @date 21:42 2024/9/23
|
* @date 21:42 2024/9/23
|
||||||
* @param createReqVO CustomerBalanceSaveReqVO
|
* @param createReqVO CustomerBalanceSaveReqVO
|
||||||
|
@ -16,6 +16,7 @@ import cn.iocoder.yudao.module.member.service.ActiveMainService;
|
|||||||
import cn.iocoder.yudao.module.member.service.MemberCouponService;
|
import cn.iocoder.yudao.module.member.service.MemberCouponService;
|
||||||
import cn.iocoder.yudao.module.member.vo.ActiveMainPageReqVO;
|
import cn.iocoder.yudao.module.member.vo.ActiveMainPageReqVO;
|
||||||
import cn.iocoder.yudao.module.member.vo.ActiveMainRespVO;
|
import cn.iocoder.yudao.module.member.vo.ActiveMainRespVO;
|
||||||
|
import cn.iocoder.yudao.module.order.service.RepairOrderInfoService;
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
import com.mzt.logapi.service.IFunctionService;
|
import com.mzt.logapi.service.IFunctionService;
|
||||||
@ -60,6 +61,9 @@ public class CustomerActiveServiceImpl extends ServiceImpl<CustomerActiveMapper,
|
|||||||
@Resource
|
@Resource
|
||||||
@Lazy
|
@Lazy
|
||||||
private CustomerBalanceService balanceService;
|
private CustomerBalanceService balanceService;
|
||||||
|
@Resource
|
||||||
|
@Lazy
|
||||||
|
private RepairOrderInfoService repairOrderInfoService;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -61,7 +61,7 @@ public class CustomerBalanceServiceImpl extends ServiceImpl<CustomerBalanceMappe
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新用户余额信息
|
* 更新用户余额信息(充值完成的回调)
|
||||||
*
|
*
|
||||||
* @param cusId 用户id
|
* @param cusId 用户id
|
||||||
* @param orderId 订单id
|
* @param orderId 订单id
|
||||||
@ -81,8 +81,9 @@ public class CustomerBalanceServiceImpl extends ServiceImpl<CustomerBalanceMappe
|
|||||||
//获取当前活动信息
|
//获取当前活动信息
|
||||||
ActiveMainRespVO active = activeMainService.getActiveMain(activeId, true);
|
ActiveMainRespVO active = activeMainService.getActiveMain(activeId, true);
|
||||||
balance = transBalance(customer, orderInfo.getPayMoney(), active.getRuleList());
|
balance = transBalance(customer, orderInfo.getPayMoney(), active.getRuleList());
|
||||||
}
|
} else {
|
||||||
balance = transBalance(customer, orderInfo.getPayMoney(), null);
|
balance = transBalance(customer, orderInfo.getPayMoney(), null);
|
||||||
|
}
|
||||||
orderInfo.setOrderStatus(GENERAL_YES);
|
orderInfo.setOrderStatus(GENERAL_YES);
|
||||||
orderInfo.setPayTime(LocalDateTime.now());
|
orderInfo.setPayTime(LocalDateTime.now());
|
||||||
orderInfoService.updateById(orderInfo);
|
orderInfoService.updateById(orderInfo);
|
||||||
|
Loading…
Reference in New Issue
Block a user