|
@@ -51,7 +51,8 @@ public abstract class ControllerSupport {
|
|
|
* @return
|
|
|
*/
|
|
|
protected User getAccessUser() {
|
|
|
- User accessUser = (User) ServletUtil.getRequest().getAttribute(HttpServletRequestAttribute.$_ACCESS_USER.name());
|
|
|
+ User accessUser = (User) ServletUtil.getRequest()
|
|
|
+ .getAttribute(HttpServletRequestAttribute.$_ACCESS_USER.name());
|
|
|
if (null == accessUser) {
|
|
|
throw new StatusException("252", "请重新登陆");
|
|
|
}
|
|
@@ -74,7 +75,8 @@ public abstract class ControllerSupport {
|
|
|
* @return
|
|
|
*/
|
|
|
protected Long getSecurityRootOrgId() {
|
|
|
- Long rootOrgId = (Long) getRequest().getAttribute("$rootOrgId");
|
|
|
+ Long rootOrgId = (Long) getRequest()
|
|
|
+ .getAttribute(HttpServletRequestAttribute.$_ENTERPRISE_ROOT_ORG_ID.name());
|
|
|
if (null == rootOrgId) {
|
|
|
throw new StatusException("280", "安全接入的顶级机构ID为空");
|
|
|
}
|