Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
education
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李丛阳
education
Commits
b8373d96
Commit
b8373d96
authored
Nov 01, 2019
by
zhangqingle
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'meiteng' of
ssh://103.249.252.28:10022/lcy/education
into meiteng
parents
1fd0993f
2a1963af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
12 deletions
+14
-12
CurUserAspect.java
src/main/java/org/rcisoft/core/aop/CurUserAspect.java
+14
-12
No files found.
src/main/java/org/rcisoft/core/aop/CurUserAspect.java
View file @
b8373d96
...
...
@@ -68,21 +68,23 @@ public class CurUserAspect {
throw
new
ServiceException
(
ResultExceptionEnum
.
USER_NO_AUTHEN
);
UserUtil
.
setCurUser
(
curUser
);
//查询本部门是否有管理员
int
countAdmin
=
sysRoleService
.
queryAdminInCorp
(
curUser
.
getCorpId
());
if
(
countAdmin
==
0
){
//随机生成角色Id
synchronized
(
this
)
{
//查询本部门是否有管理员
int
countAdmin
=
sysRoleService
.
queryAdminInCorp
(
curUser
.
getCorpId
());
if
(
countAdmin
==
0
)
{
//随机生成角色Id
log
.
info
(
"--------------------该企业正在初始化--------------------"
);
log
.
info
(
"--------------------该企业正在初始化--------------------"
);
// 同步企业人员
int
line
=
userServiceImpl
.
synchronizedUsers
(
curUser
.
getCorpId
());
//初始化角色
int
userRoleResult
=
sysRoleService
.
addAdminRoleMenuUser
(
curUser
);
// 初始化数据字典表
sysRoleService
.
initDictionary
();
// 同步企业人员
int
line
=
userServiceImpl
.
synchronizedUsers
(
curUser
.
getCorpId
());
//初始化角色
int
userRoleResult
=
sysRoleService
.
addAdminRoleMenuUser
(
curUser
);
// 初始化数据字典表
sysRoleService
.
initDictionary
();
log
.
info
(
"--------------------初始化完成--------------------"
);
log
.
info
(
"--------------------初始化完成--------------------"
);
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment