Commit 2c380f55 authored by zhangfeng's avatar zhangfeng

兑换礼品修改

parent e61d3418
......@@ -156,8 +156,8 @@ public class RedeemRewardApiImpl implements RedeemRewardApi {
if (rewardDO.getQuantityRemain() < rewardCount) {
throw exception(REWARD_COUNT_NOT_ENOUGH);
}
reward.setExchangeCount(reward.getExchangeCount() + 1);
reward.setQuantityRemain(reward.getQuantityRemain() - rewardCount);
reward.setExchangeCount(rewardDO.getExchangeCount() + 1);
reward.setQuantityRemain(rewardDO.getQuantityRemain() - rewardCount);
rewardMapper.updateById(reward);
}
......
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