解决超管登录的报错

This commit is contained in:
季圣华
2019-07-14 20:51:38 +08:00
parent 1b88de7a66
commit 7af407dc3c

View File

@@ -106,6 +106,7 @@ public class UserController {
msgTip = "user can login";
request.getSession().setAttribute("user",user);
if(("open").equals(mybatisPlusStatus)) {
if(user.getTenantId()!=null) {
Tenant tenant = tenantService.getTenantByTenantId(user.getTenantId());
if(tenant!=null) {
Long tenantId = tenant.getTenantId();
@@ -118,6 +119,7 @@ public class UserController {
}
}
}
}
request.getSession().setAttribute("mybatisPlusStatus",mybatisPlusStatus); //开启状态
} catch (Exception e) {
logger.error(">>>>>>>>>>>>>>>查询用户名为:" + username + " ,用户信息异常", e);