Commit cde39899 authored by zhangfeng's avatar zhangfeng

礼品启用状态校验

parent 65bf4671
...@@ -271,6 +271,8 @@ public class RewardServiceImpl extends AbstractService<RewardMapper, RewardDO> i ...@@ -271,6 +271,8 @@ public class RewardServiceImpl extends AbstractService<RewardMapper, RewardDO> i
throw exception(REWARD_STATUS_NOT_ALLOW_ENABLE); throw exception(REWARD_STATUS_NOT_ALLOW_ENABLE);
} }
rewardMapper.updateById(RewardConvert.INSTANCE.convertStatusReqVO(statusVO)); rewardMapper.updateById(RewardConvert.INSTANCE.convertStatusReqVO(statusVO));
} else {
throw exception(REWARD_STATUS_NOT_ALLOW_ENABLE);
} }
break; break;
default: default:
......
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