Commit 033f41b8 by 吕明尚

修改充值回调

parent e073f9ed
...@@ -181,11 +181,13 @@ public class RechargeServiceImpl extends ServiceImpl<RechargeMapper, Recharge> i ...@@ -181,11 +181,13 @@ public class RechargeServiceImpl extends ServiceImpl<RechargeMapper, Recharge> i
//修改会员钱包 //修改会员钱包
consumerWalletService.editConsumerWallet(consumerWallet, recharge, one); consumerWalletService.editConsumerWallet(consumerWallet, recharge, one);
} else { } else {
extracted(recharge); consumerWalletService.accumulatedConsumptionStatistics(recharge.getConsumerId());
consumerWalletService.editConsumerWallet(consumerWallet, recharge, one); consumerWalletService.editConsumerWallet(consumerWalletService.getOne(new LambdaQueryWrapper<ConsumerWallet>().eq(ConsumerWallet::getConsumerId, recharge.getConsumerId())), recharge, consumerMemberService.getOne(new LambdaQueryWrapper<ConsumerMember>().eq(ConsumerMember::getConsumerId, recharge.getConsumerId())));
} }
one.setIsRecharge(YesNoEnum.yes.getIndex()); ConsumerMember consumerMember = new ConsumerMember();
consumerMemberService.updateConsumerMember(one); consumerMember.setIsRecharge(YesNoEnum.yes.getIndex());
consumerMember.setId(one.getId());
consumerMemberService.updateConsumerMember(consumerMember);
} }
updateRecharge(recharge); updateRecharge(recharge);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment