...
|
...
|
@@ -7,11 +7,12 @@ |
|
|
<result column="node_to" property="nodeTo" jdbcType="VARCHAR" />
|
|
|
<result column="level" property="level" jdbcType="TINYINT" />
|
|
|
<result column="param_monitor" property="paramMonitor" jdbcType="VARCHAR" />
|
|
|
<result column="is_failed" property="isFailed" jdbcType="TINYINT" />
|
|
|
<result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
|
|
|
<result column="update_time" property="updateTime" jdbcType="TIMESTAMP" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List" >
|
|
|
id, node_from, node_to, level, param_monitor, create_time, update_time
|
|
|
id, node_from, node_to, level,is_failed, param_monitor, create_time, update_time
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
|
|
|
select
|
...
|
...
|
@@ -25,10 +26,10 @@ |
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.model.RedisMonitor" >
|
|
|
insert into redis_monitor (id, node_from, node_to,
|
|
|
level, param_monitor, create_time,
|
|
|
level,is_failed, param_monitor, create_time,
|
|
|
update_time)
|
|
|
values (#{id,jdbcType=BIGINT}, #{nodeFrom,jdbcType=VARCHAR}, #{nodeTo,jdbcType=VARCHAR},
|
|
|
#{level,jdbcType=TINYINT}, #{paramMonitor,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
#{level,jdbcType=TINYINT},#{isFailed,jdbcType=TINYINT}, #{paramMonitor,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
#{updateTime,jdbcType=TIMESTAMP})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.model.RedisMonitor" >
|
...
|
...
|
@@ -46,6 +47,9 @@ |
|
|
<if test="level != null" >
|
|
|
level,
|
|
|
</if>
|
|
|
<if test="isFailed != null" >
|
|
|
is_failed,
|
|
|
</if>
|
|
|
<if test="paramMonitor != null" >
|
|
|
param_monitor,
|
|
|
</if>
|
...
|
...
|
@@ -69,6 +73,9 @@ |
|
|
<if test="level != null" >
|
|
|
#{level,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
<if test="isFailed != null" >
|
|
|
#{isFailed,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
<if test="paramMonitor != null" >
|
|
|
#{paramMonitor,jdbcType=VARCHAR},
|
|
|
</if>
|
...
|
...
|
@@ -92,6 +99,9 @@ |
|
|
<if test="level != null" >
|
|
|
level = #{level,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
<if test="isFailed != null" >
|
|
|
is_failed = #{isFailed,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
<if test="paramMonitor != null" >
|
|
|
param_monitor = #{paramMonitor,jdbcType=VARCHAR},
|
|
|
</if>
|
...
|
...
|
@@ -109,6 +119,7 @@ |
|
|
set node_from = #{nodeFrom,jdbcType=VARCHAR},
|
|
|
node_to = #{nodeTo,jdbcType=VARCHAR},
|
|
|
level = #{level,jdbcType=TINYINT},
|
|
|
is_failed = #{isFailed,jdbcType=TINYINT},
|
|
|
param_monitor = #{paramMonitor,jdbcType=VARCHAR},
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP}
|
...
|
...
|
@@ -121,11 +132,11 @@ |
|
|
|
|
|
<insert id="bachInsertRedisMonitor" parameterType="com.model.RedisMonitor">
|
|
|
insert into redis_monitor
|
|
|
(node_from, node_to,level, param_monitor)
|
|
|
(node_from, node_to,level,is_failed,param_monitor)
|
|
|
values
|
|
|
<foreach collection="list" item="item" index="index"
|
|
|
separator=",">
|
|
|
(#{item.nodeFrom},#{item.nodeTo},#{item.level},#{item.paramMonitor})
|
|
|
(#{item.nodeFrom},#{item.nodeTo},#{item.level},#{item.isFailed},#{item.paramMonitor})
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
|
...
|
...
|
|