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
becb7909
Commit
becb7909
authored
May 25, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' of
http://git.gicdev.com/haoban3.0/haoban-manage3.0.git
into developer
parents
aa207c84
0ec272aa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
StaffApiServiceImpl.java
.../manage/service/service/out/impl/StaffApiServiceImpl.java
+5
-4
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/StaffApiServiceImpl.java
View file @
becb7909
...
...
@@ -1299,16 +1299,17 @@ public class StaffApiServiceImpl implements StaffApiService {
}
@Override
public
List
<
String
>
getHaoBanStoreRolesByClerkId
(
String
clerkId
,
String
wxEnterpriseId
)
{
public
List
<
String
>
getHaoBanStoreRolesByClerkId
(
String
clerkId
,
String
wxEnterpriseId
)
{
ClerkDTO
clerkDTO
=
clerkService
.
getClerkByClerkId
(
clerkId
);
if
(
clerkDTO
==
null
)
{
logger
.
info
(
"导购不存在:clerkId:{}"
,
clerkId
);
logger
.
info
(
"导购不存在:clerkId:{}"
,
clerkId
);
return
Collections
.
emptyList
();
}
List
<
String
>
enterpriseIdStoreIds
=
storeRangeService
.
listStoreIdByWxEnterpriseId
(
clerkDTO
.
getEnterpriseId
(),
wxEnterpriseId
);
List
<
String
>
enterpriseIdStoreIds
=
storeRangeService
.
listStoreIdByWxEnterpriseId
(
wxEnterpriseId
,
clerkDTO
.
getEnterpriseId
()
);
logger
.
info
(
"好办门店id:{}"
,
JSON
.
toJSONString
(
enterpriseIdStoreIds
));
List
<
String
>
gicStoreIds
=
getStoreIdList
(
clerkId
);
if
(
CollectionUtils
.
isEmpty
(
gicStoreIds
))
{
logger
.
info
(
"gic门店为空"
);
return
Collections
.
emptyList
();
}
if
(
gicStoreIds
.
contains
(
"-1"
))
{
...
...
@@ -1329,7 +1330,7 @@ public class StaffApiServiceImpl implements StaffApiService {
//商户未关联好办
return
Collections
.
emptyList
();
}
List
<
String
>
enterpriseIdStoreIds
=
storeRangeService
.
listStoreIdByWxEnterpriseId
(
enterprise
Id
,
enterpriseRelated
.
getWxEnterpriseId
()
);
List
<
String
>
enterpriseIdStoreIds
=
storeRangeService
.
listStoreIdByWxEnterpriseId
(
enterprise
Related
.
getWxEnterpriseId
(),
enterpriseId
);
List
<
String
>
storeWidgetIdStoreIds
=
getStoreWidgetIdStoreIds
(
storeWidgetId
,
enterpriseId
);
//取交集
Sets
.
SetView
<
String
>
intersection
=
Sets
.
intersection
(
Sets
.
newHashSet
(
enterpriseIdStoreIds
),
Sets
.
newHashSet
(
storeWidgetIdStoreIds
));
...
...
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