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
haoban3.0
haoban-manage3.0
Commits
073de3ae
Commit
073de3ae
authored
Apr 07, 2020
by
qwmqiuwenmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
5ca21004
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
11 deletions
+13
-11
MessageApiServiceImpl.java
...anage/service/service/out/impl/MessageApiServiceImpl.java
+13
-11
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/MessageApiServiceImpl.java
View file @
073de3ae
...
@@ -200,17 +200,19 @@ public class MessageApiServiceImpl implements MessageApiService {
...
@@ -200,17 +200,19 @@ public class MessageApiServiceImpl implements MessageApiService {
departmentDTO
.
setWxDepartmentId
(
qywxCallBackDTO
.
getId
()+
""
);
departmentDTO
.
setWxDepartmentId
(
qywxCallBackDTO
.
getId
()+
""
);
if
(
qywxCallBackDTO
.
getParentId
()
!=
null
){
if
(
qywxCallBackDTO
.
getParentId
()
!=
null
){
List
<
com
.
gic
.
wechat
.
api
.
dto
.
qywx
.
DepartmentDTO
>
list
=
this
.
qywxDepartmentApiService
.
listDepartment
(
qywxCallBackDTO
.
getAuthCorpId
(),
qywxCallBackDTO
.
getSuiteId
(),
qywxCallBackDTO
.
getParentId
());
List
<
com
.
gic
.
wechat
.
api
.
dto
.
qywx
.
DepartmentDTO
>
list
=
this
.
qywxDepartmentApiService
.
listDepartment
(
qywxCallBackDTO
.
getAuthCorpId
(),
qywxCallBackDTO
.
getSuiteId
(),
qywxCallBackDTO
.
getParentId
());
for
(
com
.
gic
.
wechat
.
api
.
dto
.
qywx
.
DepartmentDTO
departmentDTO2
:
list
)
{
if
(
list
!=
null
){
if
(
departmentDTO2
.
getId
().
equals
(
departmentDTO
.
getDepartmentId
())){
for
(
com
.
gic
.
wechat
.
api
.
dto
.
qywx
.
DepartmentDTO
departmentDTO2
:
list
)
{
departmentDTO
.
setSort
(
qywxCallBackDTO
.
getOrder
());
if
(
departmentDTO2
.
getId
().
equals
(
departmentDTO
.
getDepartmentId
())){
}
else
{
departmentDTO
.
setSort
(
qywxCallBackDTO
.
getOrder
());
TabHaobanDepartment
tab
=
this
.
departmentService
.
getByWxId
(
departmentDTO2
.
getId
()
+
""
,
enterprise
.
getWxEnterpriseId
());
}
else
{
if
(
tab
!=
null
){
TabHaobanDepartment
tab
=
this
.
departmentService
.
getByWxId
(
departmentDTO2
.
getId
()
+
""
,
enterprise
.
getWxEnterpriseId
());
tab
.
setSort
(
departmentDTO2
.
getOrder
());
if
(
tab
!=
null
){
this
.
departmentService
.
edit
(
EntityUtil
.
changeEntityByJSON
(
DepartmentDTO
.
class
,
tab
));
tab
.
setSort
(
departmentDTO2
.
getOrder
());
}
this
.
departmentService
.
edit
(
EntityUtil
.
changeEntityByJSON
(
DepartmentDTO
.
class
,
tab
));
}
}
}
}
}
}
}
}
if
(
qywxCallBackDTO
.
getChangeType
().
equals
(
WxEditType
.
ADDDEPART
.
getCode
())){
if
(
qywxCallBackDTO
.
getChangeType
().
equals
(
WxEditType
.
ADDDEPART
.
getCode
())){
String
response
=
this
.
departmentService
.
add
(
departmentDTO
);
String
response
=
this
.
departmentService
.
add
(
departmentDTO
);
...
...
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