|
|
|
@ -10,6 +10,7 @@
|
|
|
|
|
<result column="term_id" jdbcType="INTEGER" property="termId" />
|
|
|
|
|
<result column="channel_id" jdbcType="INTEGER" property="channelId" />
|
|
|
|
|
<result column="protocol" jdbcType="INTEGER" property="protocol" />
|
|
|
|
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.shxy.xymanager_common.entity.CameraSchedule">
|
|
|
|
|
<!--
|
|
|
|
@ -89,7 +90,7 @@
|
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
|
-->
|
|
|
|
|
id, term_id, channel_id, protocol
|
|
|
|
|
id, term_id, channel_id, protocol, update_time
|
|
|
|
|
</sql>
|
|
|
|
|
<sql id="Blob_Column_List">
|
|
|
|
|
<!--
|
|
|
|
@ -175,9 +176,9 @@
|
|
|
|
|
SELECT LAST_INSERT_ID()
|
|
|
|
|
</selectKey>
|
|
|
|
|
insert into camera_schedule (term_id, channel_id, protocol,
|
|
|
|
|
`data`)
|
|
|
|
|
update_time, `data`)
|
|
|
|
|
values (#{termId,jdbcType=INTEGER}, #{channelId,jdbcType=INTEGER}, #{protocol,jdbcType=INTEGER},
|
|
|
|
|
#{data,jdbcType=LONGVARCHAR})
|
|
|
|
|
#{updateTime,jdbcType=TIMESTAMP}, #{data,jdbcType=LONGVARCHAR})
|
|
|
|
|
</insert>
|
|
|
|
|
<insert id="insertSelective" parameterType="com.shxy.xymanager_common.entity.CameraSchedule">
|
|
|
|
|
<!--
|
|
|
|
@ -198,6 +199,9 @@
|
|
|
|
|
<if test="protocol != null">
|
|
|
|
|
protocol,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="updateTime != null">
|
|
|
|
|
update_time,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="data != null">
|
|
|
|
|
`data`,
|
|
|
|
|
</if>
|
|
|
|
@ -212,6 +216,9 @@
|
|
|
|
|
<if test="protocol != null">
|
|
|
|
|
#{protocol,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="updateTime != null">
|
|
|
|
|
#{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="data != null">
|
|
|
|
|
#{data,jdbcType=LONGVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
@ -246,6 +253,9 @@
|
|
|
|
|
<if test="row.protocol != null">
|
|
|
|
|
protocol = #{row.protocol,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="row.updateTime != null">
|
|
|
|
|
update_time = #{row.updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="row.data != null">
|
|
|
|
|
`data` = #{row.data,jdbcType=LONGVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
@ -264,6 +274,7 @@
|
|
|
|
|
term_id = #{row.termId,jdbcType=INTEGER},
|
|
|
|
|
channel_id = #{row.channelId,jdbcType=INTEGER},
|
|
|
|
|
protocol = #{row.protocol,jdbcType=INTEGER},
|
|
|
|
|
update_time = #{row.updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
`data` = #{row.data,jdbcType=LONGVARCHAR}
|
|
|
|
|
<if test="example != null">
|
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
@ -278,7 +289,8 @@
|
|
|
|
|
set id = #{row.id,jdbcType=INTEGER},
|
|
|
|
|
term_id = #{row.termId,jdbcType=INTEGER},
|
|
|
|
|
channel_id = #{row.channelId,jdbcType=INTEGER},
|
|
|
|
|
protocol = #{row.protocol,jdbcType=INTEGER}
|
|
|
|
|
protocol = #{row.protocol,jdbcType=INTEGER},
|
|
|
|
|
update_time = #{row.updateTime,jdbcType=TIMESTAMP}
|
|
|
|
|
<if test="example != null">
|
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
|
</if>
|
|
|
|
@ -299,6 +311,9 @@
|
|
|
|
|
<if test="protocol != null">
|
|
|
|
|
protocol = #{protocol,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="updateTime != null">
|
|
|
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="data != null">
|
|
|
|
|
`data` = #{data,jdbcType=LONGVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
@ -314,6 +329,7 @@
|
|
|
|
|
set term_id = #{termId,jdbcType=INTEGER},
|
|
|
|
|
channel_id = #{channelId,jdbcType=INTEGER},
|
|
|
|
|
protocol = #{protocol,jdbcType=INTEGER},
|
|
|
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
`data` = #{data,jdbcType=LONGVARCHAR}
|
|
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
|
|
</update>
|
|
|
|
@ -325,7 +341,8 @@
|
|
|
|
|
update camera_schedule
|
|
|
|
|
set term_id = #{termId,jdbcType=INTEGER},
|
|
|
|
|
channel_id = #{channelId,jdbcType=INTEGER},
|
|
|
|
|
protocol = #{protocol,jdbcType=INTEGER}
|
|
|
|
|
protocol = #{protocol,jdbcType=INTEGER},
|
|
|
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP}
|
|
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
|
|
</update>
|
|
|
|
|
</mapper>
|