切换系统时,清除当前岗位和角色状态
This commit is contained in:
@@ -20,10 +20,11 @@ import com.jeesite.common.mybatis.annotation.Table;
|
|||||||
},
|
},
|
||||||
joinTable={
|
joinTable={
|
||||||
@JoinTable(type=JoinTable.Type.LEFT_JOIN, entity=Role.class, alias="r", lazy = true,
|
@JoinTable(type=JoinTable.Type.LEFT_JOIN, entity=Role.class, alias="r", lazy = true,
|
||||||
on="a.role_code = r.role_code AND r.status = ${STATUS_NORMAL}", attrName="role",
|
on="a.role_code = r.role_code", attrName="role",
|
||||||
columns={
|
columns={
|
||||||
@Column(name="role_code", attrName="roleCode", label="角色编码", isPK=true),
|
@Column(name="role_code", attrName="roleCode", label="角色编码", isPK=true),
|
||||||
@Column(name="role_name", attrName="roleName", label="角色名称"),
|
@Column(name="role_name", attrName="roleName", label="角色名称"),
|
||||||
|
@Column(name="status", attrName="status", label="角色状态"),
|
||||||
})
|
})
|
||||||
}, orderBy=""
|
}, orderBy=""
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -374,6 +374,9 @@ public class LoginController extends BaseController{
|
|||||||
}else{
|
}else{
|
||||||
session.removeAttribute("sysCode");
|
session.removeAttribute("sysCode");
|
||||||
}
|
}
|
||||||
|
// 切换系统时,清除当前岗位和角色状态
|
||||||
|
session.removeAttribute("postCode");
|
||||||
|
session.removeAttribute("roleCode");
|
||||||
UserUtils.removeCache(UserUtils.CACHE_AUTH_INFO+"_"+session.getId());
|
UserUtils.removeCache(UserUtils.CACHE_AUTH_INFO+"_"+session.getId());
|
||||||
if (ServletUtils.isAjaxRequest(request)) {
|
if (ServletUtils.isAjaxRequest(request)) {
|
||||||
return renderResult(Global.TRUE, text("子系统切换成功"));
|
return renderResult(Global.TRUE, text("子系统切换成功"));
|
||||||
|
|||||||
Reference in New Issue
Block a user