过滤禁用的用户
This commit is contained in:
parent
0ce3c1d78e
commit
d858c965cd
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system
ruoyi-custom/src/main/resources/mapper/custom
ruoyi-ui/src/views/custom/commision/config
@ -149,14 +149,14 @@ public class SysUserController extends BaseController
|
||||
public AjaxResult edit(@Validated @RequestBody SysUser user)
|
||||
{
|
||||
userService.checkUserAllowed(user);
|
||||
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() + "'失败,邮箱账号已存在");
|
||||
}
|
||||
// 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.setUpdateBy(SecurityUtils.getUsername());
|
||||
return toAjax(userService.updateUser(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 AND u.status = 0
|
||||
WHERE up.user_id = u.user_id AND p.post_id = up.post_id AND p.remark = 'sale_post' AND u.status = 0
|
||||
</sql>
|
||||
|
||||
<select id="selectAllCusUserPost" parameterType="CusUserPost" resultMap="CusUserPostResult">
|
||||
|
@ -247,9 +247,9 @@
|
||||
this.getList();
|
||||
getOptions().then(response => {
|
||||
this.options = response.data.reduce((opts, cur) => {
|
||||
if (cur.postCode.startsWith('planner')) {
|
||||
return opts;
|
||||
}
|
||||
// if (cur.postCode.startsWith('planner')) {
|
||||
// return opts;
|
||||
// }
|
||||
if (!opts[cur.postId]) {
|
||||
opts[cur.postId] = [];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user