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
8e72d579
Commit
8e72d579
authored
Sep 04, 2023
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
离职继承
parent
4529ad88
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
HandoverOperationApiServiceImpl.java
...ice/service/out/impl/HandoverOperationApiServiceImpl.java
+8
-3
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/HandoverOperationApiServiceImpl.java
View file @
8e72d579
...
...
@@ -103,6 +103,7 @@ public class HandoverOperationApiServiceImpl implements HandoverOperationApiServ
List
<
QywxUnassignedInfoDTO
>
ret
=
new
LinkedList
<>();
QywxGetUnassignedListDTO
unassignedListDTO
=
null
;
String
cursor
=
null
;
Map
<
String
,
Boolean
>
map
=
new
HashMap
<>()
;
do
{
//离职成员客户列表
unassignedListDTO
=
qywxUserApiService
.
getUnassignedList
(
qwDTO
.
getThirdCorpid
(),
qwDTO
.
getSelf3thSecret
(),
cursor
,
qwDTO
.
isSelf
(),
qwDTO
.
getUrlHost
());
...
...
@@ -111,10 +112,14 @@ public class HandoverOperationApiServiceImpl implements HandoverOperationApiServ
if
(
CollectionUtils
.
isNotEmpty
(
infoList
))
{
//这里过滤staff成员id,避免ret数组过大
//根据handoverUserid去重
List
<
QywxUnassignedInfoDTO
>
collect
=
infoList
.
stream
().
collect
(
Collectors
.
collectingAndThen
(
Collectors
.
toCollection
(()
->
new
TreeSet
<>(
Comparator
.
comparing
(
QywxUnassignedInfoDTO:
:
getHandoverUserid
))),
ArrayList:
:
new
));
for
(
QywxUnassignedInfoDTO
dto
:
collect
){
for
(
QywxUnassignedInfoDTO
dto
:
infoList
)
{
String
handoverUserid
=
dto
.
getHandoverUserid
();
if
(
handoverService
.
filterHandoverStaff
(
wxEnterpriseId
,
handoverUserid
))
{
Boolean
flag
=
map
.
get
(
handoverUserid
)
;
if
(
null
==
flag
)
{
flag
=
handoverService
.
filterHandoverStaff
(
wxEnterpriseId
,
handoverUserid
)
;
map
.
put
(
handoverUserid
,
flag
)
;
}
if
(
flag
)
{
ret
.
add
(
dto
);
}
}
...
...
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