...
|
...
|
@@ -25,6 +25,9 @@ |
|
|
<result column="alarm_group_id" property="alarmGroupId" jdbcType="INTEGER"/>
|
|
|
<result column="addsource" property="addSource" jdbcType="INTEGER"/>
|
|
|
<result column="influx_sql_snd" property="influxSqlSnd" jdbcType="VARCHAR"/>
|
|
|
<result column="eventName" property="eventName" jdbcType="VARCHAR"/>
|
|
|
<result column="operation" property="operation" jdbcType="INTEGER"/>
|
|
|
<result column="data_interval_times" property="dataIntervalTimes" jdbcType="INTEGER"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<select id="selectById" resultMap="BaseResultMap" parameterType="java.lang.Integer">
|
...
|
...
|
@@ -89,7 +92,10 @@ |
|
|
type = #{type,jdbcType=VARCHAR},
|
|
|
description = #{description,jdbcType=VARCHAR},
|
|
|
inf_database = #{database,jdbcType=VARCHAR},
|
|
|
alarm_group_id = #{alarmGroupId,jdbcType=INTEGER}
|
|
|
alarm_group_id = #{alarmGroupId,jdbcType=INTEGER},
|
|
|
eventName = #{eventName,jdbcType=INTEGER},
|
|
|
operation = #{operation,jdbcType=INTEGER},
|
|
|
data_interval_times = #{dataIntervalTimes,jdbcType=INTEGER}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
|
...
|
...
|
@@ -114,7 +120,9 @@ |
|
|
alarm_group_id,
|
|
|
addsource,
|
|
|
influx_sql_snd,
|
|
|
eventName)
|
|
|
eventName,
|
|
|
operation,
|
|
|
data_interval_times)
|
|
|
values
|
|
|
(#{interval,jdbcType=INTEGER},
|
|
|
#{relaxStartTime,jdbcType=INTEGER},
|
...
|
...
|
@@ -135,7 +143,9 @@ |
|
|
#{alarmGroupId,jdbcType=INTEGER},
|
|
|
#{addSource,jdbcType=INTEGER},
|
|
|
#{influxSqlSnd,jdbcType=VARCHAR},
|
|
|
#{eventName,jdbcType=VARCHAR}
|
|
|
#{eventName,jdbcType=VARCHAR},
|
|
|
#{operation,jdbcType=INTEGER},
|
|
|
#{dataIntervalTimes,jdbcType=INTEGER}
|
|
|
)
|
|
|
</insert>
|
|
|
|
...
|
...
|
|