|
|
|
@ -25,7 +25,6 @@ import com.ruoyi.common.utils.ShiroUtils;
|
|
|
|
|
import com.ruoyi.common.utils.StringUtils;
|
|
|
|
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
|
|
|
|
import com.ruoyi.framework.shiro.service.SysPasswordService;
|
|
|
|
|
import com.ruoyi.framework.shiro.util.AuthorizationUtils;
|
|
|
|
|
import com.ruoyi.system.service.ISysPostService;
|
|
|
|
|
import com.ruoyi.system.service.ISysRoleService;
|
|
|
|
|
import com.ruoyi.system.service.ISysUserService;
|
|
|
|
@ -177,7 +176,6 @@ public class SysUserController extends BaseController
|
|
|
|
|
return error("修改用户'" + user.getLoginName() + "'失败,邮箱账号已存在");
|
|
|
|
|
}
|
|
|
|
|
user.setUpdateBy(ShiroUtils.getLoginName());
|
|
|
|
|
AuthorizationUtils.clearAllCachedAuthorizationInfo();
|
|
|
|
|
return toAjax(userService.updateUser(user));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -233,7 +231,6 @@ public class SysUserController extends BaseController
|
|
|
|
|
public AjaxResult insertAuthRole(Long userId, Long[] roleIds)
|
|
|
|
|
{
|
|
|
|
|
userService.insertUserAuth(userId, roleIds);
|
|
|
|
|
AuthorizationUtils.clearAllCachedAuthorizationInfo();
|
|
|
|
|
return success();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|