...
|
...
|
@@ -9,9 +9,10 @@ |
|
|
<result column="config_desc" property="configDesc" jdbcType="VARCHAR" />
|
|
|
<result column="level" property="level" jdbcType="TINYINT" />
|
|
|
<result column="img_url" property="imgUrl" jdbcType="VARCHAR" />
|
|
|
<result column="function_point_name" property="functionPointName" jdbcType="VARCHAR" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List" >
|
|
|
id, config_name, config_show_name, switch_on, config_desc, level, img_url
|
|
|
id, config_name, config_show_name, switch_on, config_desc, level, img_url,function_point_name
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
|
|
select
|
...
|
...
|
@@ -19,7 +20,7 @@ |
|
|
from degrade_info
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</select>
|
|
|
<select id="selectByCondition" resultMap="BaseResultMap" >
|
|
|
<select id="selectByCondition" resultMap="BaseResultMap" parameterType="com.monitor.model.request.DegradeInfoReq">
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from degrade_info
|
...
|
...
|
@@ -31,16 +32,22 @@ |
|
|
and level = #{level}
|
|
|
</if>
|
|
|
</select>
|
|
|
|
|
|
<select id="selectAllFunction" resultType="java.lang.String">
|
|
|
select function_point_name
|
|
|
from degrade_info WHERE function_point_name IS NOT NULL AND function_point_name !='' group by function_point_name
|
|
|
</select>
|
|
|
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
|
|
|
delete from degrade_info
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.monitor.model.domain.DegradeConfig" >
|
|
|
insert into degrade_info (id, config_name, config_show_name, switch_on,
|
|
|
config_desc, level, img_url
|
|
|
config_desc, level, img_url,function_point_name
|
|
|
)
|
|
|
values (#{id,jdbcType=INTEGER}, #{configName,jdbcType=VARCHAR}, #{configShowName,jdbcType=VARCHAR}, #{switchOn,jdbcType=CHAR},
|
|
|
#{configDesc,jdbcType=VARCHAR}, #{level,jdbcType=TINYINT}, #{imgUrl,jdbcType=VARCHAR}
|
|
|
#{configDesc,jdbcType=VARCHAR}, #{level,jdbcType=TINYINT}, #{imgUrl,jdbcType=VARCHAR},#{functionPointName,jdbcType=VARCHAR}
|
|
|
)
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.monitor.model.domain.DegradeConfig" >
|
...
|
...
|
@@ -64,6 +71,9 @@ |
|
|
<if test="imgUrl != null" >
|
|
|
img_url,
|
|
|
</if>
|
|
|
<if test="functionPointName != null" >
|
|
|
function_point_name,
|
|
|
</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
<if test="configName != null" >
|
...
|
...
|
@@ -84,6 +94,9 @@ |
|
|
<if test="imgUrl != null" >
|
|
|
#{imgUrl,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="functionPointName != null" >
|
|
|
#{functionPointName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.monitor.model.domain.DegradeConfig" >
|
...
|
...
|
@@ -104,6 +117,9 @@ |
|
|
<if test="imgUrl != null" >
|
|
|
img_url = #{imgUrl,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="functionPointName != null" >
|
|
|
function_point_name = #{functionPointName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
...
|
...
|
@@ -114,7 +130,8 @@ |
|
|
switch_on = #{switchOn,jdbcType=CHAR},
|
|
|
config_desc = #{configDesc,jdbcType=VARCHAR},
|
|
|
level = #{level,jdbcType=TINYINT},
|
|
|
img_url = #{imgUrl,jdbcType=VARCHAR}
|
|
|
img_url = #{imgUrl,jdbcType=VARCHAR},
|
|
|
function_point_name = #{functionPointName,jdbcType=VARCHAR}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
</mapper> |
|
|
\ No newline at end of file |
...
|
...
|
|