Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in
Toggle navigation
T
tanpu-community
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
探普后端
tanpu-community
Commits
b6b27099
Commit
b6b27099
authored
Jul 29, 2021
by
刘基明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复
parent
6b62264c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
BatchFeignCallService.java
...va/com/tanpu/community/service/BatchFeignCallService.java
+4
-6
No files found.
community-service/src/main/java/com/tanpu/community/service/BatchFeignCallService.java
View file @
b6b27099
...
...
@@ -73,8 +73,6 @@ public class BatchFeignCallService {
@Resource
private
TopicService
topicService
;
@Resource
private
UserInfoService
userInfoService
;
public
void
getAttachDetail
(
ThemeQo
themeQo
)
{
...
...
@@ -193,14 +191,14 @@ public class BatchFeignCallService {
if
(!
CollectionUtils
.
isEmpty
(
shortVideoIds
))
{
// 短视频列表
List
<
ShortVideoBaseInfoResp
>
list
=
feignService
.
batchGetShortVideoBaseInfo
(
setToList
(
shortVideoIds
));
shortVideoMap
.
putAll
(
list
.
stream
().
collect
(
Collectors
.
toMap
(
ShortVideoBaseInfoResp:
:
getSourceId
,
item
->
item
)));
shortVideoMap
.
putAll
(
list
.
stream
().
collect
(
Collectors
.
toMap
(
ShortVideoBaseInfoResp:
:
getSourceId
,
item
->
item
,(
oldValue
,
newValue
)->
oldValue
)));
}
if
(!
CollectionUtils
.
isEmpty
(
curriculumIds
))
{
// 课程列表
List
<
ShortVideoBaseInfoResp
>
commonResp
=
feignService
.
getCurriculumByColumnRelId
(
setToList
(
curriculumIds
));
if
(
commonResp
!=
null
&&
!
CollectionUtils
.
isEmpty
(
commonResp
))
{
curriculumMap
.
putAll
(
commonResp
.
stream
()
.
collect
(
Collectors
.
toMap
(
ShortVideoBaseInfoResp:
:
getColumnRelId
,
item
->
item
)));
.
collect
(
Collectors
.
toMap
(
ShortVideoBaseInfoResp:
:
getColumnRelId
,
item
->
item
,(
oldValue
,
newValue
)->
oldValue
)));
}
}
if
(!
CollectionUtils
.
isEmpty
(
courseIds
))
{
...
...
@@ -208,7 +206,7 @@ public class BatchFeignCallService {
CommonResp
<
List
<
CourseSimpleResp
>>
commonResp
=
feignForCourse
.
getCourseSimpleList
(
setToList
(
courseIds
));
if
(
commonResp
.
isSuccess
()
&
!
CollectionUtils
.
isEmpty
(
commonResp
.
getData
()))
{
courseMap
.
putAll
(
commonResp
.
getData
().
stream
().
collect
(
Collectors
.
toMap
(
CourseSimpleResp:
:
getCourseId
,
item
->
item
)));
courseMap
.
putAll
(
commonResp
.
getData
().
stream
().
collect
(
Collectors
.
toMap
(
CourseSimpleResp:
:
getCourseId
,
item
->
item
,(
oldValue
,
newValue
)->
oldValue
)));
}
}
if
(!
CollectionUtils
.
isEmpty
(
zhiboIds
))
{
...
...
@@ -216,7 +214,7 @@ public class BatchFeignCallService {
CommonResp
<
List
<
ZhiboListResp
>>
commonResp
=
feignClientForZhibo
.
simpleList
(
setToList
(
zhiboIds
));
if
(
commonResp
.
isSuccess
()
&&
!
CollectionUtils
.
isEmpty
(
commonResp
.
getData
()))
{
zhiboMap
.
putAll
(
commonResp
.
getData
().
stream
().
collect
(
Collectors
.
toMap
(
ZhiboListResp:
:
getId
,
item
->
item
)));
zhiboMap
.
putAll
(
commonResp
.
getData
().
stream
().
collect
(
Collectors
.
toMap
(
ZhiboListResp:
:
getId
,
item
->
item
,(
oldValue
,
newValue
)->
oldValue
)));
}
}
if
(!
CollectionUtils
.
isEmpty
(
imageIds
))
{
...
...
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