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
7dd8a390
Commit
7dd8a390
authored
Apr 06, 2021
by
liqin
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fixed
parent
3f92ab88
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
18 deletions
+7
-18
AssetMapper.java
...java/cn/wisenergy/chnmuseum/party/mapper/AssetMapper.java
+7
-4
AssetController.java
...nergy/chnmuseum/party/web/controller/AssetController.java
+0
-14
No files found.
src/main/java/cn/wisenergy/chnmuseum/party/mapper/AssetMapper.java
View file @
7dd8a390
...
...
@@ -15,13 +15,16 @@ import org.apache.ibatis.annotations.Select;
*/
public
interface
AssetMapper
extends
BaseMapper
<
Asset
>
{
@Select
(
"SELECT a.*, co.`name` AS video_content_copyright_owner_name, vcc.`name` AS video_content_cat_name "
+
"FROM asset a, video_content vc, copyright_owner co, video_content_cat vcc"
+
@Select
(
"<script>"
+
"SELECT a.*, co.`name` AS video_content_copyright_owner_name, vcc.`name` AS video_content_cat_name "
+
"FROM asset a, video_content vc, copyright_owner co, video_content_cat vcc "
+
"where a.ref_item_id = vc.id "
+
"and vc.video_content_cat_id = vcc.id "
+
"and vc.video_content_copyright_owner_id =
vcc.co
"
+
"and vc.video_content_copyright_owner_id =
co.id
"
+
"<if test='videoContentCatId != null'>and vcc.id = #{videoContentCatId} </if>"
+
"<if test='videoContentCopyrightOwnerId != null'>and co.id = #{videoContentCopyrightOwnerId} </if>"
)
"<if test='videoContentCopyrightOwnerId != null'>and co.id = #{videoContentCopyrightOwnerId} </if>"
+
"order by a.create_time desc"
+
"</script>"
)
Page
<
Asset
>
selectPageByConditions
(
Page
<
Object
>
page
,
String
videoContentCatId
,
String
videoContentCopyrightOwnerId
);
}
src/main/java/cn/wisenergy/chnmuseum/party/web/controller/AssetController.java
View file @
7dd8a390
...
...
@@ -55,20 +55,6 @@ public class AssetController extends BaseController {
}
// 设置排序规则
ew
.
orderByDesc
(
Asset:
:
getCreateTime
);
// 设置查询内容
ew
.
select
(
Asset:
:
getId
,
Asset:
:
getFileName
,
Asset:
:
getFileExtName
,
Asset:
:
getFileCat
,
Asset:
:
getFileSize
,
Asset:
:
getFileType
,
Asset:
:
getFileUrl
,
Asset:
:
getLanguage
,
Asset:
:
getVideoContentCopyrightOwnerName
,
Asset:
:
getVideoContentCatName
,
Asset:
:
getCreateTime
,
Asset:
:
getUpdateTime
);
Page
<
Asset
>
page
=
this
.
assetService
.
pageByConditions
(
getPage
(),
videoContentCatId
,
videoContentCopyrightOwnerId
);
return
getResult
(
page
);
}
...
...
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