|
@@ -3,9 +3,9 @@
|
|
<mapper namespace="com.caimei.mapper.cmMapper.VideoMapper">
|
|
<mapper namespace="com.caimei.mapper.cmMapper.VideoMapper">
|
|
<insert id="insertVideo" keyColumn="id" keyProperty="id" parameterType="com.caimei.model.po.VideoPo" useGeneratedKeys="true">
|
|
<insert id="insertVideo" keyColumn="id" keyProperty="id" parameterType="com.caimei.model.po.VideoPo" useGeneratedKeys="true">
|
|
insert into cm_brand_video(authUserId, title, image, name, previewUrl, downloadUrl, auditStatus, status, createTime,
|
|
insert into cm_brand_video(authUserId, title, image, name, previewUrl, downloadUrl, auditStatus, status, createTime,
|
|
- auditBy, auditTime, checkFlag)
|
|
|
|
|
|
+ auditBy, auditTime)
|
|
values (#{authUserId}, #{title}, #{image}, #{name}, #{previewUrl}, #{downloadUrl}, #{auditStatus}, #{status},
|
|
values (#{authUserId}, #{title}, #{image}, #{name}, #{previewUrl}, #{downloadUrl}, #{auditStatus}, #{status},
|
|
- #{createTime}, #{auditBy}, #{auditTime}, #{checkFlag})
|
|
|
|
|
|
+ #{createTime}, #{auditBy}, #{auditTime})
|
|
</insert>
|
|
</insert>
|
|
<update id="updateVideoByVideoId">
|
|
<update id="updateVideoByVideoId">
|
|
update cm_brand_video
|
|
update cm_brand_video
|
|
@@ -52,9 +52,6 @@
|
|
<if test="auditStatus != null">
|
|
<if test="auditStatus != null">
|
|
auditStatus = #{auditStatus},
|
|
auditStatus = #{auditStatus},
|
|
</if>
|
|
</if>
|
|
- <if test="checkFlag != null">
|
|
|
|
- checkFlag = #{checkFlag},
|
|
|
|
- </if>
|
|
|
|
</set>
|
|
</set>
|
|
where id = #{id}
|
|
where id = #{id}
|
|
</update>
|
|
</update>
|
|
@@ -67,7 +64,7 @@
|
|
<select id="getVideoList" resultType="com.caimei.model.vo.VideoListVo">
|
|
<select id="getVideoList" resultType="com.caimei.model.vo.VideoListVo">
|
|
select a.id as videoId,a.title as videoTitle,a.image as videoImage, 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,
|
|
as videoDownloadUrl,a.auditStatus,a.invalidReason,a.status,a.createTime,
|
|
- au.name as auditBy,a.auditTime,a.checkFlag
|
|
|
|
|
|
+ au.name as auditBy,a.auditTime
|
|
from cm_brand_video a
|
|
from cm_brand_video a
|
|
left join cm_brand_auth_user au on a.auditBy = au.authUserId
|
|
left join cm_brand_auth_user au on a.auditBy = au.authUserId
|
|
where a.authUserId = #{authUserId}
|
|
where a.authUserId = #{authUserId}
|