Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
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
QianQiXiang
haoban-manage3.0
Commits
8fe816ee
Commit
8fe816ee
authored
Mar 03, 2020
by
huangZW
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' of
http://115.159.76.241/haoban3.0/haoban-manage3.0.git
into developer
parents
68765412
5bc8cadd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
MessageApiServiceImpl.java
...anage/service/service/out/impl/MessageApiServiceImpl.java
+12
-6
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/MessageApiServiceImpl.java
View file @
8fe816ee
...
@@ -77,10 +77,16 @@ public class MessageApiServiceImpl implements MessageApiService {
...
@@ -77,10 +77,16 @@ public class MessageApiServiceImpl implements MessageApiService {
departmentDTO
.
setRelatedId
(
dto
.
getId
());
departmentDTO
.
setRelatedId
(
dto
.
getId
());
log
.
info
(
"【部门同步】dto={}"
,
JSON
.
toJSONString
(
dto
));
log
.
info
(
"【部门同步】dto={}"
,
JSON
.
toJSONString
(
dto
));
DepartmentDTO
parentDepartment
=
this
.
getParentDepartment
(
dto
.
getParentChain
(),
dto
.
getType
(),
enterprise
.
getWxEnterpriseId
());
DepartmentDTO
parentDepartment
=
this
.
getParentDepartment
(
dto
.
getParentChain
(),
dto
.
getType
(),
enterprise
.
getWxEnterpriseId
());
departmentDTO
.
setParentDepartmentId
(
parentDepartment
.
getDepartmentId
());
if
(
parentDepartment
==
null
&&
(
dto
.
getChangeType
()
==
GicEditType
.
ADD
.
getCode
()
||
dto
.
getChangeType
()
==
GicEditType
.
UPDATE
.
getCode
())){
departmentDTO
.
setChainId
(
parentDepartment
.
getChainId
()+
Constant
.
ID_SEPARATOR
+
parentDepartment
.
getDepartmentId
());
log
.
info
(
"【部门同步】父部门为空"
);
departmentDTO
.
setChainName
(
parentDepartment
.
getChainName
()
+
Constant
.
NAME_SEPARATOR
+
parentDepartment
.
getChainName
());
return
;
departmentDTO
.
setLevel
(
parentDepartment
.
getLevel
()
+
1
);
}
if
(
parentDepartment
!=
null
){
departmentDTO
.
setParentDepartmentId
(
parentDepartment
.
getDepartmentId
());
departmentDTO
.
setChainId
(
parentDepartment
.
getChainId
()+
Constant
.
ID_SEPARATOR
+
parentDepartment
.
getDepartmentId
());
departmentDTO
.
setChainName
(
parentDepartment
.
getChainName
()
+
Constant
.
NAME_SEPARATOR
+
parentDepartment
.
getChainName
());
departmentDTO
.
setLevel
(
parentDepartment
.
getLevel
()
+
1
);
}
departmentDTO
.
setWxEnterpriseId
(
enterprise
.
getWxEnterpriseId
());
departmentDTO
.
setWxEnterpriseId
(
enterprise
.
getWxEnterpriseId
());
if
(
dto
.
getChangeType
()
==
GicEditType
.
ADD
.
getCode
()){
if
(
dto
.
getChangeType
()
==
GicEditType
.
ADD
.
getCode
()){
HaobanResponse
response
=
this
.
departmentApiService
.
add
(
departmentDTO
);
HaobanResponse
response
=
this
.
departmentApiService
.
add
(
departmentDTO
);
...
@@ -261,8 +267,8 @@ public class MessageApiServiceImpl implements MessageApiService {
...
@@ -261,8 +267,8 @@ public class MessageApiServiceImpl implements MessageApiService {
}
}
}
}
}
}
DepartmentDTO
departmentDTO
=
this
.
departmentService
.
getRootByEnterpriseId
(
wxEnterpriseId
);
//
DepartmentDTO departmentDTO = this.departmentService.getRootByEnterpriseId(wxEnterpriseId);
return
departmentDTO
;
return
null
;
}
}
public
static
void
main
(
String
[]
args
){
public
static
void
main
(
String
[]
args
){
...
...
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