|
@@ -194,8 +194,8 @@ public class UserServiceImpl extends ServiceImpl<IUserMapper, User> implements I
|
|
|
|
|
|
}catch (Exception e){
|
|
|
log.error("ReUcenterUserPassword:error",e);
|
|
|
+ throw new BusinessException(ResultCode.PASSWORD_ERROR_G);
|
|
|
}
|
|
|
- throw new BusinessException(ResultCode.PASSWORD_ERROR_G);
|
|
|
|
|
|
}
|
|
|
|
|
@@ -220,8 +220,19 @@ public class UserServiceImpl extends ServiceImpl<IUserMapper, User> implements I
|
|
|
this.update(wrapper);
|
|
|
}catch (Exception e){
|
|
|
log.error("ReUcenterUserPassword:error",e);
|
|
|
+ throw new BusinessException(ResultCode.PASSWORD_ERROR_G);
|
|
|
}
|
|
|
- throw new BusinessException(ResultCode.PASSWORD_ERROR_G);
|
|
|
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void updateUcenterUser(UserParam userParam) {
|
|
|
+ if(userParam.getId() == null || StringUtils.isBlank(userParam.getNickName())){
|
|
|
+ throw new BusinessException(ResultCode.MISSING_REQUIRED_PARAMETERS);
|
|
|
+ }
|
|
|
+ LambdaUpdateWrapper<User> wrapper = new LambdaUpdateWrapper<>();
|
|
|
+ wrapper.eq(User::getId,userParam.getId());
|
|
|
+ wrapper.set(User::getNickName,userParam.getNickName());
|
|
|
+ this.update(wrapper);
|
|
|
+ }
|
|
|
}
|