Commit 2a1963af authored by luzhuang's avatar luzhuang

修改接口

parent 8e32fef3
......@@ -68,9 +68,10 @@ public class CurUserAspect {
throw new ServiceException(ResultExceptionEnum.USER_NO_AUTHEN);
UserUtil.setCurUser(curUser);
synchronized (this) {
//查询本部门是否有管理员
int countAdmin = sysRoleService.queryAdminInCorp(curUser.getCorpId());
if (countAdmin==0){
if (countAdmin == 0) {
//随机生成角色Id
log.info("--------------------该企业正在初始化--------------------");
......@@ -85,5 +86,6 @@ public class CurUserAspect {
log.info("--------------------初始化完成--------------------");
}
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment