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
4c73333c
Commit
4c73333c
authored
Feb 10, 2025
by
xiehongfei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修正店长/店员 任务列表头像
parent
040434e3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
CanvasDataController.java
...oban/manage/web/controller/data/CanvasDataController.java
+10
-6
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/data/CanvasDataController.java
View file @
4c73333c
...
...
@@ -6,7 +6,9 @@ import com.gic.clerk.api.dto.ClerkDTO;
import
com.gic.clerk.api.service.ClerkService
;
import
com.gic.commons.util.DataApiUtils
;
import
com.gic.commons.webapi.reponse.RestResponse
;
import
com.gic.haoban.manage.api.dto.StaffClerkRelationDTO
;
import
com.gic.haoban.manage.api.service.StaffApiService
;
import
com.gic.haoban.manage.api.service.StaffClerkRelationApiService
;
import
com.gic.haoban.manage.web.qo.canvas.*
;
import
com.gic.haoban.manage.web.utils.EsMemberInfoUtils
;
import
com.gic.haoban.manage.web.vo.canvas.*
;
...
...
@@ -38,6 +40,8 @@ public class CanvasDataController {
private
StaffApiService
staffApiService
;
@Autowired
private
ClerkService
clerkService
;
@Autowired
private
StaffClerkRelationApiService
staffClerkRelationApiService
;
/**
* 活动转化数据
...
...
@@ -192,13 +196,13 @@ public class CanvasDataController {
Page
<
CanvasStoreTaskVO
>
page
=
DataApiUtils
.
getPageData
(
res
,
CanvasStoreTaskVO
.
class
);
List
<
CanvasStoreTaskVO
>
list
=
page
.
getResult
();
if
(
CollectionUtils
.
isNotEmpty
(
list
))
{
Set
<
String
>
clerkIdList
=
list
.
stream
().
filter
(
e
->
StringUtils
.
isNotBlank
(
e
.
getClerkId
())).
map
(
e
->
e
.
getClerkId
()).
collect
(
Collectors
.
toSe
t
());
List
<
String
>
clerkIdList
=
list
.
stream
().
filter
(
e
->
StringUtils
.
isNotBlank
(
e
.
getClerkId
())).
map
(
e
->
e
.
getClerkId
()).
distinct
().
collect
(
Collectors
.
toLis
t
());
if
(
CollectionUtils
.
isNotEmpty
(
clerkIdList
))
{
List
<
ClerkDTO
>
clerkList
=
clerkService
.
getClerk
ByClerkIds
(
clerkIdList
);
if
(
CollectionUtils
.
isNotEmpty
(
clerkList
))
{
Map
<
String
,
String
>
clerkIdMapHeadImage
=
clerkList
.
stream
()
.
filter
(
e
->
StringUtils
.
isNotBlank
(
e
.
get
HeadImgUrl
()))
.
collect
(
Collectors
.
toMap
(
e
->
e
.
getClerkId
(),
e
->
e
.
get
HeadImgUrl
()));
List
<
StaffClerkRelationDTO
>
staffClerkRelationDTOS
=
staffClerkRelationApiService
.
list
ByClerkIds
(
clerkIdList
);
if
(
CollectionUtils
.
isNotEmpty
(
staffClerkRelationDTOS
))
{
Map
<
String
,
String
>
clerkIdMapHeadImage
=
staffClerkRelationDTOS
.
stream
()
.
filter
(
e
->
StringUtils
.
isNotBlank
(
e
.
get
StaffHeadImg
()))
.
collect
(
Collectors
.
toMap
(
e
->
e
.
getClerkId
(),
e
->
e
.
get
StaffHeadImg
()));
for
(
CanvasStoreTaskVO
vo
:
list
)
{
vo
.
setClerkImageUrl
(
clerkIdMapHeadImage
.
get
(
vo
.
getClerkId
()));
}
...
...
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