修改新建用户时的校验

This commit is contained in:
qitz
2023-11-06 15:08:07 +08:00
parent d3701b7299
commit 8ca9b43b3b
9 changed files with 97 additions and 24 deletions
@@ -138,7 +138,7 @@ public class SysUserController extends BaseController
}
user.setCreateBy(getUsername());
user.setPassword(SecurityUtils.encryptPassword(user.getPassword()));
return toAjax(userService.insertUser(user));
return userService.insertUser(user);
}
/**
@@ -164,7 +164,7 @@ public class SysUserController extends BaseController
return error("修改用户'" + user.getUserName() + "'失败,邮箱账号已存在");
}
user.setUpdateBy(getUsername());
return toAjax(userService.updateUser(user));
return userService.updateUser(user);
}
/**