20200529-zlp-3

优化视频播放列表
This commit is contained in:
paidaxing444
2020-05-29 23:31:22 +08:00
parent 1ac9d63503
commit abf9dc0b1b
6 changed files with 93 additions and 45 deletions

View File

@ -52,6 +52,12 @@ public class ByTrainVideo extends BaseEntity {
@Excel(name = "视频路径")
private String videourl;
/**
* 文件类型
*/
@Excel(name = "文件类型")
private String filetype;
/**
* 所属类别
*/
@ -124,6 +130,14 @@ public class ByTrainVideo extends BaseEntity {
return videourl;
}
public void setFiletype(String filetype) {
this.filetype = filetype;
}
public String getFiletype() {
return filetype;
}
public void setType(String type) {
this.type = type;
}
@ -165,6 +179,7 @@ public class ByTrainVideo extends BaseEntity {
.append("lecturer", getLecturer())
.append("lecturername", getLecturername())
.append("videourl", getVideourl())
.append("filetype", getFiletype())
.append("type", getType())
.append("classtype", getClasstype())
.append("createuserid", getCreateuserid())

View File

@ -11,6 +11,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="lecturer" column="lecturer" />
<result property="lecturername" column="lecturername" />
<result property="videourl" column="videourl" />
<result property="filetype" column="filetype" />
<result property="type" column="type" />
<result property="classtype" column="classtype" />
<result property="createuserid" column="createuserid" />
@ -18,7 +19,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap>
<sql id="selectByTrainVideoVo">
select id, title, information, lecturer,(select name from by_lecturer where lecturer=by_lecturer.id) as lecturername, videourl, type, classtype, createuserid, createtime from by_train_video
select id, title, information, lecturer,(select name from by_lecturer where lecturer=by_lecturer.id) as lecturername, videourl,filetype, type, classtype, createuserid, createtime from by_train_video
</sql>
<select id="selectByTrainVideoList" parameterType="ByTrainVideo" resultMap="ByTrainVideoResult">
@ -28,6 +29,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="information != null and information != ''"> and information = #{information}</if>
<if test="lecturer != null "> and lecturer = #{lecturer}</if>
<if test="videourl != null and videourl != ''"> and videourl = #{videourl}</if>
<if test="filetype != null and filetype != ''"> and filetype = #{filetype}</if>
<if test="type != null and type != ''"> and type like concat('', #{type}, '%')</if>
<if test="classtype != null and classtype != ''"> and classtype = #{classtype}</if>
<if test="createuserid != null "> and createuserid = #{createuserid}</if>
@ -47,6 +49,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="information != null and information != ''">information,</if>
<if test="lecturer != null ">lecturer,</if>
<if test="videourl != null and videourl != ''">videourl,</if>
<if test="filetype != null and filetype != ''">filetype,</if>
<if test="type != null and type != ''">type,</if>
<if test="classtype != null and classtype != ''">classtype,</if>
<if test="createuserid != null ">createuserid,</if>
@ -57,6 +60,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="information != null and information != ''">#{information},</if>
<if test="lecturer != null ">#{lecturer},</if>
<if test="videourl != null and videourl != ''">#{videourl},</if>
<if test="filetype != null and filetype != ''">#{filetype},</if>
<if test="type != null and type != ''">#{type},</if>
<if test="classtype != null and classtype != ''">#{classtype},</if>
<if test="createuserid != null ">#{createuserid},</if>
@ -71,6 +75,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="information != null and information != ''">information = #{information},</if>
<if test="lecturer != null ">lecturer = #{lecturer},</if>
<if test="videourl != null and videourl != ''">videourl = #{videourl},</if>
<if test="filetype != null and filetype != ''">filetype = #{filetype},</if>
<if test="type != null and type != ''">type = #{type},</if>
<if test="classtype != null and classtype != ''">classtype = #{classtype},</if>
<if test="createuserid != null ">createuserid = #{createuserid},</if>