...
|
...
|
@@ -10,9 +10,13 @@ |
|
|
<result column="level" property="level" jdbcType="TINYINT" />
|
|
|
<result column="img_url" property="imgUrl" jdbcType="VARCHAR" />
|
|
|
<result column="function_point_name" property="functionPointName" jdbcType="VARCHAR" />
|
|
|
<result column="level1_page" property="level1Page" jdbcType="VARCHAR" />
|
|
|
<result column="level2_page" property="level2Page" jdbcType="VARCHAR" />
|
|
|
<result column="api_name" property="apiName" jdbcType="VARCHAR" />
|
|
|
<result column="client_type" property="clientType" jdbcType="VARCHAR" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List" >
|
|
|
id, config_name, config_show_name, switch_on, config_desc, level, img_url,function_point_name
|
|
|
id, config_name, config_show_name, switch_on, config_desc, level, img_url,function_point_name,level1_page,level2_page,api_name,client_type
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
|
|
select
|
...
|
...
|
@@ -31,11 +35,20 @@ |
|
|
<if test="level != null && level != '' " >
|
|
|
and level = #{level}
|
|
|
</if>
|
|
|
<if test="level1Page != null && level1Page != '' " >
|
|
|
and level1_page = #{level1Page}
|
|
|
</if>
|
|
|
<if test="level2Page != null && level2Page != '' " >
|
|
|
and level2_page = #{level2Page}
|
|
|
</if>
|
|
|
<if test="clientType != null && clientType != '' &&clientType != '全部' " >
|
|
|
and client_type = #{clientType}
|
|
|
</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 id="selectInitInfo" resultMap="BaseResultMap">
|
|
|
select DISTINCT function_point_name,level1_page,level2_page
|
|
|
from degrade_info
|
|
|
</select>
|
|
|
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
|
...
|
...
|
@@ -44,10 +57,11 @@ |
|
|
</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,function_point_name
|
|
|
config_desc, level, img_url,function_point_name,level1_page,level2_page,api_name,client_type
|
|
|
)
|
|
|
values (#{id,jdbcType=INTEGER}, #{configName,jdbcType=VARCHAR}, #{configShowName,jdbcType=VARCHAR}, #{switchOn,jdbcType=CHAR},
|
|
|
#{configDesc,jdbcType=VARCHAR}, #{level,jdbcType=TINYINT}, #{imgUrl,jdbcType=VARCHAR},#{functionPointName,jdbcType=VARCHAR}
|
|
|
#{configDesc,jdbcType=VARCHAR}, #{level,jdbcType=TINYINT}, #{imgUrl,jdbcType=VARCHAR},#{functionPointName,jdbcType=VARCHAR},
|
|
|
#{level1Page,jdbcType=VARCHAR},#{level2Page,jdbcType=VARCHAR},#{apiName,jdbcType=VARCHAR},#{clientType,jdbcType=VARCHAR}
|
|
|
)
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.monitor.model.domain.DegradeConfig" >
|
...
|
...
|
@@ -74,6 +88,18 @@ |
|
|
<if test="functionPointName != null" >
|
|
|
function_point_name,
|
|
|
</if>
|
|
|
<if test="level1Page != null" >
|
|
|
level1_page,
|
|
|
</if>
|
|
|
<if test="level2Page != null" >
|
|
|
level2_page,
|
|
|
</if>
|
|
|
<if test="apiName != null" >
|
|
|
api_name,
|
|
|
</if>
|
|
|
<if test="clientType != null" >
|
|
|
client_type,
|
|
|
</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
<if test="configName != null" >
|
...
|
...
|
@@ -97,6 +123,18 @@ |
|
|
<if test="functionPointName != null" >
|
|
|
#{functionPointName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="level1Page != null" >
|
|
|
#{level1Page,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="level2Page != null" >
|
|
|
#{level2Page,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="apiName != null" >
|
|
|
#{apiName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="clientType != null" >
|
|
|
#{clientType,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.monitor.model.domain.DegradeConfig" >
|
...
|
...
|
@@ -120,6 +158,18 @@ |
|
|
<if test="functionPointName != null" >
|
|
|
function_point_name = #{functionPointName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="level1Page != null" >
|
|
|
level1_page = #{level1Page,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="level2Page != null" >
|
|
|
level2_page = #{level2Page,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="apiName != null" >
|
|
|
api_name = #{apiName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="clientType != null" >
|
|
|
client_type = #{clientType,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
...
|
...
|
@@ -131,7 +181,11 @@ |
|
|
config_desc = #{configDesc,jdbcType=VARCHAR},
|
|
|
level = #{level,jdbcType=TINYINT},
|
|
|
img_url = #{imgUrl,jdbcType=VARCHAR},
|
|
|
function_point_name = #{functionPointName,jdbcType=VARCHAR}
|
|
|
function_point_name = #{functionPointName,jdbcType=VARCHAR},
|
|
|
level1_page = #{level1Page,jdbcType=VARCHAR},
|
|
|
level2_page = #{level2Page,jdbcType=VARCHAR},
|
|
|
api_name = #{apiName,jdbcType=VARCHAR},
|
|
|
client_type = #{clientType,jdbcType=VARCHAR}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
</mapper> |
|
|
\ No newline at end of file |
...
|
...
|
|