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
5a863548
Commit
5a863548
authored
Jun 18, 2021
by
fudahua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
离职继承fix
parent
5518c966
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
HandoverOperationApiServiceImpl.java
...ice/service/out/impl/HandoverOperationApiServiceImpl.java
+5
-2
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/HandoverOperationApiServiceImpl.java
View file @
5a863548
...
@@ -150,6 +150,8 @@ public class HandoverOperationApiServiceImpl implements HandoverOperationApiServ
...
@@ -150,6 +150,8 @@ public class HandoverOperationApiServiceImpl implements HandoverOperationApiServ
List
<
String
>
retTransferIds
=
infoDTOS
.
stream
().
map
(
dto
->
dto
.
getHandoverTransferId
()).
collect
(
Collectors
.
toList
());
List
<
String
>
retTransferIds
=
infoDTOS
.
stream
().
map
(
dto
->
dto
.
getHandoverTransferId
()).
collect
(
Collectors
.
toList
());
List
<
TabHandoverTransfer
>
transfers
=
handoverService
.
listTransferByIds
(
wxEnterpriseId
,
retTransferIds
);
List
<
TabHandoverTransfer
>
transfers
=
handoverService
.
listTransferByIds
(
wxEnterpriseId
,
retTransferIds
);
Map
<
String
,
TabHandoverTransfer
>
transferMap
=
transfers
.
stream
().
collect
(
Collectors
.
toMap
(
dto
->
dto
.
getHandoverTransferId
(),
dto
->
dto
));
List
<
String
>
midStaffIds
=
transfers
.
stream
().
flatMap
(
dto
->
{
List
<
String
>
midStaffIds
=
transfers
.
stream
().
flatMap
(
dto
->
{
List
<
String
>
mid
=
new
ArrayList
<>();
List
<
String
>
mid
=
new
ArrayList
<>();
mid
.
add
(
dto
.
getHandoverStaffId
());
mid
.
add
(
dto
.
getHandoverStaffId
());
...
@@ -160,8 +162,9 @@ public class HandoverOperationApiServiceImpl implements HandoverOperationApiServ
...
@@ -160,8 +162,9 @@ public class HandoverOperationApiServiceImpl implements HandoverOperationApiServ
List
<
TabHaobanStaff
>
haobanStaffs
=
staffService
.
listNoStatusByStaffIds
(
wxEnterpriseId
,
midStaffIds
);
List
<
TabHaobanStaff
>
haobanStaffs
=
staffService
.
listNoStatusByStaffIds
(
wxEnterpriseId
,
midStaffIds
);
Map
<
String
,
String
>
staffNameMap
=
haobanStaffs
.
stream
().
collect
(
Collectors
.
toMap
(
dto
->
dto
.
getStaffId
(),
dto
->
dto
.
getStaffName
(),
(
o
,
n
)
->
o
));
Map
<
String
,
String
>
staffNameMap
=
haobanStaffs
.
stream
().
collect
(
Collectors
.
toMap
(
dto
->
dto
.
getStaffId
(),
dto
->
dto
.
getStaffName
(),
(
o
,
n
)
->
o
));
ret
.
getResult
().
forEach
(
dto
->
{
ret
.
getResult
().
forEach
(
dto
->
{
String
handoverStaff
=
staffNameMap
.
get
(
dto
.
getHandoverStaffId
());
TabHandoverTransfer
handoverTransfer
=
transferMap
.
get
(
dto
.
getHandoverTransferId
());
String
takeoverStaff
=
staffNameMap
.
get
(
dto
.
getTakeoverStaffId
());
String
handoverStaff
=
staffNameMap
.
get
(
handoverTransfer
.
getHandoverStaffId
());
String
takeoverStaff
=
staffNameMap
.
get
(
handoverTransfer
.
getTakeoverStaffId
());
dto
.
setTakeoverStaffName
(
takeoverStaff
);
dto
.
setTakeoverStaffName
(
takeoverStaff
);
dto
.
setHandoverStaffName
(
handoverStaff
);
dto
.
setHandoverStaffName
(
handoverStaff
);
});
});
...
...
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