Commit ee0bc308 authored by zhaobiyan's avatar zhaobiyan

Merge branch 'feature_member_score' into dev

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