...
|
...
|
@@ -4,13 +4,14 @@ |
|
|
<resultMap id="BaseResultMap" type="com.monitor.model.domain.DegradeConfig" >
|
|
|
<id column="id" property="id" jdbcType="INTEGER" />
|
|
|
<result column="config_name" property="configName" jdbcType="VARCHAR" />
|
|
|
<result column="config_show_name" property="configShowName" jdbcType="VARCHAR" />
|
|
|
<result column="switch_on" property="switchOn" jdbcType="CHAR" />
|
|
|
<result column="config_desc" property="configDesc" jdbcType="VARCHAR" />
|
|
|
<result column="level" property="level" jdbcType="TINYINT" />
|
|
|
<result column="img_url" property="imgUrl" jdbcType="VARCHAR" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List" >
|
|
|
id, config_name, switch_on, config_desc, level, img_url
|
|
|
id, config_name, config_show_name, switch_on, config_desc, level, img_url
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
|
|
select
|
...
|
...
|
@@ -23,9 +24,6 @@ |
|
|
<include refid="Base_Column_List" />
|
|
|
from degrade_info
|
|
|
where 1=1
|
|
|
<if test="configName != null && configName !='' " >
|
|
|
and config_name = #{configName}
|
|
|
</if>
|
|
|
<if test="switchOn != null && switchOn != '' " >
|
|
|
and switch_on = #{switchOn}
|
|
|
</if>
|
...
|
...
|
@@ -38,10 +36,10 @@ |
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.monitor.model.domain.DegradeConfig" >
|
|
|
insert into degrade_info (id, config_name, switch_on,
|
|
|
insert into degrade_info (id, config_name, config_show_name, switch_on,
|
|
|
config_desc, level, img_url
|
|
|
)
|
|
|
values (#{id,jdbcType=INTEGER}, #{configName,jdbcType=VARCHAR}, #{switchOn,jdbcType=CHAR},
|
|
|
values (#{id,jdbcType=INTEGER}, #{configName,jdbcType=VARCHAR}, #{configShowName,jdbcType=VARCHAR}, #{switchOn,jdbcType=CHAR},
|
|
|
#{configDesc,jdbcType=VARCHAR}, #{level,jdbcType=TINYINT}, #{imgUrl,jdbcType=VARCHAR}
|
|
|
)
|
|
|
</insert>
|
...
|
...
|
@@ -51,6 +49,9 @@ |
|
|
<if test="configName != null" >
|
|
|
config_name,
|
|
|
</if>
|
|
|
<if test="configShowName != null" >
|
|
|
config_show_name,
|
|
|
</if>
|
|
|
<if test="switchOn != null" >
|
|
|
switch_on,
|
|
|
</if>
|
...
|
...
|
@@ -68,6 +69,9 @@ |
|
|
<if test="configName != null" >
|
|
|
#{configName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="configShowName != null" >
|
|
|
#{configShowName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="switchOn != null" >
|
|
|
#{switchOn,jdbcType=CHAR},
|
|
|
</if>
|
...
|
...
|
@@ -85,6 +89,9 @@ |
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.monitor.model.domain.DegradeConfig" >
|
|
|
update degrade_info
|
|
|
<set >
|
|
|
<if test="configShowName != null" >
|
|
|
config_show_name = #{configShowName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="switchOn != null" >
|
|
|
switch_on = #{switchOn,jdbcType=CHAR},
|
|
|
</if>
|
...
|
...
|
@@ -103,6 +110,7 @@ |
|
|
<update id="updateByPrimaryKey" parameterType="com.monitor.model.domain.DegradeConfig" >
|
|
|
update degrade_info
|
|
|
set config_name = #{configName,jdbcType=VARCHAR},
|
|
|
config_show_name = #{configShowName,jdbcType=VARCHAR},
|
|
|
switch_on = #{switchOn,jdbcType=CHAR},
|
|
|
config_desc = #{configDesc,jdbcType=VARCHAR},
|
|
|
level = #{level,jdbcType=TINYINT},
|
...
|
...
|
|