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
997c3097
Commit
997c3097
authored
Apr 15, 2022
by
墨竹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:空判断
parent
fc359d00
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
ClerkController.java
...com/gic/haoban/manage/web/controller/ClerkController.java
+5
-6
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/ClerkController.java
View file @
997c3097
...
@@ -104,20 +104,19 @@ public class ClerkController extends WebBaseController {
...
@@ -104,20 +104,19 @@ public class ClerkController extends WebBaseController {
List
<
String
>
staffIds
=
list
.
stream
().
map
(
StaffClerkRelationDTO:
:
getStaffId
).
collect
(
Collectors
.
toList
());
List
<
String
>
staffIds
=
list
.
stream
().
map
(
StaffClerkRelationDTO:
:
getStaffId
).
collect
(
Collectors
.
toList
());
List
<
StaffDTO
>
resultlist
=
staffApiService
.
listByIds
(
staffIds
);
List
<
StaffDTO
>
resultlist
=
staffApiService
.
listByIds
(
staffIds
);
Map
<
String
,
StaffDTO
>
map
=
com
.
gic
.
commons
.
util
.
CollectionUtil
.
toMap
(
resultlist
,
"staffId"
);
Map
<
String
,
StaffDTO
>
map
=
com
.
gic
.
commons
.
util
.
CollectionUtil
.
toMap
(
resultlist
,
"staffId"
);
List
<
StaffVO
>
resultList
=
new
ArrayList
<>();
List
<
StaffVO
>
resultList
=
new
ArrayList
<>();
for
(
StaffClerkRelationDTO
staffClerkRelationDTO
:
list
)
{
for
(
StaffClerkRelationDTO
staffClerkRelationDTO
:
list
)
{
StaffDTO
dto
=
map
.
get
(
staffClerkRelationDTO
.
getStaffId
());
StaffDTO
staffDTO
=
map
.
get
(
staffClerkRelationDTO
.
getStaffId
());
StaffVO
vo
=
EntityUtil
.
changeEntityByJSON
(
StaffVO
.
class
,
dto
);
ClerkDTO
clerk
=
clerkService
.
getClerkByClerkCode
(
staffClerkRelationDTO
.
getEnterpriseId
(),
staffClerkRelationDTO
.
getClerkCode
());
ClerkDTO
clerk
=
clerkService
.
getClerkByClerkCode
(
staffClerkRelationDTO
.
getEnterpriseId
(),
staffClerkRelationDTO
.
getClerkCode
());
if
(
clerk
!=
null
)
{
if
(
clerk
!=
null
)
{
long
memberCount
=
distributeApiService
.
getClerkMemberCount
(
staffClerkRelationDTO
.
getEnterpriseId
(),
clerk
.
getClerkId
(),
storeId
);
long
memberCount
=
distributeApiService
.
getClerkMemberCount
(
staffClerkRelationDTO
.
getEnterpriseId
(),
clerk
.
getClerkId
(),
storeId
);
logger
.
info
(
"【获取会员数】enterpriseId={},clerkId={},storeId={},memberCount={}"
,
staffClerkRelationDTO
.
getEnterpriseId
(),
clerk
.
getClerkId
(),
storeId
,
memberCount
);
logger
.
info
(
"【获取会员数】enterpriseId={},clerkId={},storeId={},memberCount={}"
,
staffClerkRelationDTO
.
getEnterpriseId
(),
clerk
.
getClerkId
(),
storeId
,
memberCount
);
if
(
memberCount
!=
0
)
{
if
(
memberCount
!=
0
)
{
vo
.
setMemberCount
(
memberCount
);
logger
.
info
(
"会员数为:{}"
,
memberCount
);
staffDTO
.
setMemberCount
(
memberCount
);
}
}
vo
.
setClerkId
(
clerk
.
getClerkId
());
staffDTO
.
setClerkId
(
clerk
.
getClerkId
());
resultList
.
add
(
vo
);
resultList
.
add
(
EntityUtil
.
changeEntityNew
(
StaffVO
.
class
,
staffDTO
)
);
}
}
}
}
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
resultList
);
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