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
9e77e176
Commit
9e77e176
authored
May 24, 2023
by
guojx
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/feature/五月需求迭代' into feature/五月需求迭代
parents
bc6d8bd5
b391d149
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
MemberUnionidRelatedApiServiceImpl.java
.../service/out/impl/MemberUnionidRelatedApiServiceImpl.java
+0
-0
StaffApiServiceImpl.java
.../manage/service/service/out/impl/StaffApiServiceImpl.java
+3
-2
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/MemberUnionidRelatedApiServiceImpl.java
View file @
9e77e176
This source diff could not be displayed because it is too large. You can
view the blob
instead.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/StaffApiServiceImpl.java
View file @
9e77e176
...
...
@@ -186,7 +186,8 @@ public class StaffApiServiceImpl implements StaffApiService {
List
<
String
>
relationIdList
=
this
.
staffClerkRelationService
.
listRelationsStaffId
(
staffIdList
);
//已关联的成员需要查询关联的品牌名称
List
<
TabHaobanWxEnterpriseRelated
>
list
=
wxEnterpriseRelatedService
.
getByWxEnterpriseId
(
wxEnterpriseId
);
Map
<
String
,
String
>
map
=
list
.
stream
().
collect
(
Collectors
.
toMap
(
TabHaobanWxEnterpriseRelated:
:
getEnterpriseId
,
TabHaobanWxEnterpriseRelated:
:
getEnterpriseName
));
//解决空指针异常问题
Map
<
String
,
Object
>
map
=
list
.
stream
().
collect
(
Collectors
.
toMap
(
TabHaobanWxEnterpriseRelated:
:
getEnterpriseId
,
a
->
Optional
.
ofNullable
(
a
.
getEnterpriseName
())));
List
<
StaffClerkRelationDTO
>
relationDTOList
=
staffClerkRelationService
.
listByWxEnterpriseIdAndStaffId
(
wxEnterpriseId
,
staffIdList
);
staffDTOList
.
forEach
(
one
->
{
if
(
relationIdList
.
contains
(
one
.
getStaffId
())){
...
...
@@ -195,7 +196,7 @@ public class StaffApiServiceImpl implements StaffApiService {
List
<
String
>
enterpriseNameList
=
new
ArrayList
<>(
8
);
for
(
StaffClerkRelationDTO
dto
:
relationDTOList
){
if
(
dto
.
getStaffId
().
equals
(
one
.
getStaffId
())){
enterpriseNameList
.
add
(
map
.
get
(
dto
.
getEnterpriseId
(
)));
enterpriseNameList
.
add
(
String
.
valueOf
(
map
.
get
(
dto
.
getEnterpriseId
()
)));
}
}
if
(
CollUtil
.
isNotEmpty
(
enterpriseNameList
)){
...
...
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