Commit f4a82b56 authored by zhangfeng's avatar zhangfeng

Merge remote-tracking branch 'origin/feature_member_score' into feature_member_score

parents 855d2135 7dcd3cd9
......@@ -17,6 +17,7 @@ import cn.iocoder.yudao.module.reward.dal.mysql.redeem.RewardRedeemMapper;
import cn.iocoder.yudao.module.reward.dal.mysql.reward.RewardMapper;
import cn.iocoder.yudao.module.reward.enums.RewardRedeemStatusEnum;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.validation.annotation.Validated;
......@@ -31,6 +32,7 @@ import static cn.iocoder.yudao.module.reward.enums.ErrorCodeConstants.*;
@Service
@Validated
@Slf4j
public class RedeemRewardApiImpl implements RedeemRewardApi {
@Resource
......@@ -167,7 +169,8 @@ public class RedeemRewardApiImpl implements RedeemRewardApi {
updateMemberScore(redeemRewardReqVO, rewardDO, redeemId);
}
} catch (Exception e) {
throw exception(REWARD_REDEEM_FAIL);
log.error("redeem reward exception",e);
throw e;
} finally {
redisDistributedLock.releaseLock("reward:redeem:lock:" + rewardId);
}
......
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