Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
chnmuseum-party
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liqin
chnmuseum-party
Commits
af543a45
Commit
af543a45
authored
May 13, 2021
by
jiawei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG修改==》》视频版权方和分类管理不是多对多的关系,如版权方“上海博物馆”视频分类包含新闻、纪录片、电影、系列篇,而视频分类管理界面只有系列篇包含上海博物馆
parent
b6abecd0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
VideoContentCatController.java
...useum/party/web/controller/VideoContentCatController.java
+7
-2
No files found.
src/main/java/cn/chnmuseum/party/web/controller/VideoContentCatController.java
View file @
af543a45
...
@@ -147,8 +147,13 @@ public class VideoContentCatController extends BaseController {
...
@@ -147,8 +147,13 @@ public class VideoContentCatController extends BaseController {
VideoContentCat:
:
getUpdateTime
);
VideoContentCat:
:
getUpdateTime
);
Page
<
VideoContentCat
>
page
=
this
.
videoContentCatService
.
page
(
getPage
(),
queryWrapper
);
Page
<
VideoContentCat
>
page
=
this
.
videoContentCatService
.
page
(
getPage
(),
queryWrapper
);
for
(
VideoContentCat
videoContentCat
:
page
.
getRecords
())
{
for
(
VideoContentCat
videoContentCat
:
page
.
getRecords
())
{
LambdaQueryWrapper
<
VideoContent
>
lambdaQueryWrapper
=
Wrappers
.<
VideoContent
>
lambdaQuery
().
eq
(
VideoContent:
:
getVideoContentCatId
,
videoContentCat
.
getId
()).
select
(
VideoContent:
:
getVideoContentCopyrightOwnerId
);
final
List
<
String
>
videoContentCopyrightOwnerIdList
=
this
.
videoContentService
.
listObjs
(
lambdaQueryWrapper
,
Object:
:
toString
);
// LambdaQueryWrapper<VideoContent> lambdaQueryWrapper = Wrappers.<VideoContent>lambdaQuery().eq(VideoContent::getVideoContentCatId, videoContentCat.getId()).select(VideoContent::getVideoContentCopyrightOwnerId);
// final List<String> videoContentCopyrightOwnerIdList = this.videoContentService.listObjs(lambdaQueryWrapper, Object::toString);
LambdaQueryWrapper
<
CopyrightOwnerVideoContentCat
>
lambdaQueryWrapper
=
Wrappers
.<
CopyrightOwnerVideoContentCat
>
lambdaQuery
().
eq
(
CopyrightOwnerVideoContentCat:
:
getVideoContentCatId
,
videoContentCat
.
getId
()).
select
(
CopyrightOwnerVideoContentCat:
:
getCopyrightOwnerId
);
final
List
<
String
>
videoContentCopyrightOwnerIdList
=
this
.
copyrightOwnerVideoContentCatService
.
listObjs
(
lambdaQueryWrapper
,
Object:
:
toString
);
if
(!
videoContentCopyrightOwnerIdList
.
isEmpty
())
{
if
(!
videoContentCopyrightOwnerIdList
.
isEmpty
())
{
List
<
CopyrightOwner
>
copyrightOwnerList
=
this
.
copyrightOwnerService
.
listByIds
(
new
LinkedHashSet
<>(
videoContentCopyrightOwnerIdList
));
List
<
CopyrightOwner
>
copyrightOwnerList
=
this
.
copyrightOwnerService
.
listByIds
(
new
LinkedHashSet
<>(
videoContentCopyrightOwnerIdList
));
videoContentCat
.
setCopyrightOwnerName
(
copyrightOwnerList
.
stream
().
map
(
CopyrightOwner:
:
getName
).
collect
(
Collectors
.
joining
(
"、"
)));
videoContentCat
.
setCopyrightOwnerName
(
copyrightOwnerList
.
stream
().
map
(
CopyrightOwner:
:
getName
).
collect
(
Collectors
.
joining
(
"、"
)));
...
...
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