Compare commits
2 Commits
3e7ba69963
...
a7135b440a
Author | SHA1 | Date | |
---|---|---|---|
a7135b440a | |||
dcff7fc4a5 |
@ -334,11 +334,12 @@ public class TradeOrderUpdateServiceImpl implements TradeOrderUpdateService {
|
|||||||
KeyValue<TradeOrderDO, PayOrderRespDTO> orderResult = validateOrderPayable(id, payOrderId);
|
KeyValue<TradeOrderDO, PayOrderRespDTO> orderResult = validateOrderPayable(id, payOrderId);
|
||||||
TradeOrderDO order = orderResult.getKey();
|
TradeOrderDO order = orderResult.getKey();
|
||||||
PayOrderRespDTO payOrder = orderResult.getValue();
|
PayOrderRespDTO payOrder = orderResult.getValue();
|
||||||
|
System.out.println("交易订单成功id:"+id+"和payOrderId:"+payOrderId);
|
||||||
//会员用户信息,支付状态修改
|
//会员用户信息,支付状态修改
|
||||||
TradeMemberUserDO tradeMemberUserDO = tradeMemberUserService.getUser(getLoginUserId());
|
TradeMemberUserDO tradeMemberUserDO = tradeMemberUserService.getUser(getLoginUserId());
|
||||||
TradePaidMemberUserDO tradePaidMemberUserDO = tradePaidMemberUserService.getByIdAndPayOrderId(id,payOrderId);
|
TradePaidMemberUserDO tradePaidMemberUserDO = tradePaidMemberUserService.getByIdAndPayOrderId(id,payOrderId);
|
||||||
if(tradePaidMemberUserDO != null && tradeMemberUserDO != null){
|
if(tradePaidMemberUserDO != null && tradeMemberUserDO != null){
|
||||||
|
System.out.println("进入会员支付修改操作paid:"+tradePaidMemberUserDO+"和member:"+tradeMemberUserDO);
|
||||||
tradePaidMemberUserDO.setPayTime(LocalDateTime.now());
|
tradePaidMemberUserDO.setPayTime(LocalDateTime.now());
|
||||||
tradePaidMemberUserDO.setPaid(true);
|
tradePaidMemberUserDO.setPaid(true);
|
||||||
//过期时间
|
//过期时间
|
||||||
@ -350,10 +351,12 @@ public class TradeOrderUpdateServiceImpl implements TradeOrderUpdateService {
|
|||||||
tradePaidMemberUserDO.setPayType(payType);
|
tradePaidMemberUserDO.setPayType(payType);
|
||||||
//更新会员订单
|
//更新会员订单
|
||||||
tradePaidMemberUserService.update(tradePaidMemberUserDO);
|
tradePaidMemberUserService.update(tradePaidMemberUserDO);
|
||||||
|
System.out.println("成功更新会员订单paid:"+tradePaidMemberUserDO);
|
||||||
//更新用户会员状态
|
//更新用户会员状态
|
||||||
tradeMemberUserService.updateActivate(tradePaidMemberUserDO.getPayMemberType());
|
tradeMemberUserService.updateActivate(tradePaidMemberUserDO.getPayMemberType());
|
||||||
|
System.out.println("成功更新用户的会员状态member:"+tradeMemberUserDO);
|
||||||
}
|
}
|
||||||
|
System.out.println("会员修改操作结束!!!");
|
||||||
// 2. 更新 TradeOrderDO 状态为已支付,等待发货
|
// 2. 更新 TradeOrderDO 状态为已支付,等待发货
|
||||||
int updateCount = tradeOrderMapper.updateByIdAndStatus(id, order.getStatus(),
|
int updateCount = tradeOrderMapper.updateByIdAndStatus(id, order.getStatus(),
|
||||||
new TradeOrderDO().setStatus(TradeOrderStatusEnum.UNDELIVERED.getStatus()).setPayStatus(true)
|
new TradeOrderDO().setStatus(TradeOrderStatusEnum.UNDELIVERED.getStatus()).setPayStatus(true)
|
||||||
|
Loading…
Reference in New Issue
Block a user