|
@@ -14,6 +14,8 @@
|
|
|
<result property="channelName" column="channel_name" />
|
|
|
<result property="alertType" column="alert_type" />
|
|
|
<result property="type" column="type_" />
|
|
|
+ <result property="videoUrl" column="video_url" />
|
|
|
+
|
|
|
</resultMap>
|
|
|
<insert id="insert" parameterType="AlarmInfo">
|
|
|
<!--
|
|
@@ -23,7 +25,7 @@
|
|
|
-->
|
|
|
<![CDATA[
|
|
|
insert into base_alarm_info
|
|
|
- (id_,create_by,create_time,update_by,update_time,del_flag,device_no,channel_name,alert_type,type_)
|
|
|
+ (id_,create_by,create_time,update_by,update_time,del_flag,device_no,channel_name,alert_type,type_,video_url)
|
|
|
values
|
|
|
(
|
|
|
#{id,jdbcType=VARCHAR}
|
|
@@ -36,6 +38,7 @@
|
|
|
,#{channelName,jdbcType=VARCHAR}
|
|
|
,#{alertType,jdbcType=VARCHAR}
|
|
|
,#{type,jdbcType=VARCHAR}
|
|
|
+,#{videoUrl,jdbcType=VARCHAR}
|
|
|
)
|
|
|
]]>
|
|
|
</insert>
|
|
@@ -72,6 +75,9 @@
|
|
|
<if test="type!=null">
|
|
|
type_=#{type,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="videoUrl!=null">
|
|
|
+ video_url=#{videoUrl,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id_=#{id}
|
|
|
</update>
|
|
@@ -93,6 +99,9 @@ id_,create_by,create_time,update_by,update_time,del_flag,device_no,channel_name,
|
|
|
<if test="searchParams.id != null">
|
|
|
and ID_ like #{searchParams.id}
|
|
|
</if>
|
|
|
+ <if test="searchParams.type != null">
|
|
|
+ and type_ = #{searchParams.type}
|
|
|
+ </if>
|
|
|
</where>
|
|
|
<foreach item="sort" collection="sortList" open="order by" separator=",">
|
|
|
${sort.name} ${sort.order}
|