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
0e2c9f23
Commit
0e2c9f23
authored
May 07, 2022
by
墨竹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:获取交集门店id
parent
066ff9ff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
1 deletions
+21
-1
StaffApiServiceImpl.java
.../manage/service/service/out/impl/StaffApiServiceImpl.java
+21
-1
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/StaffApiServiceImpl.java
View file @
0e2c9f23
...
@@ -100,6 +100,8 @@ public class StaffApiServiceImpl implements StaffApiService {
...
@@ -100,6 +100,8 @@ public class StaffApiServiceImpl implements StaffApiService {
private
StoreWidgetService
storeWidgetService
;
private
StoreWidgetService
storeWidgetService
;
@Autowired
@Autowired
private
PowerService
powerService
;
private
PowerService
powerService
;
@Autowired
private
StoreRangeService
storeRangeService
;
@Override
@Override
public
StaffDTO
selectById
(
String
staffId
)
{
public
StaffDTO
selectById
(
String
staffId
)
{
...
@@ -1291,7 +1293,25 @@ public class StaffApiServiceImpl implements StaffApiService {
...
@@ -1291,7 +1293,25 @@ public class StaffApiServiceImpl implements StaffApiService {
@Override
@Override
public
List
<
String
>
getHaoBanStoreRoles
(
String
clerkId
)
{
public
List
<
String
>
getHaoBanStoreRoles
(
String
clerkId
)
{
return
null
;
StaffClerkRelationDTO
staffClerkRelationDTO
=
staffClerkRelationService
.
getByClerkId
(
clerkId
);
if
(
staffClerkRelationDTO
==
null
)
{
return
Collections
.
emptyList
();
}
TabHaobanStaff
staff
=
staffService
.
selectById
(
staffClerkRelationDTO
.
getStaffId
());
if
(
staff
==
null
)
{
return
Collections
.
emptyList
();
}
List
<
String
>
enterpriseIdStoreIds
=
storeRangeService
.
listStoreIdByWxEnterpriseId
(
staffClerkRelationDTO
.
getEnterpriseId
(),
staffClerkRelationDTO
.
getWxEnterpriseId
());
Integer
superManagerFlag
=
staff
.
getSuperManagerFlag
();
//超管
if
(
superManagerFlag
!=
null
&&
superManagerFlag
==
1
)
{
//超管返回好办企业
return
enterpriseIdStoreIds
;
}
List
<
String
>
gicStoreIds
=
getStoreIdList
(
clerkId
);
//取交集
Sets
.
SetView
<
String
>
intersection
=
Sets
.
intersection
(
Sets
.
newHashSet
(
enterpriseIdStoreIds
),
Sets
.
newHashSet
(
gicStoreIds
));
return
new
ArrayList
<>(
intersection
);
}
}
...
...
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