过滤禁用的用户
This commit is contained in:
parent
9883e9c80f
commit
0ce3c1d78e
@ -127,14 +127,14 @@ public class SysUserController extends BaseController
|
||||
{
|
||||
return AjaxResult.error("新增用户'" + user.getUserName() + "'失败,登录账号已存在");
|
||||
}
|
||||
else if (UserConstants.NOT_UNIQUE.equals(userService.checkPhoneUnique(user)))
|
||||
{
|
||||
return AjaxResult.error("新增用户'" + user.getUserName() + "'失败,手机号码已存在");
|
||||
}
|
||||
else if (UserConstants.NOT_UNIQUE.equals(userService.checkEmailUnique(user)))
|
||||
{
|
||||
return AjaxResult.error("新增用户'" + user.getUserName() + "'失败,邮箱账号已存在");
|
||||
}
|
||||
// else if (UserConstants.NOT_UNIQUE.equals(userService.checkPhoneUnique(user)))
|
||||
// {
|
||||
// return AjaxResult.error("新增用户'" + user.getUserName() + "'失败,手机号码已存在");
|
||||
// }
|
||||
// else if (UserConstants.NOT_UNIQUE.equals(userService.checkEmailUnique(user)))
|
||||
// {
|
||||
// return AjaxResult.error("新增用户'" + user.getUserName() + "'失败,邮箱账号已存在");
|
||||
// }
|
||||
user.setCreateBy(SecurityUtils.getUsername());
|
||||
user.setPassword(SecurityUtils.encryptPassword(user.getPassword()));
|
||||
return toAjax(userService.insertUser(user));
|
||||
|
@ -16,7 +16,7 @@
|
||||
<sql id="selectCusUserPostVo">
|
||||
SELECT u.user_id, u.nick_name, p.post_id, p.post_code, p.post_name, u.remark
|
||||
FROM sys_user u, sys_post p, sys_user_post up
|
||||
WHERE up.user_id = u.user_id AND p.post_id = up.post_id AND p.post_id > 4
|
||||
WHERE up.user_id = u.user_id AND p.post_id = up.post_id AND p.post_id > 4 AND u.status = 0
|
||||
</sql>
|
||||
|
||||
<select id="selectAllCusUserPost" parameterType="CusUserPost" resultMap="CusUserPostResult">
|
||||
|
Loading…
x
Reference in New Issue
Block a user