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
243df1f6
Commit
243df1f6
authored
Nov 28, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导购
parent
5e0bff6f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
StaffApiService.java
...va/com/gic/haoban/manage/api/service/StaffApiService.java
+2
-0
StaffApiServiceImpl.java
.../manage/service/service/out/impl/StaffApiServiceImpl.java
+15
-0
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/service/StaffApiService.java
View file @
243df1f6
...
@@ -93,6 +93,8 @@ public interface StaffApiService {
...
@@ -93,6 +93,8 @@ public interface StaffApiService {
List
<
String
>
listBindStaffId
(
String
storeId
);
List
<
String
>
listBindStaffId
(
String
storeId
);
List
<
String
>
listBindClerkId
(
String
storeId
);
List
<
StaffClerkRelationDTO
>
listBindRelationUserId
(
String
storeId
);
List
<
StaffClerkRelationDTO
>
listBindRelationUserId
(
String
storeId
);
/**
/**
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/StaffApiServiceImpl.java
View file @
243df1f6
...
@@ -631,6 +631,15 @@ public class StaffApiServiceImpl implements StaffApiService {
...
@@ -631,6 +631,15 @@ public class StaffApiServiceImpl implements StaffApiService {
@Override
@Override
public
List
<
String
>
listBindStaffId
(
String
storeId
)
{
public
List
<
String
>
listBindStaffId
(
String
storeId
)
{
return
this
.
listBind
(
storeId
,
1
)
;
}
@Override
public
List
<
String
>
listBindClerkId
(
String
storeId
)
{
return
this
.
listBind
(
storeId
,
2
)
;
}
private
List
<
String
>
listBind
(
String
storeId
,
int
type
)
{
List
<
String
>
userIdList
=
new
ArrayList
<
String
>();
List
<
String
>
userIdList
=
new
ArrayList
<
String
>();
List
<
String
>
storeIds
=
new
ArrayList
<
String
>();
List
<
String
>
storeIds
=
new
ArrayList
<
String
>();
storeIds
.
add
(
storeId
);
storeIds
.
add
(
storeId
);
...
@@ -639,6 +648,7 @@ public class StaffApiServiceImpl implements StaffApiService {
...
@@ -639,6 +648,7 @@ public class StaffApiServiceImpl implements StaffApiService {
if
(
CollectionUtils
.
isEmpty
(
staffRelationList
))
{
if
(
CollectionUtils
.
isEmpty
(
staffRelationList
))
{
return
Collections
.
EMPTY_LIST
;
return
Collections
.
EMPTY_LIST
;
}
}
if
(
type
==
1
)
{
Map
<
String
,
StaffClerkRelationDTO
>
clerkIdMap
=
staffRelationList
.
stream
().
filter
(
s
->
s
.
getClerkId
()
!=
null
).
collect
(
Collectors
.
toMap
(
StaffClerkRelationDTO:
:
getClerkId
,
s
->
s
));
Map
<
String
,
StaffClerkRelationDTO
>
clerkIdMap
=
staffRelationList
.
stream
().
filter
(
s
->
s
.
getClerkId
()
!=
null
).
collect
(
Collectors
.
toMap
(
StaffClerkRelationDTO:
:
getClerkId
,
s
->
s
));
Set
<
String
>
keySet
=
clerkIdMap
.
keySet
();
Set
<
String
>
keySet
=
clerkIdMap
.
keySet
();
for
(
String
clerkId
:
clerkList
)
{
for
(
String
clerkId
:
clerkList
)
{
...
@@ -646,9 +656,14 @@ public class StaffApiServiceImpl implements StaffApiService {
...
@@ -646,9 +656,14 @@ public class StaffApiServiceImpl implements StaffApiService {
userIdList
.
add
(
clerkIdMap
.
get
(
clerkId
).
getStaffId
());
userIdList
.
add
(
clerkIdMap
.
get
(
clerkId
).
getStaffId
());
}
}
}
}
}
if
(
type
==
2
)
{
userIdList
=
staffRelationList
.
stream
().
filter
(
s
->
s
.
getClerkId
()
!=
null
).
map
(
dto
->
dto
.
getClerkId
()).
collect
(
Collectors
.
toList
());
}
return
userIdList
;
return
userIdList
;
}
}
@Override
@Override
public
List
<
StaffClerkRelationDTO
>
listBindRelationUserId
(
String
storeId
)
{
public
List
<
StaffClerkRelationDTO
>
listBindRelationUserId
(
String
storeId
)
{
List
<
StaffClerkRelationDTO
>
bindList
=
new
ArrayList
<
StaffClerkRelationDTO
>();
List
<
StaffClerkRelationDTO
>
bindList
=
new
ArrayList
<
StaffClerkRelationDTO
>();
...
...
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