Commit 033f41b8 by 吕明尚

修改充值回调

parent e073f9ed
......@@ -181,11 +181,13 @@ public class RechargeServiceImpl extends ServiceImpl<RechargeMapper, Recharge> i
//修改会员钱包
consumerWalletService.editConsumerWallet(consumerWallet, recharge, one);
} else {
extracted(recharge);
consumerWalletService.editConsumerWallet(consumerWallet, recharge, one);
consumerWalletService.accumulatedConsumptionStatistics(recharge.getConsumerId());
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());
consumerMemberService.updateConsumerMember(one);
ConsumerMember consumerMember = new ConsumerMember();
consumerMember.setIsRecharge(YesNoEnum.yes.getIndex());
consumerMember.setId(one.getId());
consumerMemberService.updateConsumerMember(consumerMember);
}
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