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
1
Merge Requests
1
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
2aedc85d
Commit
2aedc85d
authored
Jun 04, 2020
by
huangZW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
d6ccd374
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
ClerkController.java
...com/gic/haoban/manage/web/controller/ClerkController.java
+7
-5
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/ClerkController.java
View file @
2aedc85d
...
...
@@ -115,15 +115,16 @@ public class ClerkController extends WebBaseController{
List
<
StaffClerkRelationDTO
>
list
=
staffClerkRelationApiService
.
listByStoreId
(
storeId
);
List
<
String
>
staffIds
=
list
.
stream
().
map
(
s
->
s
.
getStaffId
()).
collect
(
Collectors
.
toList
());
List
<
StaffDTO
>
resultlist
=
staffApiService
.
listByIds
(
staffIds
);
Map
<
String
,
Staff
ClerkRelationDTO
>
map
=
com
.
gic
.
commons
.
util
.
CollectionUtil
.
toMap
(
list
,
"staffId"
);
Map
<
String
,
Staff
DTO
>
map
=
com
.
gic
.
commons
.
util
.
CollectionUtil
.
toMap
(
result
list
,
"staffId"
);
int
size
=
0
;
if
(
resultlist
!=
null
){
size
=
resultlist
.
size
();
}
for
(
StaffDTO
dto
:
resultlist
){
StaffClerkRelationDTO
staffClerkRelationDTO
=
map
.
get
(
dto
.
getStaffId
());
dto
.
setClerkCode
(
staffClerkRelationDTO
.
getClerkCode
());
dto
.
setClerkId
(
staffClerkRelationDTO
.
getClerkId
());
List
<
StaffDTO
>
resultList
=
new
ArrayList
<>();
for
(
StaffClerkRelationDTO
staffClerkRelationDTO
:
list
){
StaffDTO
dto
=
map
.
get
(
staffClerkRelationDTO
.
getStaffId
());
if
(
size
<
20
){
ClerkDTO
clerk
=
clerkService
.
getClerkByClerkCode
(
staffClerkRelationDTO
.
getEnterpriseId
(),
staffClerkRelationDTO
.
getClerkCode
());
if
(
clerk
!=
null
){
...
...
@@ -136,6 +137,7 @@ public class ClerkController extends WebBaseController{
}
else
{
dto
.
setMemberCount
(
0
);
}
resultList
.
add
(
dto
);
}
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
resultlist
);
...
...
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