@@ -55,6 +55,7 @@ public enum ResultCode {
UPLOAD_YUN_TYPE_ERROR(50038, "上传服务器类型错误,请确认环境上传"),
UPDATE_MYSELF_PASSWORD(50039, "只能修改自己的密码!"),
INCREMENT_TYPE_EMPTY(50040, "权益类型不存在!"),
+ AGENT_NEW_EMPTY(50041, "代理商不存在!"),
;
@@ -73,7 +73,7 @@ public class AgentNewServiceImpl extends ServiceImpl<IAgentNewMapper, AgentNew>
}
AgentNew agentNew = this.getById(param.getId());
if(agentNew == null){
- throw new BusinessException(ResultCode.MISSING_REQUIRED_PARAMETERS);
+ throw new BusinessException(ResultCode.AGENT_NEW_EMPTY);
LambdaUpdateWrapper<AgentNew> wrapper = new LambdaUpdateWrapper<>();