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
da215b9f
Commit
da215b9f
authored
Jun 22, 2021
by
fudahua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
企业微信标签同步
parent
c58e9304
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
HandoverOperationApiServiceImpl.java
...ice/service/out/impl/HandoverOperationApiServiceImpl.java
+3
-3
QywxTagApiServiceImpl.java
...anage/service/service/out/impl/QywxTagApiServiceImpl.java
+2
-2
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/HandoverOperationApiServiceImpl.java
View file @
da215b9f
...
...
@@ -114,7 +114,7 @@ public class HandoverOperationApiServiceImpl implements HandoverOperationApiServ
if
(
CollectionUtils
.
isNotEmpty
(
unassignedListDTO
.
getInfo
()))
{
ret
.
addAll
(
unassignedListDTO
.
getInfo
());
}
}
while
(
StringUtils
.
isNotBlank
(
cursor
)
&&
unassignedListDTO
.
getErr
or
code
()
==
0
);
}
while
(
StringUtils
.
isNotBlank
(
cursor
)
&&
unassignedListDTO
.
getErrcode
()
==
0
);
return
ret
;
}
...
...
@@ -134,7 +134,7 @@ public class HandoverOperationApiServiceImpl implements HandoverOperationApiServ
TabHaobanStaff
handover
=
staffService
.
selectById
(
dto
.
getHandoverStaffId
());
TabHaobanStaff
takeover
=
staffService
.
selectById
(
dto
.
getTakeoverStaffId
());
QywxTransferCustomerDTO
customerDTO
=
qywxUserApiService
.
transferResult
(
wxEnterpriseDTO
.
getCorpid
(),
config
.
getWxSuiteid
(),
handover
.
getWxUserId
(),
takeover
.
getWxUserId
(),
true
);
if
(
customerDTO
.
getErr
or
code
()
!=
0
)
{
if
(
customerDTO
.
getErrcode
()
!=
0
)
{
return
;
}
List
<
QywxTransferCustomerInfoDTO
>
customerResults
=
customerDTO
.
getCustomer
();
...
...
@@ -235,7 +235,7 @@ public class HandoverOperationApiServiceImpl implements HandoverOperationApiServ
handoverStaffExternalMap
.
forEach
((
wxUserId
,
list
)
->
{
QywxTransferCustomerDTO
transferCustomerResp
=
qywxUserApiService
.
transferCustomer
(
wxEnterpriseDTO
.
getCorpid
(),
config
.
getWxSuiteid
(),
wxUserId
,
tabHaobanStaff
.
getWxUserId
(),
list
);
if
(
transferCustomerResp
.
getErr
or
code
()
!=
0
)
{
if
(
transferCustomerResp
.
getErrcode
()
!=
0
)
{
logger
.
info
(
"转移异常"
);
}
List
<
QywxTransferCustomerInfoDTO
>
customer
=
transferCustomerResp
.
getCustomer
();
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/QywxTagApiServiceImpl.java
View file @
da215b9f
...
...
@@ -67,7 +67,7 @@ public class QywxTagApiServiceImpl implements QywxTagApiService {
return
;
}
QywxGetCorpTagListDTO
corpTagListResp
=
qywxSuiteApiService
.
getCorpTagList
(
wxEnterpriseDTO
.
getCorpid
(),
config
.
getWxSuiteid
(),
null
,
-
1
);
if
(
corpTagListResp
.
getErr
or
code
()
!=
0
)
{
if
(
corpTagListResp
.
getErrcode
()
!=
0
)
{
logger
.
info
(
"企业微信标签有问题:{}"
,
wxEnterpriseId
);
return
;
}
...
...
@@ -86,7 +86,7 @@ public class QywxTagApiServiceImpl implements QywxTagApiService {
WxEnterpriseDTO
wxEnterpriseDTO
=
wxEnterpriseService
.
selectById
(
wxEnterpriseId
);
//调用企业微信接口保存
QywxGetCorpTagListDTO
resp
=
this
.
saveQywxTag
(
wxEnterpriseDTO
,
infoDTO
,
items
);
if
(
resp
.
getErr
or
code
()
!=
0
)
{
if
(
resp
.
getErrcode
()
!=
0
)
{
logger
.
info
(
"同步失败:{}"
,
JSONObject
.
toJSONString
(
resp
));
return
;
}
...
...
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