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
9502dffe
Commit
9502dffe
authored
Jun 16, 2020
by
fudahua
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' into 'master'
会员详情 See merge request
!71
parents
0474991e
239ded62
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
12 deletions
+23
-12
MemberUnionidRelatedApiServiceImpl.java
.../service/out/impl/MemberUnionidRelatedApiServiceImpl.java
+23
-12
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/MemberUnionidRelatedApiServiceImpl.java
View file @
9502dffe
...
...
@@ -129,23 +129,34 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
if
(
CollectionUtil
.
isEmpty
(
list
)){
return
null
;
}
//1、查该staff的门店id
List
<
TabHaobanStaffDepartmentRelated
>
relatedIds
=
staffDepartmentRelatedService
.
listByWxUserId
(
wxUser
Id
);
if
(
CollectionUtil
.
isEmpty
(
relatedIds
))
{
log
.
info
(
"staff
关联部门不存在1
"
);
String
wxEnterpriseId
=
list
.
get
(
0
).
getWxEnterpriseId
();
TabHaobanStaff
haobanStaff
=
staffService
.
selectByUserIdAndEnterpriseId
(
wxUserId
,
wxEnterprise
Id
);
if
(
null
==
haobanStaff
)
{
log
.
info
(
"staff
不存在
"
);
return
null
;
}
List
<
String
>
departmentIds
=
relatedIds
.
stream
().
map
(
s
->
s
.
getDepartmentId
()).
collect
(
Collectors
.
toList
());
if
(
CollectionUtil
.
isEmpty
(
departmentIds
)){
log
.
info
(
"staff部门不存在1"
);
return
null
;
}
List
<
DepartmentDTO
>
stores
=
departmentApiService
.
listByDepartmentIds
(
departmentIds
,
1
);
if
(
CollectionUtil
.
isEmpty
(
stores
)){
List
<
StaffClerkRelationDTO
>
clerkRelationDTOS
=
staffClerkRelationService
.
listBindCodeByStaffId
(
null
,
haobanStaff
.
getStaffId
());
if
(
CollectionUtil
.
isEmpty
(
clerkRelationDTOS
)){
log
.
info
(
"staff关联门店不存在1"
);
return
null
;
}
List
<
String
>
storeIds
=
stores
.
stream
().
filter
(
s
->(
s
.
getRelatedId
()!=
null
||
""
.
equals
(
s
.
getRelatedId
()))).
map
(
s
->
s
.
getRelatedId
()).
collect
(
Collectors
.
toList
());
// //1、查该staff的门店id
// List<TabHaobanStaffDepartmentRelated> relatedIds = staffDepartmentRelatedService.listByWxUserId(wxUserId);
// if(CollectionUtil.isEmpty(relatedIds)){
// log.info("staff关联部门不存在1");
// return null;
// }
// List<String> departmentIds = relatedIds.stream().map(s->s.getDepartmentId()).collect(Collectors.toList());
// if(CollectionUtil.isEmpty(departmentIds)){
// log.info("staff部门不存在1");
// return null;
// }
// List<DepartmentDTO> stores = departmentApiService.listByDepartmentIds(departmentIds, 1);
// if(CollectionUtil.isEmpty(stores)){
// log.info("staff关联门店不存在1");
// return null;
// }
List
<
String
>
storeIds
=
clerkRelationDTOS
.
stream
().
filter
(
s
->(
s
.
getStoreId
()!=
null
||
""
.
equals
(
s
.
getStoreId
()))).
map
(
s
->
s
.
getStoreId
()).
collect
(
Collectors
.
toList
());
if
(
CollectionUtil
.
isEmpty
(
storeIds
)){
log
.
info
(
"staff关联门店不存在2"
);
return
null
;
...
...
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