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
2c82e1e6
Commit
2c82e1e6
authored
Mar 17, 2022
by
墨竹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:企微同步通讯录处理部门bug
parent
46bb5c96
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
MessageApiServiceImpl.java
...anage/service/service/out/impl/MessageApiServiceImpl.java
+11
-6
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/MessageApiServiceImpl.java
View file @
2c82e1e6
...
...
@@ -117,9 +117,9 @@ public class MessageApiServiceImpl implements MessageApiService {
QywxCallBackDTO
dto
=
JSON
.
parseObject
(
param
,
QywxCallBackDTO
.
class
);
log
.
info
(
"【成员同步回调处理】dto={}"
,
JSON
.
toJSONString
(
param
));
//处理成员
dealUser
(
dto
);
deal
Qywx
User
(
dto
);
//处理部门
dealDepartment
(
dto
);
deal
Qywx
Department
(
dto
);
}
/**
...
...
@@ -186,11 +186,11 @@ public class MessageApiServiceImpl implements MessageApiService {
*
* @param qywxCallBackDTO
*/
private
void
dealUser
(
QywxCallBackDTO
qywxCallBackDTO
)
{
private
void
deal
Qywx
User
(
QywxCallBackDTO
qywxCallBackDTO
)
{
String
userid
=
qywxCallBackDTO
.
getUserid
();
log
.
info
(
"成员同步开始:userid:{}"
,
userid
);
if
(
StringUtils
.
isBlank
(
userid
))
{
log
.
info
(
"成员
不存在,{}"
,
qywxCallBackDTO
.
getAuthCorpId
()
);
log
.
info
(
"成员
为空"
);
return
;
}
TabHaobanWxEnterprise
enterprise
=
this
.
enterpriseService
.
getEnterpriseBycorpId
(
qywxCallBackDTO
.
getAuthCorpId
());
...
...
@@ -281,9 +281,13 @@ public class MessageApiServiceImpl implements MessageApiService {
*
* @param qywxCallBackDTO
*/
private
void
dealDepartment
(
QywxCallBackDTO
qywxCallBackDTO
)
{
log
.
info
(
"处理部门
:{}"
,
qywxCallBackDTO
);
private
void
deal
Qywx
Department
(
QywxCallBackDTO
qywxCallBackDTO
)
{
log
.
info
(
"处理部门
start:{}"
,
JSON
.
toJSONString
(
qywxCallBackDTO
)
);
Integer
wxDeptId
=
qywxCallBackDTO
.
getId
();
if
(
wxDeptId
==
null
)
{
log
.
info
(
"部门为空"
);
return
;
}
String
authCorpId
=
qywxCallBackDTO
.
getAuthCorpId
();
DepartmentDTO
departmentDTO
=
new
DepartmentDTO
();
departmentDTO
.
setIsStore
(
0
);
...
...
@@ -377,6 +381,7 @@ public class MessageApiServiceImpl implements MessageApiService {
log
.
info
(
"企微删除同步完成"
);
}
}
log
.
info
(
"处理部门end:{}"
,
JSON
.
toJSONString
(
qywxCallBackDTO
));
}
/**
...
...
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