Commit afa6efa7 authored by liming's avatar liming

昵称重名校验

parent 48c5d8c1
......@@ -176,7 +176,7 @@ public class SportUserService {
*/
public void saveUserInfo(SportUser loginUser, ReqSaveUserInfo param) {
if (param.getNickname() != null) {
if (sportUserMapper.checkNicknameRepeat(loginUser.getId(), loginUser.getNickname())) {
if (sportUserMapper.checkNicknameRepeat(loginUser.getId(), param.getNickname())) {
throw new BusinessException("当前昵称已被使用!");
}
}
......
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