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
a7a1ffef
Commit
a7a1ffef
authored
Oct 08, 2022
by
墨竹
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature-haoban-role' into developer
parents
5e15a98f
78dae5e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
ClerkController.java
...com/gic/haoban/manage/web/controller/ClerkController.java
+12
-4
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/ClerkController.java
View file @
a7a1ffef
...
...
@@ -162,8 +162,11 @@ public class ClerkController extends WebBaseController {
if
(
storeIds
.
contains
(
"-1"
))
{
storeIds
=
null
;
}
List
<
ClerkDTO
>
clerkDTOS
=
clerkService
.
listClerkByNameOrCode
(
enterpriseId
,
null
,
storeIds
);
Page
<
ClerkDTO
>
clerkDTOPage
=
clerkService
.
pageClerkByNameOrCode
(
enterpriseId
,
null
,
storeIds
,
basePageInfo
.
getPageNum
(),
basePageInfo
.
getPageSize
());
List
<
ClerkDTO
>
clerkDTOS
=
clerkDTOPage
.
getResult
();
if
(
CollectionUtils
.
isEmpty
(
clerkDTOS
))
{
return
resultResponse
(
HaoBanErrCode
.
ERR_10016
);
}
Set
<
String
>
clerkCodeList
=
clerkDTOS
.
stream
().
map
(
ClerkDTO:
:
getClerkCode
).
collect
(
Collectors
.
toSet
());
List
<
StaffClerkRelationDTO
>
bindRelationList
=
staffClerkRelationApiService
.
listBindCode
(
enterpriseId
,
clerkCodeList
);
Map
<
String
,
StaffClerkRelationDTO
>
bindCodeMap
=
bindRelationList
.
stream
().
collect
(
Collectors
.
toMap
(
StaffClerkRelationDTO:
:
getClerkCode
,
s
->
s
));
...
...
@@ -972,7 +975,7 @@ public class ClerkController extends WebBaseController {
//门店导购列表
@RequestMapping
(
"store-clerk-list"
)
public
HaobanResponse
storeClerkList
(
String
storeId
,
String
enterpriseId
,
Integer
manageFlag
,
String
clerkId
)
{
public
HaobanResponse
storeClerkList
(
String
storeId
,
String
enterpriseId
,
Integer
manageFlag
,
String
clerkId
,
BasePageInfo
basePageInfo
)
{
WellDoneLoginDTO
loginUser
=
this
.
getLoginUser
();
String
wxEnterpriseId
=
loginUser
.
getWxEnterpriseId
();
List
<
String
>
storeIds
=
new
ArrayList
<>();
...
...
@@ -988,7 +991,12 @@ public class ClerkController extends WebBaseController {
if
(
storeIds
.
contains
(
"-1"
))
{
storeIds
=
null
;
}
List
<
ClerkDTO
>
list
=
clerkService
.
listClerkByNameOrCode
(
enterpriseId
,
null
,
storeIds
);
Page
<
ClerkDTO
>
clerkDTOPage
=
clerkService
.
pageClerkByNameOrCode
(
enterpriseId
,
null
,
storeIds
,
basePageInfo
.
getPageNum
(),
basePageInfo
.
getPageSize
());
List
<
ClerkDTO
>
list
=
clerkDTOPage
.
getResult
();
if
(
CollectionUtils
.
isEmpty
(
list
))
{
return
resultResponse
(
HaoBanErrCode
.
ERR_10016
);
}
Set
<
String
>
clerkCodeList
=
list
.
stream
().
map
(
ClerkDTO:
:
getClerkCode
).
collect
(
Collectors
.
toSet
());
List
<
StaffClerkRelationDTO
>
bindRelationList
=
staffClerkRelationApiService
.
listBindCode
(
enterpriseId
,
clerkCodeList
);
Map
<
String
,
StaffClerkRelationDTO
>
bindCodeMap
=
bindRelationList
.
stream
().
collect
(
Collectors
.
toMap
(
StaffClerkRelationDTO:
:
getClerkCode
,
s
->
s
));
...
...
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