Authored by mlge

gateWayAccess 数据库 表 新增 operation、data_interval_times两个字段;以及前端修改

... ... @@ -128,4 +128,12 @@ public class TaskModel {
*事件名称
*/
private String eventName;
/**
*比较操作符 sql 中的比较操作符
*/
private int operation;
/**
* 时间间隔 sql中的执行间隔
*/
private int dataIntervalTimes;
}
\ No newline at end of file
... ...
... ... @@ -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>
... ...