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
38f78674
Commit
38f78674
authored
Apr 22, 2021
by
shiwenbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
使用前端发请求的方式来处理集团自动关联部门的过程
parent
39cc872e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
8 deletions
+1
-8
OrganizationDataInitializer.java
.../com/xyst/dinas/biz/init/OrganizationDataInitializer.java
+0
-1
DinasOrganizationServiceImpl.java
...as/biz/internal/service/DinasOrganizationServiceImpl.java
+1
-7
No files found.
backend/xyst.dinas.biz/src/main/java/com/xyst/dinas/biz/init/OrganizationDataInitializer.java
View file @
38f78674
...
...
@@ -53,7 +53,6 @@ public class OrganizationDataInitializer implements DataInitializer {
kObject
.
set
(
BaseConstants
.
CREATE_TIME
,
new
Date
());
dinasOrganizationService
.
save
(
kObject
);
saveFollower
(
kObject
);
dinasOrganizationService
.
createRelDepartment
(
kObject
.
getUuid
(
"id"
));
}
else
{
KObject
organizationByName
=
dinasOrganizationService
.
queryOrganizationByName
(
kObject
.
getString
(
"name"
));
saveFollower
(
organizationByName
);
...
...
backend/xyst.dinas.biz/src/main/java/com/xyst/dinas/biz/internal/service/DinasOrganizationServiceImpl.java
View file @
38f78674
...
...
@@ -107,10 +107,7 @@ public class DinasOrganizationServiceImpl implements DinasOrganizationService {
department
.
set
(
"orgId"
,
quangongsi
.
getUuid
(
"orgId"
));
department
.
set
(
"level"
,
1
);
department
.
set
(
"createTime"
,
new
Date
());
KObject
staff
=
getCurrentLoginStaff
();
if
(
staff
!=
null
)
{
department
.
set
(
"createUser"
,
staff
.
getUuid
(
"id"
));
}
department
.
set
(
"createUser"
,
getCurrentLoginStaff
().
getUuid
(
"id"
));
department
.
set
(
"paths"
,
quangongsi
.
getString
(
"paths"
)
+
"$"
+
department
.
getUuid
(
"id"
));
department
.
set
(
"enable"
,
true
);
departmentService
.
create
(
department
);
...
...
@@ -120,9 +117,6 @@ public class DinasOrganizationServiceImpl implements DinasOrganizationService {
}
private
KObject
getCurrentLoginStaff
(){
if
(
RequestContextHolder
.
getRequestAttributes
()
==
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