...
|
...
|
@@ -8,11 +8,12 @@ |
|
|
<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="is_slave" property="isSlave" 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,is_failed, param_monitor, create_time, update_time
|
|
|
id, node_from, node_to, level, param_monitor, is_failed, is_slave, create_time, update_time
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
|
|
|
select
|
...
|
...
|
@@ -26,11 +27,13 @@ |
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.model.RedisMonitor" >
|
|
|
insert into redis_monitor (id, node_from, node_to,
|
|
|
level,is_failed, param_monitor, create_time,
|
|
|
update_time)
|
|
|
level, param_monitor, is_failed,
|
|
|
is_slave, create_time, update_time
|
|
|
)
|
|
|
values (#{id,jdbcType=BIGINT}, #{nodeFrom,jdbcType=VARCHAR}, #{nodeTo,jdbcType=VARCHAR},
|
|
|
#{level,jdbcType=TINYINT},#{isFailed,jdbcType=TINYINT}, #{paramMonitor,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
#{updateTime,jdbcType=TIMESTAMP})
|
|
|
#{level,jdbcType=TINYINT}, #{paramMonitor,jdbcType=VARCHAR}, #{isFailed,jdbcType=TINYINT},
|
|
|
#{isSlave,jdbcType=TINYINT}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
|
|
|
)
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.model.RedisMonitor" >
|
|
|
insert into redis_monitor
|
...
|
...
|
@@ -47,11 +50,14 @@ |
|
|
<if test="level != null" >
|
|
|
level,
|
|
|
</if>
|
|
|
<if test="paramMonitor != null" >
|
|
|
param_monitor,
|
|
|
</if>
|
|
|
<if test="isFailed != null" >
|
|
|
is_failed,
|
|
|
</if>
|
|
|
<if test="paramMonitor != null" >
|
|
|
param_monitor,
|
|
|
<if test="isSlave != null" >
|
|
|
is_slave,
|
|
|
</if>
|
|
|
<if test="createTime != null" >
|
|
|
create_time,
|
...
|
...
|
@@ -73,11 +79,14 @@ |
|
|
<if test="level != null" >
|
|
|
#{level,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
<if test="paramMonitor != null" >
|
|
|
#{paramMonitor,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="isFailed != null" >
|
|
|
#{isFailed,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
<if test="paramMonitor != null" >
|
|
|
#{paramMonitor,jdbcType=VARCHAR},
|
|
|
<if test="isSlave != null" >
|
|
|
#{isSlave,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
<if test="createTime != null" >
|
|
|
#{createTime,jdbcType=TIMESTAMP},
|
...
|
...
|
@@ -99,11 +108,14 @@ |
|
|
<if test="level != null" >
|
|
|
level = #{level,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
<if test="paramMonitor != null" >
|
|
|
param_monitor = #{paramMonitor,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="isFailed != null" >
|
|
|
is_failed = #{isFailed,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
<if test="paramMonitor != null" >
|
|
|
param_monitor = #{paramMonitor,jdbcType=VARCHAR},
|
|
|
<if test="isSlave != null" >
|
|
|
is_slave = #{isSlave,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
<if test="createTime != null" >
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
...
|
...
|
@@ -117,12 +129,13 @@ |
|
|
<update id="updateByPrimaryKey" parameterType="com.model.RedisMonitor" >
|
|
|
update redis_monitor
|
|
|
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}
|
|
|
node_to = #{nodeTo,jdbcType=VARCHAR},
|
|
|
level = #{level,jdbcType=TINYINT},
|
|
|
param_monitor = #{paramMonitor,jdbcType=VARCHAR},
|
|
|
is_failed = #{isFailed,jdbcType=TINYINT},
|
|
|
is_slave = #{isSlave,jdbcType=TINYINT},
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP}
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</update>
|
|
|
|
...
|
...
|
@@ -132,11 +145,11 @@ |
|
|
|
|
|
<insert id="bachInsertRedisMonitor" parameterType="com.model.RedisMonitor">
|
|
|
insert into redis_monitor
|
|
|
(node_from, node_to,level,is_failed,param_monitor)
|
|
|
(node_from, node_to,level,is_failed,is_slave,param_monitor)
|
|
|
values
|
|
|
<foreach collection="list" item="item" index="index"
|
|
|
separator=",">
|
|
|
(#{item.nodeFrom},#{item.nodeTo},#{item.level},#{item.isFailed},#{item.paramMonitor})
|
|
|
(#{item.nodeFrom},#{item.nodeTo},#{item.level},#{item.isFailed},#{item.isSlave},#{item.paramMonitor})
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
|
...
|
...
|
|