Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cloud-fb
Overview
Overview
Details
Activity
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
王衍超
cloud-fb
Commits
fc9c82a2
Commit
fc9c82a2
authored
Apr 22, 2021
by
shiwenbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
兼容处理系统初始化时,集团关联的部门取不到当前登录用户的情况
parent
c2d71525
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
+7
-1
DinasOrganizationServiceImpl.java
...as/biz/internal/service/DinasOrganizationServiceImpl.java
+7
-1
No files found.
backend/xyst.dinas.biz/src/main/java/com/xyst/dinas/biz/internal/service/DinasOrganizationServiceImpl.java
View file @
fc9c82a2
...
...
@@ -107,7 +107,10 @@ public class DinasOrganizationServiceImpl implements DinasOrganizationService {
department
.
set
(
"orgId"
,
quangongsi
.
getUuid
(
"orgId"
));
department
.
set
(
"level"
,
1
);
department
.
set
(
"createTime"
,
new
Date
());
department
.
set
(
"createUser"
,
getCurrentLoginStaff
().
getUuid
(
"id"
));
KObject
staff
=
getCurrentLoginStaff
();
if
(
staff
!=
null
)
{
department
.
set
(
"createUser"
,
staff
.
getUuid
(
"id"
));
}
department
.
set
(
"paths"
,
quangongsi
.
getString
(
"paths"
)
+
"$"
+
department
.
getUuid
(
"id"
));
department
.
set
(
"enable"
,
true
);
departmentService
.
create
(
department
);
...
...
@@ -117,6 +120,9 @@ public class DinasOrganizationServiceImpl implements DinasOrganizationService {
}
private
KObject
getCurrentLoginStaff
(){
if
(((
ServletRequestAttributes
)
RequestContextHolder
.
getRequestAttributes
()).
getRequest
()
==
null
)
{
return
null
;
}
String
currentStaff
=
(
String
)
((
ServletRequestAttributes
)
RequestContextHolder
.
getRequestAttributes
())
.
getRequest
().
getSession
().
getAttribute
(
"currentStaff"
);
if
(
null
==
currentStaff
||
currentStaff
.
trim
().
length
()
==
0
)
{
...
...
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