|
@@ -2,9 +2,9 @@
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.caimei.mapper.cmMapper.VideoMapper">
|
|
|
<insert id="insertVideo" keyColumn="id" keyProperty="id" parameterType="com.caimei.model.po.VideoPo" useGeneratedKeys="true">
|
|
|
- insert into cm_brand_video(authUserId, title, name, previewUrl, downloadUrl, auditStatus, status, createTime,
|
|
|
+ insert into cm_brand_video(authUserId, title, image, name, previewUrl, downloadUrl, auditStatus, status, createTime,
|
|
|
auditBy, auditTime)
|
|
|
- values (#{authUserId}, #{title}, #{name}, #{previewUrl}, #{downloadUrl}, #{auditStatus}, #{status},
|
|
|
+ values (#{authUserId}, #{title}, #{image}, #{name}, #{previewUrl}, #{downloadUrl}, #{auditStatus}, #{status},
|
|
|
#{createTime}, #{auditBy}, #{auditTime})
|
|
|
</insert>
|
|
|
<update id="updateVideoByVideoId">
|
|
@@ -34,6 +34,9 @@
|
|
|
<if test="title != null and title != ''">
|
|
|
title = #{title},
|
|
|
</if>
|
|
|
+ <if test="image != null and image != ''">
|
|
|
+ image = #{image},
|
|
|
+ </if>
|
|
|
<if test="previewUrl != null and previewUrl != ''">
|
|
|
previewUrl = #{previewUrl},
|
|
|
</if>
|
|
@@ -56,7 +59,7 @@
|
|
|
delete from cm_brand_video where id = #{videoId}
|
|
|
</delete>
|
|
|
<select id="getVideoList" resultType="com.caimei.model.vo.VideoListVo">
|
|
|
- select a.id as videoId,a.title as videoTitle,a.name as videoName, a.previewUrl as videoPreviewUrl, a.downloadUrl
|
|
|
+ select a.id as videoId,a.title as videoTitle,a.image as videoImage, a.name as videoName, a.previewUrl as videoPreviewUrl, a.downloadUrl
|
|
|
as videoDownloadUrl,a.auditStatus,a.invalidReason,a.status,a.createTime,
|
|
|
au.name as auditBy,a.auditTime
|
|
|
from cm_brand_video a
|
|
@@ -81,7 +84,8 @@
|
|
|
</choose>
|
|
|
</select>
|
|
|
<select id="getWxVideoList" resultType="com.caimei.model.vo.WxVideoListVo">
|
|
|
- select id as videoId, title as videoTitle,name as videoName, previewUrl as videoPreviewUrl, downloadUrl as
|
|
|
+ select id as videoId, title as videoTitle,image as videoImage, name as videoName, previewUrl as videoPreviewUrl,
|
|
|
+ downloadUrl as
|
|
|
videoDownloadUrl, date_format(createTime, '%Y-%m-%d') as createTime
|
|
|
from cm_brand_video a
|
|
|
where authUserId = #{authUserId}
|