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
239ded62
Commit
239ded62
authored
Jun 16, 2020
by
fudahua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
会员详情
parent
00139557
Hide 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 @
239ded62
...
@@ -129,23 +129,34 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
...
@@ -129,23 +129,34 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
if
(
CollectionUtil
.
isEmpty
(
list
)){
if
(
CollectionUtil
.
isEmpty
(
list
)){
return
null
;
return
null
;
}
}
//1、查该staff的门店id
String
wxEnterpriseId
=
list
.
get
(
0
).
getWxEnterpriseId
();
List
<
TabHaobanStaffDepartmentRelated
>
relatedIds
=
staffDepartmentRelatedService
.
listByWxUserId
(
wxUser
Id
);
TabHaobanStaff
haobanStaff
=
staffService
.
selectByUserIdAndEnterpriseId
(
wxUserId
,
wxEnterprise
Id
);
if
(
CollectionUtil
.
isEmpty
(
relatedIds
))
{
if
(
null
==
haobanStaff
)
{
log
.
info
(
"staff
关联部门不存在1
"
);
log
.
info
(
"staff
不存在
"
);
return
null
;
return
null
;
}
}
List
<
String
>
departmentIds
=
relatedIds
.
stream
().
map
(
s
->
s
.
getDepartmentId
()).
collect
(
Collectors
.
toList
());
List
<
StaffClerkRelationDTO
>
clerkRelationDTOS
=
staffClerkRelationService
.
listBindCodeByStaffId
(
null
,
haobanStaff
.
getStaffId
());
if
(
CollectionUtil
.
isEmpty
(
departmentIds
)){
if
(
CollectionUtil
.
isEmpty
(
clerkRelationDTOS
)){
log
.
info
(
"staff部门不存在1"
);
return
null
;
}
List
<
DepartmentDTO
>
stores
=
departmentApiService
.
listByDepartmentIds
(
departmentIds
,
1
);
if
(
CollectionUtil
.
isEmpty
(
stores
)){
log
.
info
(
"staff关联门店不存在1"
);
log
.
info
(
"staff关联门店不存在1"
);
return
null
;
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
)){
if
(
CollectionUtil
.
isEmpty
(
storeIds
)){
log
.
info
(
"staff关联门店不存在2"
);
log
.
info
(
"staff关联门店不存在2"
);
return
null
;
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