|
@@ -48,7 +48,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
where id = #{id}
|
|
where id = #{id}
|
|
</select>
|
|
</select>
|
|
|
|
|
|
- <insert id="insertVideoContent" parameterType="VideoContent">
|
|
|
|
|
|
+ <insert id="insertVideoContent" parameterType="VideoContent" useGeneratedKeys="true" keyProperty="id">
|
|
insert into video_content
|
|
insert into video_content
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<if test="id != null">id,</if>
|
|
<if test="id != null">id,</if>
|
|
@@ -144,8 +144,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
|
|
<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
|
|
and date_format(a.create_time,'%y%m%d') <= date_format(#{params.endTime},'%y%m%d')
|
|
and date_format(a.create_time,'%y%m%d') <= date_format(#{params.endTime},'%y%m%d')
|
|
</if>
|
|
</if>
|
|
- <if test="params.beginPublisTime != null and params.beginPublisTime != ''"><!-- 开始时间检索 -->
|
|
|
|
- and date_format(a.publish_time,'%y%m%d') >= date_format(#{params.beginPublisTime},'%y%m%d')
|
|
|
|
|
|
+ <if test="params.beginPublishTime != null and params.beginPublishTime != ''"><!-- 开始时间检索 -->
|
|
|
|
+ and date_format(a.publish_time,'%y%m%d') >= date_format(#{params.beginPublishTime},'%y%m%d')
|
|
</if>
|
|
</if>
|
|
<if test="params.endPublishTime != null and params.endPublishTime != ''"><!-- 结束时间检索 -->
|
|
<if test="params.endPublishTime != null and params.endPublishTime != ''"><!-- 结束时间检索 -->
|
|
and date_format(a.publish_time,'%y%m%d') <= date_format(#{params.endPublishTime},'%y%m%d')
|
|
and date_format(a.publish_time,'%y%m%d') <= date_format(#{params.endPublishTime},'%y%m%d')
|