Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
R
rtjl
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
注册表
注册表
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
svn
rtjl
Commits
ea83ca3b
提交
ea83ca3b
authored
12月 04, 2019
作者:
liupengfei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
--no commit message
上级
6e4b83ae
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
0 行增加
和
126 行删除
+0
-126
FgVideoLibraryDiyTypeMapper.java
...e/fg/mapper/videolibrary/FgVideoLibraryDiyTypeMapper.java
+0
-10
FgVideoLibraryLabelContentDiyTypeMapper.java
...videolibrary/FgVideoLibraryLabelContentDiyTypeMapper.java
+0
-52
FgVideoLibraryMapper.java
...resource/fg/mapper/videolibrary/FgVideoLibraryMapper.java
+0
-64
没有找到文件。
app/resource/src/main/java/com/zrqx/resource/fg/mapper/videolibrary/FgVideoLibraryDiyTypeMapper.java
deleted
100644 → 0
浏览文件 @
6e4b83ae
package
com
.
zrqx
.
resource
.
fg
.
mapper
.
videolibrary
;
import
com.zrqx.core.mapper.BaseMapper
;
import
com.zrqx.resource.commons.model.videolibrary.VideoLibraryDiyType
;
/**
* 视频库和自定义分类
*/
public
interface
FgVideoLibraryDiyTypeMapper
extends
BaseMapper
<
VideoLibraryDiyType
>
{
}
app/resource/src/main/java/com/zrqx/resource/fg/mapper/videolibrary/FgVideoLibraryLabelContentDiyTypeMapper.java
deleted
100644 → 0
浏览文件 @
6e4b83ae
package
com
.
zrqx
.
resource
.
fg
.
mapper
.
videolibrary
;
import
java.util.List
;
import
com.zrqx.resource.bg.mapper.MapperConstants
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Select
;
import
com.zrqx.core.mapper.BaseMapper
;
import
com.zrqx.resource.commons.model.label.LabelContentDiyType
;
import
com.zrqx.resource.commons.model.videolibrary.VideoLibraryLabelContentDiyType
;
import
com.zrqx.resource.commons.vo.fg.label.FgLabelInfoVO
;
/**
* 文章库和标签关系
*/
public
interface
FgVideoLibraryLabelContentDiyTypeMapper
extends
BaseMapper
<
VideoLibraryLabelContentDiyType
>
{
@Select
(
"<script>"
+
"SELECT al.labelId, l.name, l.englishName, l.nationsType "
+
"FROM res_video_library a "
+
"left join res_video_library_label_content_diy_type al ON a.id = al.videoId "
+
"left join res_label_content_diy_type lc on al.labelContentDiyTypeId = lc.id "
+
"left join res_label l on al.labelId = l.id "
+
"where 1=1 "
+
"and a.status = 1 and lc.status = 1 "
//+ "<if test='" +LIST_NOT_EMPTY + "(ids)'>"
//+ "and a.id in "
//+ " <foreach collection=\"ids\" index=\"index\" item=\"id\" open=\"(\" separator=\",\" close=\")\">"
//+ "#{id}"
//+ "</foreach>"
//+ "</if>"
+
MapperConstants
.
FOREACH_IDS
+
"</script>"
)
List
<
FgLabelInfoVO
>
queryLabelList
(
@Param
(
"ids"
)
List
<
String
>
ids
);
@Select
(
"<script>"
+
"SELECT al.labelId, al.labelContentDiyTypeId id, lc.labelContent, lc.parentId, lc.englishName, lc.sort, al.labelContentDiyTypeCode code "
+
"FROM res_video_library a "
+
"left join res_video_library_label_content_diy_type al ON a.id = al.videoId "
+
"left join res_label_content_diy_type lc on al.labelContentDiyTypeId = lc.id "
+
"where 1=1 "
+
"and a.status = 1 and lc.status = 1 "
//+ "<if test='" +LIST_NOT_EMPTY + "(ids)'>"
//+ "and a.id in "
//+ " <foreach collection=\"ids\" index=\"index\" item=\"id\" open=\"(\" separator=\",\" close=\")\">"
//+ "#{id}"
//+ "</foreach>"
//+ "</if>"
+
MapperConstants
.
FOREACH_IDS
+
"</script>"
)
List
<
LabelContentDiyType
>
queryLabelContentList
(
@Param
(
"ids"
)
List
<
String
>
ids
);
}
app/resource/src/main/java/com/zrqx/resource/fg/mapper/videolibrary/FgVideoLibraryMapper.java
deleted
100644 → 0
浏览文件 @
6e4b83ae
package
com
.
zrqx
.
resource
.
fg
.
mapper
.
videolibrary
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Select
;
import
com.zrqx.core.mapper.BaseMapper
;
import
com.zrqx.resource.commons.form.fg.videolibrary.FgQueryRecommedVideoForm
;
import
com.zrqx.resource.commons.model.videolibrary.VideoLibrary
;
import
com.zrqx.resource.commons.vo.fg.videolibrary.FgVideoLibraryListVO
;
/**
* 视频库
*/
public
interface
FgVideoLibraryMapper
extends
BaseMapper
<
VideoLibrary
>
{
/**
* 获取推荐视频
*/
@Select
(
"<script>"
+
"select a.* "
+
"from res_video_Library a "
+
"where a.status = 1 "
+
"<if test='form.resourceType != null' >"
+
"and a.resourceType = #{form.resourceType}"
+
"</if>"
+
"<if test='form.ids != null and form.ids.size > 0' >"
+
"and id in "
+
" <foreach collection=\"form.ids\" index=\"index\" item=\"id\" open=\"(\" separator=\",\" close=\")\">"
+
"#{id}"
+
"</foreach>"
+
"</if>"
+
"<if test='form.ids != null and form.ids.size > 0' >"
+
" ORDER BY FIELD "
+
" <foreach collection=\"form.ids\" index=\"index\" item=\"id\" open=\"(id, \" separator=\",\" close=\")\">"
+
"#{id}"
+
"</foreach>"
+
"</if>"
+
"</script>"
)
List
<
FgVideoLibraryListVO
>
queryRecommendVideo
(
@Param
(
"form"
)
FgQueryRecommedVideoForm
form
);
/**
* 获取其他推荐视频
* @param form
* @return
*/
@Select
(
"<script>"
+
"select a.* "
+
"from res_video_Library a "
+
"where a.status = 1 "
+
"<if test='form.resourceType != null' >"
+
"and a.resourceType = #{form.resourceType}"
+
"</if>"
+
"<if test='form.ids != null and form.ids.size > 0' >"
+
"and id not in "
+
" <foreach collection=\"form.ids\" index=\"index\" item=\"id\" open=\"(\" separator=\",\" close=\")\">"
+
"#{id}"
+
"</foreach>"
+
"</if>"
+
" order by uploadTime desc"
+
"</script>"
)
List
<
FgVideoLibraryListVO
>
queryOtherRecommendVideo
(
@Param
(
"form"
)
FgQueryRecommedVideoForm
form
);
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论