Browse Source

短视频模块

小么熊🐻 3 years ago
parent
commit
2ed5d472aa

+ 2 - 0
zzjs-admin/src/main/java/com/miaxis/app/controller/teachingVideo/AppletTeachingVideoInfoController.java

@@ -1,8 +1,10 @@
 package com.miaxis.app.controller.teachingVideo;
 package com.miaxis.app.controller.teachingVideo;
 
 
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
 import com.miaxis.common.constant.Constants;
 import com.miaxis.common.constant.Constants;
 import com.miaxis.common.core.controller.BaseController;
 import com.miaxis.common.core.controller.BaseController;
 import com.miaxis.common.core.domain.Response;
 import com.miaxis.common.core.domain.Response;
+import com.miaxis.teachingVideo.domain.TeachingVideoTypeInfo;
 import com.miaxis.teachingVideo.dto.TeachingVideoInfoTypeIdDto;
 import com.miaxis.teachingVideo.dto.TeachingVideoInfoTypeIdDto;
 import com.miaxis.teachingVideo.service.ITeachingVideoInfoService;
 import com.miaxis.teachingVideo.service.ITeachingVideoInfoService;
 import com.miaxis.teachingVideo.service.ITeachingVideoTypeInfoService;
 import com.miaxis.teachingVideo.service.ITeachingVideoTypeInfoService;

+ 137 - 0
zzjs-admin/src/main/java/com/miaxis/pc/controller/teachingDsp/TeachingDspInfoController.java

@@ -0,0 +1,137 @@
+package com.miaxis.pc.controller.teachingDsp;
+
+import com.miaxis.common.annotation.Log;
+import com.miaxis.common.core.controller.BaseController;
+import com.miaxis.common.core.domain.Response;
+import com.miaxis.common.core.page.ResponsePageInfo;
+import com.miaxis.common.enums.BusinessTypeEnum;
+import com.miaxis.common.utils.poi.ExcelUtil;
+import com.miaxis.teachingDsp.domain.TeachingDspInfo;
+import com.miaxis.teachingDsp.service.ITeachingDspInfoService;
+import io.swagger.annotations.*;
+import lombok.AllArgsConstructor;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.Arrays;
+import java.util.List;
+
+/**
+ * 【学车短视频】Controller
+ *
+ * @author miaxis
+ * @date 2021-12-09
+ */
+@RestController
+@AllArgsConstructor
+@RequestMapping("/pc/teachingDsp/dsp")
+@Api(tags={"【pc-学车短视频】"})
+public class TeachingDspInfoController extends BaseController{
+    @Autowired
+    private ITeachingDspInfoService teachingDspInfoService;
+
+    /**
+     * 查询学车短视频列表
+     */
+    @PreAuthorize("@ss.hasPermi('teachingDsp:dsp:list')")
+    @GetMapping("/list")
+    @ApiOperation("查询学车短视频列表")
+    @ApiImplicitParams({
+            @ApiImplicitParam(name = "pageNum",value = "当前页码" ,dataType = "int", paramType = "query", required = false),
+            @ApiImplicitParam(name = "pageSize",value = "每页数据量" , dataType = "int", paramType = "query", required = false),
+    })
+    public ResponsePageInfo<TeachingDspInfo> list(@ModelAttribute TeachingDspInfo teachingDspInfo){
+        startPage();
+        List<TeachingDspInfo> list = teachingDspInfoService.selectTeachingDspInfoList(teachingDspInfo);
+        return toResponsePageInfo(list);
+    }
+
+    /**
+     * 导出学车短视频列表
+     */
+    @PreAuthorize("@ss.hasPermi('teachingDsp:dsp:export')")
+    @Log(title = "学车短视频", businessType = BusinessTypeEnum.EXPORT)
+    @GetMapping("/export")
+    @ApiOperation("导出学车短视频列表Excel")
+    public Response<String> export(@ModelAttribute TeachingDspInfo teachingDspInfo){
+        List<TeachingDspInfo> list = teachingDspInfoService.selectTeachingDspInfoList(teachingDspInfo);
+        ExcelUtil<TeachingDspInfo> util = new ExcelUtil<TeachingDspInfo>(TeachingDspInfo.class);
+        return util.exportExcel(list, "dsp");
+    }
+
+    /**
+     * 获取学车短视频详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('teachingDsp:dsp:query')")
+    @GetMapping(value = "/{id}")
+    @ApiOperation("获取学车短视频详细信息")
+    public Response<TeachingDspInfo> getInfo(
+            @ApiParam(name = "id", value = "学车短视频参数", required = true)
+            @PathVariable("id") Long id
+    ){
+        return Response.success(teachingDspInfoService.getById(id));
+    }
+
+    /**
+     * 新增学车短视频
+     */
+    @PreAuthorize("@ss.hasPermi('teachingDsp:dsp:add')")
+    @Log(title = "学车短视频", businessType = BusinessTypeEnum.INSERT)
+    @PostMapping
+    @ApiOperation("新增学车短视频")
+    public Response<Integer> add(@RequestBody TeachingDspInfo teachingDspInfo){
+        return toResponse(teachingDspInfoService.save(teachingDspInfo) ? 1 : 0);
+    }
+
+    /**
+     * 修改学车短视频
+     */
+    @PreAuthorize("@ss.hasPermi('teachingDsp:dsp:edit')")
+    @Log(title = "学车短视频", businessType = BusinessTypeEnum.UPDATE)
+    @PutMapping
+    @ApiOperation("修改学车短视频")
+    public Response<Integer> edit(@RequestBody TeachingDspInfo teachingDspInfo){
+        return toResponse(teachingDspInfoService.updateById(teachingDspInfo) ? 1 : 0);
+    }
+
+    /**
+     * 删除学车短视频
+     */
+    @PreAuthorize("@ss.hasPermi('teachingDsp:dsp:remove')")
+    @Log(title = "学车短视频", businessType = BusinessTypeEnum.DELETE)
+	@DeleteMapping("/{ids}")
+    @ApiOperation("删除学车短视频")
+    public  Response<Integer> remove(
+            @ApiParam(name = "ids", value = "学车短视频ids参数", required = true)
+            @PathVariable Long[] ids
+    ){
+        return toResponse(teachingDspInfoService.removeByIds(Arrays.asList(ids)) ? 1 : 0);
+    }
+
+    /**
+     * 上架教学视频
+     */
+    @PreAuthorize("@ss.hasPermi('teachingVideo:info:putShelf')")
+    @Log(title = "教学视频", businessType = BusinessTypeEnum.UPDATE)
+    @PutMapping("/putShelf/{ids}")
+    @ApiOperation("上架教学视频")
+    public  Response putShelf(
+            @ApiParam(name = "ids", value = "教学视频ids参数", required = true) @PathVariable Long[] ids
+    ){
+        return teachingDspInfoService.removePutShelfByIds(ids);
+    }
+
+    /**
+     * 下架短视频
+     */
+    @PreAuthorize("@ss.hasPermi('teachingVideo:info:offShelf')")
+    @Log(title = "教学视频", businessType = BusinessTypeEnum.UPDATE)
+    @PutMapping("/offShelf/{ids}")
+    @ApiOperation("下架教学视频")
+    public  Response offShelf(
+            @ApiParam(name = "ids", value = "教学视频ids参数", required = true) @PathVariable Long[] ids
+    ){
+        return teachingDspInfoService.removeOffShelfByIds(ids);
+    }
+}

+ 1 - 1
zzjs-admin/src/main/java/com/miaxis/pc/controller/teachingVideo/TeachingVideoInfoController.java

@@ -111,7 +111,7 @@ public class TeachingVideoInfoController extends BaseController {
             @ApiParam(name = "ids", value = "教学视频ids参数", required = true)
             @ApiParam(name = "ids", value = "教学视频ids参数", required = true)
             @PathVariable Long[] ids
             @PathVariable Long[] ids
     ){
     ){
-        return teachingVideoInfoService.removeTeachingVideoByIds(ids);
+        return teachingVideoInfoService.removePutShelfByIds(ids);
     }
     }
 
 
 
 

+ 1 - 0
zzjs-common/src/main/java/com/miaxis/common/enums/FileUploadTypeEnum.java

@@ -12,6 +12,7 @@ public enum FileUploadTypeEnum
     CUSTOMER_TYPE(1, "customer", MimeTypeUtils.IMAGE_EXTENSION, "商户logo"),
     CUSTOMER_TYPE(1, "customer", MimeTypeUtils.IMAGE_EXTENSION, "商户logo"),
     CAR_BRAND(2, "car", MimeTypeUtils.IMAGE_EXTENSION, "汽车品牌logo"),
     CAR_BRAND(2, "car", MimeTypeUtils.IMAGE_EXTENSION, "汽车品牌logo"),
     STUDY_MOVIE(3, "study", MimeTypeUtils.MEDIA_EXTENSION, "学车视频"),
     STUDY_MOVIE(3, "study", MimeTypeUtils.MEDIA_EXTENSION, "学车视频"),
+    STUDY_DSP(4, "dsp", MimeTypeUtils.MEDIA_EXTENSION, "学车短视频"),
     OTHERS(99, "others", MimeTypeUtils.DEFAULT_ALLOWED_EXTENSION, "其他文件");
     OTHERS(99, "others", MimeTypeUtils.DEFAULT_ALLOWED_EXTENSION, "其他文件");
 
 
     private final Integer code;
     private final Integer code;

+ 203 - 0
zzjs-service/src/main/java/com/miaxis/teachingDsp/domain/TeachingDspInfo.java

@@ -0,0 +1,203 @@
+package com.miaxis.teachingDsp.domain;
+
+import java.math.BigDecimal;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.miaxis.common.annotation.Excel;
+import com.miaxis.common.core.domain.BaseEntity;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.miaxis.common.core.domain.BaseBusinessEntity;
+import lombok.Data;
+/**
+ * 学车短视频对象 teaching_dsp_info
+ *
+ * @author miaxis
+ * @date 2021-12-09
+ */
+@Data
+@TableName("teaching_dsp_info")
+@ApiModel(value = "TeachingDspInfo", description = "学车短视频对象 teaching_dsp_info")
+public class TeachingDspInfo extends BaseBusinessEntity{
+    private static final long serialVersionUID = 1L;
+
+    /** 主键 */
+    @TableId(value = "id")
+    @ApiModelProperty(value = "主键")
+    private Long id;
+
+    /** 视频文件id */
+    @Excel(name = "视频文件id")
+    @TableField("file_id")
+    @ApiModelProperty(value = "视频文件id")
+    private Long fileId;
+
+    /** 封面图片id */
+    @Excel(name = "封面图片id")
+    @TableField("cover_file_id")
+    @ApiModelProperty(value = "封面图片id")
+    private Long coverFileId;
+
+    /** 视频标题 */
+    @Excel(name = "视频标题")
+    @TableField("title")
+    @ApiModelProperty(value = "视频标题")
+    private String title;
+
+    /** 视频描述 */
+    @Excel(name = "视频描述")
+    @TableField("video_describe")
+    @ApiModelProperty(value = "视频描述")
+    private String videoDescribe;
+
+    /** 视频时长 */
+    @Excel(name = "视频时长")
+    @TableField("video_duration")
+    @ApiModelProperty(value = "视频时长")
+    private String videoDuration;
+
+    /** 视频大小(单位:MB) */
+    @Excel(name = "视频大小(单位:MB)", readConverterExp = "单=位:MB")
+    @TableField("video_size")
+    @ApiModelProperty(value = "视频大小(单位:MB)")
+    private BigDecimal videoSize;
+
+    /** 视频高度 */
+    @Excel(name = "视频高度")
+    @TableField("video_height")
+    @ApiModelProperty(value = "视频高度")
+    private Long videoHeight;
+
+    /** 视频宽度 */
+    @Excel(name = "视频宽度")
+    @TableField("video_width")
+    @ApiModelProperty(value = "视频宽度")
+    private Long videoWidth;
+
+    /** 云点播视频fileId */
+    @Excel(name = "云点播视频fileId")
+    @TableField("vod_video_file_id")
+    @ApiModelProperty(value = "云点播视频fileId")
+    private String vodVideoFileId;
+
+    /** 上架状态  0:已上架、1:未上架 */
+    @Excel(name = "上架状态  0:已上架、1:未上架")
+    @TableField("shelf_status")
+    @ApiModelProperty(value = "上架状态  0:已上架、1:未上架")
+    private Integer shelfStatus;
+
+    /** 状态  0:有效(默认)、1:失效 (伪删除) */
+    @Excel(name = "状态  0:有效(默认)、1:失效 (伪删除)", readConverterExp = "伪=删除")
+    @TableField("status")
+    @ApiModelProperty(value = "状态  0:有效(默认)、1:失效 (伪删除)")
+    private String status;
+
+    public void setId(Long id){
+        this.id = id;
+    }
+
+    public Long getId(){
+        return id;
+    }
+    public void setFileId(Long fileId){
+        this.fileId = fileId;
+    }
+
+    public Long getFileId(){
+        return fileId;
+    }
+    public void setCoverFileId(Long coverFileId){
+        this.coverFileId = coverFileId;
+    }
+
+    public Long getCoverFileId(){
+        return coverFileId;
+    }
+    public void setTitle(String title){
+        this.title = title;
+    }
+
+    public String getTitle(){
+        return title;
+    }
+    public void setVideoDescribe(String videoDescribe){
+        this.videoDescribe = videoDescribe;
+    }
+
+    public String getVideoDescribe(){
+        return videoDescribe;
+    }
+    public void setVideoDuration(String videoDuration){
+        this.videoDuration = videoDuration;
+    }
+
+    public String getVideoDuration(){
+        return videoDuration;
+    }
+    public void setVideoSize(BigDecimal videoSize){
+        this.videoSize = videoSize;
+    }
+
+    public BigDecimal getVideoSize(){
+        return videoSize;
+    }
+    public void setVideoHeight(Long videoHeight){
+        this.videoHeight = videoHeight;
+    }
+
+    public Long getVideoHeight(){
+        return videoHeight;
+    }
+    public void setVideoWidth(Long videoWidth){
+        this.videoWidth = videoWidth;
+    }
+
+    public Long getVideoWidth(){
+        return videoWidth;
+    }
+    public void setVodVideoFileId(String vodVideoFileId){
+        this.vodVideoFileId = vodVideoFileId;
+    }
+
+    public String getVodVideoFileId(){
+        return vodVideoFileId;
+    }
+    public void setShelfStatus(Integer shelfStatus){
+        this.shelfStatus = shelfStatus;
+    }
+
+    public Integer getShelfStatus(){
+        return shelfStatus;
+    }
+    public void setStatus(String status){
+        this.status = status;
+    }
+
+    public String getStatus(){
+        return status;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("fileId", getFileId())
+            .append("coverFileId", getCoverFileId())
+            .append("title", getTitle())
+            .append("videoDescribe", getVideoDescribe())
+            .append("videoDuration", getVideoDuration())
+            .append("videoSize", getVideoSize())
+            .append("videoHeight", getVideoHeight())
+            .append("videoWidth", getVideoWidth())
+            .append("vodVideoFileId", getVodVideoFileId())
+            .append("shelfStatus", getShelfStatus())
+            .append("status", getStatus())
+            .append("createTime", getCreateTime())
+            .append("updateTime", getUpdateTime())
+            .toString();
+    }
+}

+ 22 - 0
zzjs-service/src/main/java/com/miaxis/teachingDsp/mapper/TeachingDspInfoMapper.java

@@ -0,0 +1,22 @@
+package com.miaxis.teachingDsp.mapper;
+
+import java.util.List;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.miaxis.teachingDsp.domain.TeachingDspInfo;
+
+/**
+ * 学车短视频Mapper接口
+ *
+ * @author miaxis
+ * @date 2021-12-09
+ */
+public interface TeachingDspInfoMapper extends BaseMapper<TeachingDspInfo> {
+    /**
+     * 查询学车短视频列表
+     *
+     * @param teachingDspInfo 学车短视频
+     * @return 学车短视频集合
+     */
+    public List<TeachingDspInfo> selectTeachingDspInfoList(TeachingDspInfo teachingDspInfo);
+
+}

+ 48 - 0
zzjs-service/src/main/java/com/miaxis/teachingDsp/service/ITeachingDspInfoService.java

@@ -0,0 +1,48 @@
+package com.miaxis.teachingDsp.service;
+
+import java.util.List;
+
+import com.miaxis.common.core.domain.Response;
+import com.miaxis.teachingDsp.domain.TeachingDspInfo;
+import com.baomidou.mybatisplus.extension.service.IService;
+import org.springframework.web.multipart.MultipartFile;
+
+/**
+ * 学车短视频Service接口
+ *
+ * @author miaxis
+ * @date 2021-12-09
+ */
+public interface ITeachingDspInfoService extends IService<TeachingDspInfo>{
+    /**
+     * 查询学车短视频列表
+     *
+     * @param teachingDspInfo 学车短视频
+     * @return 学车短视频集合
+     */
+    public List<TeachingDspInfo> selectTeachingDspInfoList(TeachingDspInfo teachingDspInfo);
+
+
+    /**
+     * 上架教学视频
+     * @param ids
+     * @return
+     */
+    Response removePutShelfByIds(Long[] ids);
+
+    /**
+     * 下架教学视频
+     * @param ids
+     * @return
+     */
+    Response removeOffShelfByIds(Long[] ids);
+
+
+    /**
+     * 封面上传
+     * @param fileId
+     * @param coverFile
+     * @return
+     */
+    Response coverUp(String fileId, MultipartFile coverFile);
+}

+ 113 - 0
zzjs-service/src/main/java/com/miaxis/teachingDsp/service/impl/TeachingDspInfoServiceImpl.java

@@ -0,0 +1,113 @@
+package com.miaxis.teachingDsp.service.impl;
+
+import com.alibaba.fastjson.JSONObject;
+import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.miaxis.common.core.domain.Response;
+import com.miaxis.common.enums.FileUploadTypeEnum;
+import com.miaxis.common.exception.CustomException;
+import com.miaxis.file.domain.FileInfo;
+import com.miaxis.file.service.IFileInfoService;
+import com.miaxis.teachingDsp.domain.TeachingDspInfo;
+import com.miaxis.teachingDsp.mapper.TeachingDspInfoMapper;
+import com.miaxis.teachingDsp.service.ITeachingDspInfoService;
+import com.tencentcloudapi.vod.v20180717.VodClient;
+import com.tencentcloudapi.vod.v20180717.models.DescribeMediaInfosResponse;
+import com.tencentcloudapi.vod.v20180717.models.ModifyMediaInfoRequest;
+import com.tencentcloudapi.vod.v20180717.models.ModifyMediaInfoResponse;
+import lombok.AllArgsConstructor;
+import org.apache.commons.codec.binary.Base64;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
+import org.springframework.web.multipart.MultipartFile;
+
+import java.util.List;
+
+/**
+ * 学车短视频Service业务层处理
+ *
+ * @author miaxis
+ * @date 2021-12-09
+ */
+@Service
+@AllArgsConstructor
+public class TeachingDspInfoServiceImpl extends ServiceImpl<TeachingDspInfoMapper, TeachingDspInfo> implements ITeachingDspInfoService {
+
+    @Autowired
+    private TeachingDspInfoMapper teachingDspInfoMapper;
+
+    private final IFileInfoService fileInfoService;
+
+    private final VodClient vodClient;
+
+    /**
+     * 查询学车短视频列表
+     *
+     * @param teachingDspInfo 学车短视频
+     * @return 学车短视频
+     */
+    @Override
+    public List<TeachingDspInfo> selectTeachingDspInfoList(TeachingDspInfo teachingDspInfo){
+        return teachingDspInfoMapper.selectTeachingDspInfoList(teachingDspInfo);
+    }
+
+
+    /**
+     * 上架教学视频
+     * @param ids
+     * @return
+     */
+    @Override
+    @Transactional(rollbackFor = Exception.class)
+    public Response removePutShelfByIds(Long[] ids) {
+        for (Long id : ids) {
+            this.update(new UpdateWrapper<TeachingDspInfo>().set("shelf_status",0).eq("id",id));
+        }
+        return Response.success();
+    }
+
+    /**
+     * 下架教学视频
+     * @param ids
+     * @return
+     */
+    @Override
+    @Transactional(rollbackFor = Exception.class)
+    public Response removeOffShelfByIds(Long[] ids) {
+        for (Long id : ids) {
+            this.update(new UpdateWrapper<TeachingDspInfo>().set("shelf_status",1).eq("id",id));
+        }
+        return Response.success();
+    }
+
+    @Override
+    public Response coverUp(String fileId, MultipartFile coverFile) {
+        try{
+            byte[] refereeFileBase64Bytes = Base64.encodeBase64(coverFile.getBytes());
+            String UpFile = new String(refereeFileBase64Bytes, "UTF-8");
+            System.out.println(UpFile);
+
+            ModifyMediaInfoRequest req = new ModifyMediaInfoRequest();
+            req.setFileId(fileId);
+            req.setCoverData(UpFile);
+
+            ModifyMediaInfoResponse resp = vodClient.ModifyMediaInfo(req);
+            JSONObject jsonObject = JSONObject.parseObject(DescribeMediaInfosResponse.toJsonString(resp));
+            String coverUrl = (String) jsonObject.get("CoverUrl");//封面访问路径
+
+            //保存封面文件信息
+            FileInfo cover = new FileInfo();
+            cover.setFileType(FileUploadTypeEnum.STUDY_DSP.getFileType());
+            cover.setFileUrl(coverUrl);
+            cover.setRemark("视频封面");
+            fileInfoService.save(cover);
+
+            return Response.success(cover);
+        }catch (Exception e){
+            throw new CustomException("系统异常");
+        }
+    }
+
+
+}

+ 45 - 0
zzjs-service/src/main/resources/mapper/teachingDsp/TeachingDspInfoMapper.xml

@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.miaxis.teachingDsp.mapper.TeachingDspInfoMapper">
+
+    <resultMap type="TeachingDspInfo" id="TeachingDspInfoResult">
+        <result property="id"    column="id"    />
+        <result property="fileId"    column="file_id"    />
+        <result property="coverFileId"    column="cover_file_id"    />
+        <result property="title"    column="title"    />
+        <result property="videoDescribe"    column="video_describe"    />
+        <result property="videoDuration"    column="video_duration"    />
+        <result property="videoSize"    column="video_size"    />
+        <result property="videoHeight"    column="video_height"    />
+        <result property="videoWidth"    column="video_width"    />
+        <result property="vodVideoFileId"    column="vod_video_file_id"    />
+        <result property="shelfStatus"    column="shelf_status"    />
+        <result property="status"    column="status"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateTime"    column="update_time"    />
+    </resultMap>
+
+    <sql id="selectTeachingDspInfoVo">
+        select * from teaching_dsp_info
+    </sql>
+
+    <select id="selectTeachingDspInfoList" parameterType="TeachingDspInfo" resultMap="TeachingDspInfoResult">
+        <include refid="selectTeachingDspInfoVo"/>
+        <where>
+            <if test="fileId != null "> and file_id = #{fileId}</if>
+            <if test="coverFileId != null "> and cover_file_id = #{coverFileId}</if>
+            <if test="title != null  and title != ''"> and title = #{title}</if>
+            <if test="videoDescribe != null  and videoDescribe != ''"> and video_describe = #{videoDescribe}</if>
+            <if test="videoDuration != null  and videoDuration != ''"> and video_duration = #{videoDuration}</if>
+            <if test="videoSize != null "> and video_size = #{videoSize}</if>
+            <if test="videoHeight != null "> and video_height = #{videoHeight}</if>
+            <if test="videoWidth != null "> and video_width = #{videoWidth}</if>
+            <if test="vodVideoFileId != null  and vodVideoFileId != ''"> and vod_video_file_id = #{vodVideoFileId}</if>
+            <if test="shelfStatus != null "> and shelf_status = #{shelfStatus}</if>
+            <if test="status != null  and status != ''"> and status = #{status}</if>
+        </where>
+    </select>
+
+</mapper>