Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cloud-web
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hqzhdj
cloud-web
Commits
fb2e0aae
Commit
fb2e0aae
authored
Sep 01, 2025
by
“Kongxiangkun”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
我的收藏增加图片字段
parent
c64def53
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
cloud-web-student/src/main/java/com/yizhi/application/caseLibrary/controller/StudyCaseController.java
+3
-2
No files found.
cloud-web-student/src/main/java/com/yizhi/application/caseLibrary/controller/StudyCaseController.java
View file @
fb2e0aae
...
@@ -285,16 +285,17 @@ public class StudyCaseController {
...
@@ -285,16 +285,17 @@ public class StudyCaseController {
try
{
try
{
Page
<
FavoriteVO
>
favoriteVOPage
=
studyCaseClient
.
getFavoriteList
(
pageNo
,
pageSize
);
Page
<
FavoriteVO
>
favoriteVOPage
=
studyCaseClient
.
getFavoriteList
(
pageNo
,
pageSize
);
if
(
favoriteVOPage
!=
null
&&
CollectionUtils
.
isNotEmpty
(
favoriteVOPage
.
getRecords
())){
if
(
favoriteVOPage
!=
null
&&
CollectionUtils
.
isNotEmpty
(
favoriteVOPage
.
getRecords
())){
LOGGER
.
info
(
"我的收藏列表查询,记录数:{}
,数据:{}"
,
favoriteVOPage
.
getRecords
().
size
(),
JSONUtil
.
toJsonStr
(
favoriteVOPage
.
getRecords
()
));
LOGGER
.
info
(
"我的收藏列表查询,记录数:{}
"
,
favoriteVOPage
.
getRecords
().
size
(
));
List
<
Long
>
bizIds
=
favoriteVOPage
.
getRecords
().
stream
().
map
(
FavoriteVO:
:
getFavoriteId
).
collect
(
Collectors
.
toList
());
List
<
Long
>
bizIds
=
favoriteVOPage
.
getRecords
().
stream
().
map
(
FavoriteVO:
:
getFavoriteId
).
collect
(
Collectors
.
toList
());
List
<
InformationVo
>
informationVoList
=
informationManageFeignClients
.
listbyIds
(
bizIds
);
List
<
InformationVo
>
informationVoList
=
informationManageFeignClients
.
listbyIds
(
bizIds
);
LOGGER
.
info
(
"我的收藏获取资讯信息,记录数:{}
,数据:{}"
,
informationVoList
.
size
(),
JSONUtil
.
toJsonStr
(
informationVoList
));
LOGGER
.
info
(
"我的收藏获取资讯信息,记录数:{}
"
,
informationVoList
.
size
(
));
if
(
CollectionUtils
.
isNotEmpty
(
informationVoList
)){
if
(
CollectionUtils
.
isNotEmpty
(
informationVoList
)){
favoriteVOPage
.
getRecords
().
stream
().
forEach
(
vo
->{
favoriteVOPage
.
getRecords
().
stream
().
forEach
(
vo
->{
Optional
<
InformationVo
>
optional
=
informationVoList
.
stream
().
filter
(
i
->
Objects
.
equals
(
i
.
getId
(),
vo
.
getFavoriteId
())).
findFirst
();
Optional
<
InformationVo
>
optional
=
informationVoList
.
stream
().
filter
(
i
->
Objects
.
equals
(
i
.
getId
(),
vo
.
getFavoriteId
())).
findFirst
();
if
(
optional
!=
null
&&
optional
.
isPresent
()){
if
(
optional
!=
null
&&
optional
.
isPresent
()){
InformationVo
informationVo
=
optional
.
get
();
InformationVo
informationVo
=
optional
.
get
();
vo
.
setStudentCaseTittle
(
informationVo
.
getFileName
());
vo
.
setStudentCaseTittle
(
informationVo
.
getFileName
());
vo
.
setStudentCaseLogoUrl
(
informationVo
.
getLogoPath
());
}
}
});
});
}
}
...
...
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