|
|
|
|
@@ -137,6 +137,37 @@
|
|
|
|
|
<result column="function_id" property="functionId" jdbcType="INTEGER" />
|
|
|
|
|
<result column="do_log" property="doLog" jdbcType="INTEGER" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
<resultMap id="AppTopicDomainCfgMap" type="com.nis.domain.configuration.AppTopicDomainCfg" >
|
|
|
|
|
<id column="cfg_id" property="cfgId" jdbcType="BIGINT" />
|
|
|
|
|
<result column="spec_service_id" property="specServiceId" jdbcType="INTEGER" />
|
|
|
|
|
<result column="topic" property="topic" jdbcType="VARCHAR" />
|
|
|
|
|
<result column="behav_code" property="behavCode" jdbcType="INTEGER" />
|
|
|
|
|
<result column="domain" property="domain" jdbcType="VARCHAR" />
|
|
|
|
|
<result column="cfg_desc" property="cfgDesc" jdbcType="VARCHAR" />
|
|
|
|
|
<result column="action" property="action" jdbcType="INTEGER" />
|
|
|
|
|
<result column="is_valid" property="isValid" jdbcType="INTEGER" />
|
|
|
|
|
<result column="is_audit" property="isAudit" jdbcType="INTEGER" />
|
|
|
|
|
<result column="creator_id" property="creatorId" jdbcType="INTEGER" />
|
|
|
|
|
<result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
|
|
|
|
|
<result column="editor_id" property="editorId" jdbcType="INTEGER" />
|
|
|
|
|
<result column="edit_time" property="editTime" jdbcType="TIMESTAMP" />
|
|
|
|
|
<result column="auditor_id" property="auditorId" jdbcType="INTEGER" />
|
|
|
|
|
<result column="audit_time" property="auditTime" jdbcType="TIMESTAMP" />
|
|
|
|
|
<result column="service_id" property="serviceId" jdbcType="INTEGER" />
|
|
|
|
|
<result column="request_id" property="requestId" jdbcType="INTEGER" />
|
|
|
|
|
<result column="compile_id" property="compileId" jdbcType="INTEGER" />
|
|
|
|
|
<result column="is_area_effective" property="isAreaEffective" jdbcType="INTEGER" />
|
|
|
|
|
<result column="classify" property="classify" jdbcType="VARCHAR" />
|
|
|
|
|
<result column="attribute" property="attribute" jdbcType="VARCHAR" />
|
|
|
|
|
<result column="lable" property="lable" jdbcType="VARCHAR" />
|
|
|
|
|
<result column="expr_type" property="exprType" jdbcType="INTEGER" />
|
|
|
|
|
<result column="match_method" property="matchMethod" jdbcType="INTEGER" />
|
|
|
|
|
<result column="is_hexbin" property="isHexbin" jdbcType="INTEGER" />
|
|
|
|
|
<result column="area_effective_ids" property="areaEffectiveIds" jdbcType="VARCHAR" />
|
|
|
|
|
<result column="ratelimit" property="ratelimit" jdbcType="INTEGER" />
|
|
|
|
|
<result column="function_id" property="functionId" jdbcType="INTEGER" />
|
|
|
|
|
<result column="do_log" property="doLog" jdbcType="INTEGER" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
<resultMap id="AppByteCfgMap" type="com.nis.domain.configuration.AppByteCfg" >
|
|
|
|
|
<id column="cfg_id" property="cfgId" jdbcType="BIGINT" />
|
|
|
|
|
<result column="spec_service_id" property="specServiceId" jdbcType="INTEGER" />
|
|
|
|
|
@@ -297,6 +328,47 @@
|
|
|
|
|
<result column="function_id" property="functionId" jdbcType="INTEGER" />
|
|
|
|
|
<result column="do_log" property="doLog" jdbcType="INTEGER" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
<resultMap id="AppTcpCfgMap" type="com.nis.domain.configuration.AppTcpCfg" >
|
|
|
|
|
<id column="cfg_id" property="cfgId" jdbcType="BIGINT" />
|
|
|
|
|
<result column="spec_service_id" property="specServiceId" jdbcType="INTEGER" />
|
|
|
|
|
<result column="app_code" property="appCode" jdbcType="INTEGER" />
|
|
|
|
|
<result column="behav_code" property="behavCode" jdbcType="INTEGER" />
|
|
|
|
|
<result column="low_boundary" property="lowBoundary" jdbcType="BIGINT" />
|
|
|
|
|
<result column="up_boundary" property="upBoundary" jdbcType="BIGINT" />
|
|
|
|
|
<result column="cfg_desc" property="cfgDesc" jdbcType="VARCHAR" />
|
|
|
|
|
<result column="action" property="action" jdbcType="INTEGER" />
|
|
|
|
|
<result column="is_valid" property="isValid" jdbcType="INTEGER" />
|
|
|
|
|
<result column="is_audit" property="isAudit" jdbcType="INTEGER" />
|
|
|
|
|
<result column="creator_id" property="creatorId" jdbcType="INTEGER" />
|
|
|
|
|
<result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
|
|
|
|
|
<result column="editor_id" property="editorId" jdbcType="INTEGER" />
|
|
|
|
|
<result column="edit_time" property="editTime" jdbcType="TIMESTAMP" />
|
|
|
|
|
<result column="auditor_id" property="auditorId" jdbcType="INTEGER" />
|
|
|
|
|
<result column="audit_time" property="auditTime" jdbcType="TIMESTAMP" />
|
|
|
|
|
<result column="service_id" property="serviceId" jdbcType="INTEGER" />
|
|
|
|
|
<result column="request_id" property="requestId" jdbcType="INTEGER" />
|
|
|
|
|
<result column="compile_id" property="compileId" jdbcType="INTEGER" />
|
|
|
|
|
<result column="is_area_effective" property="isAreaEffective" jdbcType="INTEGER" />
|
|
|
|
|
<result column="classify" property="classify" jdbcType="VARCHAR" />
|
|
|
|
|
<result column="attribute" property="attribute" jdbcType="VARCHAR" />
|
|
|
|
|
<result column="lable" property="lable" jdbcType="VARCHAR" />
|
|
|
|
|
<result column="expr_type" property="exprType" jdbcType="INTEGER" />
|
|
|
|
|
<result column="match_method" property="matchMethod" jdbcType="INTEGER" />
|
|
|
|
|
<result column="is_hexbin" property="isHexbin" jdbcType="INTEGER" />
|
|
|
|
|
<result column="area_effective_ids" property="areaEffectiveIds" jdbcType="VARCHAR" />
|
|
|
|
|
<result column="ratelimit" property="ratelimit" jdbcType="INTEGER" />
|
|
|
|
|
<result column="function_id" property="functionId" jdbcType="INTEGER" />
|
|
|
|
|
<result column="do_log" property="doLog" jdbcType="INTEGER" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="AppTcpCfg_Column" >
|
|
|
|
|
r.CFG_ID, r.APP_CODE,r.BEHAV_CODE,r.SPEC_SERVICE_ID,r.CFG_DESC,r.ACTION,r.IS_VALID,r.IS_AUDIT,
|
|
|
|
|
r.CREATOR_ID,r.CREATE_TIME,r.EDITOR_ID,r.EDIT_TIME,r.AUDITOR_ID,r.AUDIT_TIME,
|
|
|
|
|
r.SERVICE_ID,r.REQUEST_ID,r.COMPILE_ID,r.IS_AREA_EFFECTIVE,r.CLASSIFY,
|
|
|
|
|
r.ATTRIBUTE,r.LABLE,r.AREA_EFFECTIVE_IDS,r.RATELIMIT,r.FUNCTION_ID,r.CFG_TYPE,r.CFG_REGION_CODE,
|
|
|
|
|
r.low_boundary,r.up_boundary as upBoundary,r.EXPR_TYPE,r.MATCH_METHOD,r.IS_HEXBIN,r.do_log
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<sql id="AppPolicyCfg_Column" >
|
|
|
|
|
r.CFG_ID, r.APP_CODE,r.BEHAV_CODE,r.SPEC_SERVICE_ID,r.CFG_DESC,r.ACTION,r.IS_VALID,r.IS_AUDIT,
|
|
|
|
|
@@ -332,6 +404,14 @@
|
|
|
|
|
r.DOMAIN,r.EXPR_TYPE,r.MATCH_METHOD,r.IS_HEXBIN,r.DO_LOG
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<sql id="AppTopicDomainCfg_Column" >
|
|
|
|
|
r.CFG_ID, r.TOPIC,r.BEHAV_CODE,r.SPEC_SERVICE_ID,r.CFG_DESC,r.ACTION,r.IS_VALID,r.IS_AUDIT,
|
|
|
|
|
r.CREATOR_ID,r.CREATE_TIME,r.EDITOR_ID,r.EDIT_TIME,r.AUDITOR_ID,r.AUDIT_TIME,
|
|
|
|
|
r.SERVICE_ID,r.REQUEST_ID,r.COMPILE_ID,r.IS_AREA_EFFECTIVE,r.CLASSIFY,
|
|
|
|
|
r.ATTRIBUTE,r.LABLE,r.AREA_EFFECTIVE_IDS,r.RATELIMIT,r.FUNCTION_ID,r.CFG_TYPE,r.CFG_REGION_CODE,
|
|
|
|
|
r.DOMAIN,r.EXPR_TYPE,r.MATCH_METHOD,r.IS_HEXBIN,r.DO_LOG
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<sql id="AppByteCfg_Column" >
|
|
|
|
|
r.CFG_ID, r.APP_CODE,r.BEHAV_CODE,r.SPEC_SERVICE_ID,r.CFG_DESC,r.ACTION,r.IS_VALID,r.IS_AUDIT,
|
|
|
|
|
r.CREATOR_ID,r.CREATE_TIME,r.EDITOR_ID,r.EDIT_TIME,r.AUDITOR_ID,r.AUDIT_TIME,
|
|
|
|
|
@@ -358,6 +438,17 @@
|
|
|
|
|
#{areaEffectiveIds,jdbcType=VARCHAR},#{ratelimit,jdbcType=INTEGER},#{functionId,jdbcType=INTEGER},
|
|
|
|
|
#{cfgType,jdbcType=VARCHAR},#{cfgRegionCode,jdbcType=INTEGER}
|
|
|
|
|
</sql>
|
|
|
|
|
<sql id="AppTopicCommonCfg_Value_List" >
|
|
|
|
|
#{topic,jdbcType=VARCHAR},#{behavCode,jdbcType=INTEGER},#{specServiceId,jdbcType=INTEGER},
|
|
|
|
|
#{cfgDesc,jdbcType=VARCHAR},#{action,jdbcType=INTEGER},
|
|
|
|
|
#{isValid,jdbcType=INTEGER},#{isAudit,jdbcType=INTEGER},#{creatorId,jdbcType=INTEGER},
|
|
|
|
|
#{createTime,jdbcType=TIMESTAMP},#{editorId,jdbcType=INTEGER},#{editTime,jdbcType=TIMESTAMP},
|
|
|
|
|
#{auditorId,jdbcType=INTEGER},#{auditTime,jdbcType=TIMESTAMP},#{serviceId,jdbcType=INTEGER},
|
|
|
|
|
#{requestId,jdbcType=INTEGER},#{compileId,jdbcType=INTEGER},#{isAreaEffective,jdbcType=INTEGER},
|
|
|
|
|
#{classify,jdbcType=VARCHAR},#{attribute,jdbcType=VARCHAR},#{lable,jdbcType=VARCHAR},
|
|
|
|
|
#{areaEffectiveIds,jdbcType=VARCHAR},#{ratelimit,jdbcType=INTEGER},#{functionId,jdbcType=INTEGER},
|
|
|
|
|
#{cfgType,jdbcType=VARCHAR},#{cfgRegionCode,jdbcType=INTEGER}
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<sql id="IpCfg_Column" >
|
|
|
|
|
a.cfg_id,a.cfg_desc,a.ip_type,a.src_ip_address,a.ip_pattern,a.port_pattern,a.src_port
|
|
|
|
|
@@ -438,6 +529,13 @@
|
|
|
|
|
FROM app_domain_cfg r
|
|
|
|
|
WHERE CFG_ID = #{cfgId,jdbcType=BIGINT}
|
|
|
|
|
</select>
|
|
|
|
|
<!-- 主题网站 -->
|
|
|
|
|
<select id="getAppTopicDomainCfg" resultMap="AppTopicDomainCfgMap" parameterType="java.lang.Long" >
|
|
|
|
|
SELECT
|
|
|
|
|
<include refid="AppTopicDomainCfg_Column" />
|
|
|
|
|
FROM app_topic_domain_cfg r
|
|
|
|
|
WHERE CFG_ID = #{cfgId,jdbcType=BIGINT}
|
|
|
|
|
</select>
|
|
|
|
|
<select id="getAppByteCfg" resultMap="AppByteCfgMap" parameterType="java.lang.Long" >
|
|
|
|
|
SELECT
|
|
|
|
|
<include refid="AppByteCfg_Column" />
|
|
|
|
|
@@ -462,6 +560,113 @@
|
|
|
|
|
FROM app_layer_header_cfg r
|
|
|
|
|
WHERE CFG_ID = #{cfgId,jdbcType=BIGINT}
|
|
|
|
|
</select>
|
|
|
|
|
<select id="getAppTcpCfg" resultMap="AppTcpCfgMap" parameterType="java.lang.Long" >
|
|
|
|
|
SELECT
|
|
|
|
|
<include refid="AppTcpCfg_Column" />
|
|
|
|
|
FROM app_session_cfg r
|
|
|
|
|
WHERE CFG_ID = #{cfgId,jdbcType=BIGINT}
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="findAppTcpList" resultMap="AppTcpCfgMap">
|
|
|
|
|
select
|
|
|
|
|
<include refid="AppTcpCfg_Column"/>
|
|
|
|
|
<trim prefix="," prefixOverrides=",">
|
|
|
|
|
, s.name as creator_name,e.name as editor_name,u.name as auditor_name
|
|
|
|
|
,ri.request_title as requestName
|
|
|
|
|
</trim>
|
|
|
|
|
from app_session_cfg r
|
|
|
|
|
left join sys_user s on r.creator_id=s.id
|
|
|
|
|
left join sys_user e on r.editor_id=e.id
|
|
|
|
|
left join sys_user u on r.auditor_id=u.id
|
|
|
|
|
left join request_info ri on r.request_id=ri.id
|
|
|
|
|
<trim prefix="WHERE" prefixOverrides="AND |OR ">
|
|
|
|
|
<if test="functionId != null">
|
|
|
|
|
AND r.function_id=#{functionId,jdbcType=INTEGER}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="lowBoundary != null">
|
|
|
|
|
AND r.low_boundary=#{lowBoundary,jdbcType=INTEGER}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="upBoundary != null">
|
|
|
|
|
AND r.up_boundary=#{upBoundary,jdbcType=INTEGER}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfgId != null">
|
|
|
|
|
AND r.CFG_ID=#{cfgId,jdbcType=BIGINT}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfgDesc != null and cfgDesc != ''">
|
|
|
|
|
AND r.CFG_DESC like concat(concat('%',#{cfgDesc,jdbcType=VARCHAR}),'%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="specServiceId != null">
|
|
|
|
|
AND r.spec_service_id=#{specServiceId,jdbcType=INTEGER}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfgType != null and cfgType != ''">
|
|
|
|
|
AND r.CFG_TYPE like concat(concat('%',#{cfgType,jdbcType=VARCHAR}),'%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="action != null">
|
|
|
|
|
AND r.ACTION=#{action,jdbcType=INTEGER}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="isValid != null">
|
|
|
|
|
AND r.IS_VALID=#{isValid,jdbcType=INTEGER}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="isValid == null">
|
|
|
|
|
AND r.IS_VALID != -1
|
|
|
|
|
</if>
|
|
|
|
|
<if test="isAudit != null">
|
|
|
|
|
AND r.IS_AUDIT=#{isAudit,jdbcType=INTEGER}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="creatorName != null and creatorName != ''">
|
|
|
|
|
AND CREATOR_NAME like concat(concat('%',#{creatorName,jdbcType=VARCHAR}),'%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="createTime != null and createTime != ''">
|
|
|
|
|
AND r.CREATE_TIME=#{createTime,jdbcType=TIMESTAMP}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="editorName != null and editorName != ''">
|
|
|
|
|
AND EDITOR_NAME like concat(concat('%',#{editorName,jdbcType=VARCHAR}),'%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="editTime != null and editTime != ''">
|
|
|
|
|
AND r.EDIT_TIME=#{editTime,jdbcType=TIMESTAMP}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="auditorName != null and auditorName != ''">
|
|
|
|
|
AND AUDITOR_NAME like concat(concat('%',#{auditorName,jdbcType=VARCHAR}),'%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="auditTime != null and auditTime != ''">
|
|
|
|
|
AND r.AUDIT_TIME=#{auditTime,jdbcType=TIMESTAMP}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="serviceId != null">
|
|
|
|
|
AND r.SERVICE_ID=#{serviceId,jdbcType=INTEGER}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="requestId != null">
|
|
|
|
|
AND r.REQUEST_ID=#{requestId,jdbcType=INTEGER}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="compileId != null">
|
|
|
|
|
AND r.COMPILE_ID=#{compileId,jdbcType=INTEGER}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="isAreaEffective != null">
|
|
|
|
|
AND r.IS_AREA_EFFECTIVE=#{isAreaEffective,jdbcType=INTEGER}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="classify != null and classify != ''">
|
|
|
|
|
AND r.classify like concat(concat('%',#{classify,jdbcType=VARCHAR}),'%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="attribute != null and attribute != ''">
|
|
|
|
|
AND r.attribute like concat(concat('%',#{attribute,jdbcType=VARCHAR}),'%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="lable != null and lable != ''">
|
|
|
|
|
AND r.lable like concat(concat('%',#{lable,jdbcType=VARCHAR}),'%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="areaEffectiveIds != null and areaEffectiveIds != ''">
|
|
|
|
|
AND r.AREA_EFFECTIVE_IDS like concat(concat('%',#{areaEffectiveIds,jdbcType=VARCHAR}),'%')
|
|
|
|
|
</if>
|
|
|
|
|
<!-- 数据范围过滤 -->
|
|
|
|
|
${sqlMap.dsf}
|
|
|
|
|
</trim>
|
|
|
|
|
<choose>
|
|
|
|
|
<when test="page !=null and page.orderBy != null and page.orderBy != ''">
|
|
|
|
|
ORDER BY ${page.orderBy}
|
|
|
|
|
</when>
|
|
|
|
|
<otherwise>
|
|
|
|
|
ORDER BY CFG_ID desc
|
|
|
|
|
</otherwise>
|
|
|
|
|
</choose>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="findAppPolicyList" resultMap="AppPolicyCfgMap" parameterType="com.nis.domain.configuration.AppPolicyCfg" >
|
|
|
|
|
select
|
|
|
|
|
@@ -476,6 +681,9 @@
|
|
|
|
|
left join sys_user u on r.auditor_id=u.id
|
|
|
|
|
left join request_info ri on r.request_id=ri.id
|
|
|
|
|
<trim prefix="WHERE" prefixOverrides="AND |OR ">
|
|
|
|
|
<if test="page !=null and page.where != null and page.where != ''">
|
|
|
|
|
AND ${page.where}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="functionId != null">
|
|
|
|
|
AND r.function_id=#{functionId,jdbcType=INTEGER}
|
|
|
|
|
</if>
|
|
|
|
|
@@ -616,7 +824,9 @@
|
|
|
|
|
left join sys_user u on r.auditor_id=u.id
|
|
|
|
|
left join request_info ri on r.request_id=ri.id
|
|
|
|
|
<trim prefix="WHERE" prefixOverrides="AND |OR ">
|
|
|
|
|
|
|
|
|
|
<if test="page !=null and page.where != null and page.where != ''">
|
|
|
|
|
AND ${page.where}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="functionId != null">
|
|
|
|
|
AND r.function_id=#{functionId,jdbcType=INTEGER}
|
|
|
|
|
</if>
|
|
|
|
|
@@ -738,7 +948,9 @@
|
|
|
|
|
left join sys_user u on r.auditor_id=u.id
|
|
|
|
|
left join request_info ri on r.request_id=ri.id
|
|
|
|
|
<trim prefix="WHERE" prefixOverrides="AND |OR ">
|
|
|
|
|
|
|
|
|
|
<if test="page !=null and page.where != null and page.where != ''">
|
|
|
|
|
AND ${page.where}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="functionId != null">
|
|
|
|
|
AND r.function_id=#{functionId,jdbcType=INTEGER}
|
|
|
|
|
</if>
|
|
|
|
|
@@ -839,6 +1051,110 @@
|
|
|
|
|
left join sys_user u on r.auditor_id=u.id
|
|
|
|
|
left join request_info ri on r.request_id=ri.id
|
|
|
|
|
<trim prefix="WHERE" prefixOverrides="AND |OR ">
|
|
|
|
|
<if test="page !=null and page.where != null and page.where != ''">
|
|
|
|
|
AND ${page.where}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="functionId != null">
|
|
|
|
|
AND r.function_id=#{functionId,jdbcType=INTEGER}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfgId != null">
|
|
|
|
|
AND r.CFG_ID=#{cfgId,jdbcType=BIGINT}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfgDesc != null and cfgDesc != ''">
|
|
|
|
|
AND r.CFG_DESC like concat(concat('%',#{cfgDesc,jdbcType=VARCHAR}),'%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="specServiceId != null">
|
|
|
|
|
AND r.spec_service_id=#{specServiceId,jdbcType=INTEGER}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfgType != null and cfgType != ''">
|
|
|
|
|
AND r.CFG_TYPE like concat(concat('%',#{cfgType,jdbcType=VARCHAR}),'%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="domain != null and domain != ''">
|
|
|
|
|
AND r.DOMAIN like concat(concat('%',#{domain,jdbcType=VARCHAR}),'%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="action != null">
|
|
|
|
|
AND r.ACTION=#{action,jdbcType=INTEGER}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="isValid != null">
|
|
|
|
|
AND r.IS_VALID=#{isValid,jdbcType=INTEGER}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="isValid == null">
|
|
|
|
|
AND r.IS_VALID != -1
|
|
|
|
|
</if>
|
|
|
|
|
<if test="isAudit != null">
|
|
|
|
|
AND r.IS_AUDIT=#{isAudit,jdbcType=INTEGER}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="creatorName != null and creatorName != ''">
|
|
|
|
|
AND CREATOR_NAME like concat(concat('%',#{creatorName,jdbcType=VARCHAR}),'%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="createTime != null and createTime != ''">
|
|
|
|
|
AND r.CREATE_TIME=#{createTime,jdbcType=TIMESTAMP}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="editorName != null and editorName != ''">
|
|
|
|
|
AND EDITOR_NAME like concat(concat('%',#{editorName,jdbcType=VARCHAR}),'%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="editTime != null and editTime != ''">
|
|
|
|
|
AND r.EDIT_TIME=#{editTime,jdbcType=TIMESTAMP}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="auditorName != null and auditorName != ''">
|
|
|
|
|
AND AUDITOR_NAME like concat(concat('%',#{auditorName,jdbcType=VARCHAR}),'%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="auditTime != null and auditTime != ''">
|
|
|
|
|
AND r.AUDIT_TIME=#{auditTime,jdbcType=TIMESTAMP}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="serviceId != null">
|
|
|
|
|
AND r.SERVICE_ID=#{serviceId,jdbcType=INTEGER}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="requestId != null">
|
|
|
|
|
AND r.REQUEST_ID=#{requestId,jdbcType=INTEGER}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="compileId != null">
|
|
|
|
|
AND r.COMPILE_ID=#{compileId,jdbcType=INTEGER}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="isAreaEffective != null">
|
|
|
|
|
AND r.IS_AREA_EFFECTIVE=#{isAreaEffective,jdbcType=INTEGER}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="classify != null and classify != ''">
|
|
|
|
|
AND r.classify like concat(concat('%',#{classify,jdbcType=VARCHAR}),'%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="attribute != null and attribute != ''">
|
|
|
|
|
AND r.attribute like concat(concat('%',#{attribute,jdbcType=VARCHAR}),'%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="lable != null and lable != ''">
|
|
|
|
|
AND r.lable like concat(concat('%',#{lable,jdbcType=VARCHAR}),'%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="areaEffectiveIds != null and areaEffectiveIds != ''">
|
|
|
|
|
AND r.AREA_EFFECTIVE_IDS like concat(concat('%',#{areaEffectiveIds,jdbcType=VARCHAR}),'%')
|
|
|
|
|
</if>
|
|
|
|
|
<!-- 数据范围过滤 -->
|
|
|
|
|
${sqlMap.dsf}
|
|
|
|
|
</trim>
|
|
|
|
|
<choose>
|
|
|
|
|
<when test="page !=null and page.orderBy != null and page.orderBy != ''">
|
|
|
|
|
ORDER BY ${page.orderBy}
|
|
|
|
|
</when>
|
|
|
|
|
<otherwise>
|
|
|
|
|
ORDER BY CFG_ID desc
|
|
|
|
|
</otherwise>
|
|
|
|
|
</choose>
|
|
|
|
|
</select>
|
|
|
|
|
<!-- 主题网站列表 -->
|
|
|
|
|
<select id="findAppTopicDomainList" resultMap="AppTopicDomainCfgMap">
|
|
|
|
|
select
|
|
|
|
|
<include refid="AppTopicDomainCfg_Column"/>
|
|
|
|
|
<trim prefix="," prefixOverrides=",">
|
|
|
|
|
, s.name as creator_name,e.name as editor_name,u.name as auditor_name
|
|
|
|
|
,ri.request_title as requestName
|
|
|
|
|
</trim>
|
|
|
|
|
from app_topic_domain_cfg r
|
|
|
|
|
left join sys_user s on r.creator_id=s.id
|
|
|
|
|
left join sys_user e on r.editor_id=e.id
|
|
|
|
|
left join sys_user u on r.auditor_id=u.id
|
|
|
|
|
left join request_info ri on r.request_id=ri.id
|
|
|
|
|
<trim prefix="WHERE" prefixOverrides="AND |OR ">
|
|
|
|
|
<if test="page !=null and page.where != null and page.where != ''">
|
|
|
|
|
AND ${page.where}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="functionId != null">
|
|
|
|
|
AND r.function_id=#{functionId,jdbcType=INTEGER}
|
|
|
|
|
</if>
|
|
|
|
|
@@ -936,6 +1252,9 @@
|
|
|
|
|
left join sys_user u on r.auditor_id=u.id
|
|
|
|
|
left join request_info ri on r.request_id=ri.id
|
|
|
|
|
<trim prefix="WHERE" prefixOverrides="AND |OR ">
|
|
|
|
|
<if test="page !=null and page.where != null and page.where != ''">
|
|
|
|
|
AND ${page.where}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="functionId != null">
|
|
|
|
|
AND r.function_id=#{functionId,jdbcType=INTEGER}
|
|
|
|
|
</if>
|
|
|
|
|
@@ -1033,6 +1352,9 @@
|
|
|
|
|
left join sys_user u on r.auditor_id=u.id
|
|
|
|
|
left join request_info ri on r.request_id=ri.id
|
|
|
|
|
<trim prefix="WHERE" prefixOverrides="AND |OR ">
|
|
|
|
|
<if test="page !=null and page.where != null and page.where != ''">
|
|
|
|
|
AND ${page.where}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="functionId != null">
|
|
|
|
|
AND r.function_id=#{functionId,jdbcType=INTEGER}
|
|
|
|
|
</if>
|
|
|
|
|
@@ -1125,7 +1447,9 @@
|
|
|
|
|
left join sys_user u on r.auditor_id=u.id
|
|
|
|
|
left join request_info ri on r.request_id=ri.id
|
|
|
|
|
<trim prefix="WHERE" prefixOverrides="AND |OR ">
|
|
|
|
|
|
|
|
|
|
<if test="page !=null and page.where != null and page.where != ''">
|
|
|
|
|
AND ${page.where}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="functionId != null">
|
|
|
|
|
AND r.function_id=#{functionId,jdbcType=INTEGER}
|
|
|
|
|
</if>
|
|
|
|
|
@@ -1226,7 +1550,9 @@
|
|
|
|
|
left join sys_user u on r.auditor_id=u.id
|
|
|
|
|
left join request_info ri on r.request_id=ri.id
|
|
|
|
|
<trim prefix="WHERE" prefixOverrides="AND |OR ">
|
|
|
|
|
|
|
|
|
|
<if test="page !=null and page.where != null and page.where != ''">
|
|
|
|
|
AND ${page.where}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="functionId != null">
|
|
|
|
|
AND r.function_id=#{functionId,jdbcType=INTEGER}
|
|
|
|
|
</if>
|
|
|
|
|
@@ -1315,6 +1641,22 @@
|
|
|
|
|
</choose>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<insert id="insertAppTcpCfg" parameterType="com.nis.domain.configuration.AppTcpCfg" >
|
|
|
|
|
<selectKey resultType="java.lang.Long" order="AFTER" keyProperty="cfgId">
|
|
|
|
|
SELECT LAST_INSERT_ID()
|
|
|
|
|
</selectKey>
|
|
|
|
|
insert into app_session_cfg (
|
|
|
|
|
APP_CODE,BEHAV_CODE,SPEC_SERVICE_ID,CFG_DESC,ACTION,IS_VALID,IS_AUDIT,
|
|
|
|
|
CREATOR_ID,CREATE_TIME,EDITOR_ID,EDIT_TIME,AUDITOR_ID,AUDIT_TIME,
|
|
|
|
|
SERVICE_ID,REQUEST_ID,COMPILE_ID,IS_AREA_EFFECTIVE,CLASSIFY,
|
|
|
|
|
ATTRIBUTE,LABLE,AREA_EFFECTIVE_IDS,RATELIMIT,FUNCTION_ID,CFG_TYPE,CFG_REGION_CODE,
|
|
|
|
|
low_boundary,up_boundary,EXPR_TYPE,MATCH_METHOD,IS_HEXBIN,DO_LOG
|
|
|
|
|
)values (
|
|
|
|
|
<include refid="AppCommonCfg_Value_List" />,
|
|
|
|
|
#{lowBoundary,jdbcType=INTEGER},#{upBoundary,jdbcType=INTEGER},
|
|
|
|
|
#{exprType,jdbcType=INTEGER},#{matchMethod,jdbcType=INTEGER},#{isHexbin,jdbcType=INTEGER},#{doLog,jdbcType=INTEGER}
|
|
|
|
|
)
|
|
|
|
|
</insert>
|
|
|
|
|
<insert id="insertAppPolicyCfg" parameterType="com.nis.domain.configuration.AppPolicyCfg" >
|
|
|
|
|
<selectKey resultType="java.lang.Long" order="AFTER" keyProperty="cfgId">
|
|
|
|
|
SELECT LAST_INSERT_ID()
|
|
|
|
|
@@ -1330,7 +1672,7 @@
|
|
|
|
|
<include refid="AppCommonCfg_Value_List" />,
|
|
|
|
|
#{exprType,jdbcType=INTEGER},#{matchMethod,jdbcType=INTEGER},#{isHexbin,jdbcType=INTEGER}
|
|
|
|
|
,#{userRegion1,jdbcType=VARCHAR} ,#{userRegion2,jdbcType=VARCHAR} ,#{userRegion3,jdbcType=VARCHAR}
|
|
|
|
|
,#{userRegion4,jdbcType=VARCHAR} ,#{userRegion5,jdbcType=VARCHAR}
|
|
|
|
|
,#{userRegion4,jdbcType=VARCHAR} ,#{userRegion5,jdbcType=VARCHAR} ,#{doLog,jdbcType=INTEGER}
|
|
|
|
|
)
|
|
|
|
|
</insert>
|
|
|
|
|
<insert id="insertAppIpCfg" parameterType="com.nis.domain.configuration.AppIpCfg" >
|
|
|
|
|
@@ -1383,6 +1725,23 @@
|
|
|
|
|
#{isHexbin,jdbcType=INTEGER},#{doLog,jdbcType=INTEGER}
|
|
|
|
|
)
|
|
|
|
|
</insert>
|
|
|
|
|
<!-- 主题网站新增 -->
|
|
|
|
|
<insert id="insertAppTopicDomainCfg" parameterType="com.nis.domain.configuration.AppTopicDomainCfg" >
|
|
|
|
|
<selectKey resultType="java.lang.Long" order="AFTER" keyProperty="cfgId">
|
|
|
|
|
SELECT LAST_INSERT_ID()
|
|
|
|
|
</selectKey>
|
|
|
|
|
insert into app_topic_domain_cfg (
|
|
|
|
|
TOPIC,BEHAV_CODE,SPEC_SERVICE_ID,CFG_DESC,ACTION,IS_VALID,IS_AUDIT,
|
|
|
|
|
CREATOR_ID,CREATE_TIME,EDITOR_ID,EDIT_TIME,AUDITOR_ID,AUDIT_TIME,
|
|
|
|
|
SERVICE_ID,REQUEST_ID,COMPILE_ID,IS_AREA_EFFECTIVE,CLASSIFY,
|
|
|
|
|
ATTRIBUTE,LABLE,AREA_EFFECTIVE_IDS,RATELIMIT,FUNCTION_ID,CFG_TYPE,CFG_REGION_CODE,
|
|
|
|
|
DOMAIN,EXPR_TYPE,MATCH_METHOD,IS_HEXBIN,DO_LOG
|
|
|
|
|
)values (
|
|
|
|
|
<include refid="AppTopicCommonCfg_Value_List" />,
|
|
|
|
|
#{domain,jdbcType=VARCHAR},#{exprType,jdbcType=INTEGER},#{matchMethod,jdbcType=INTEGER},
|
|
|
|
|
#{isHexbin,jdbcType=INTEGER},#{doLog,jdbcType=INTEGER}
|
|
|
|
|
)
|
|
|
|
|
</insert>
|
|
|
|
|
<insert id="insertAppByteCfg" parameterType="com.nis.domain.configuration.AppByteCfg" >
|
|
|
|
|
<selectKey resultType="java.lang.Long" order="AFTER" keyProperty="cfgId">
|
|
|
|
|
SELECT LAST_INSERT_ID()
|
|
|
|
|
@@ -1933,6 +2292,106 @@
|
|
|
|
|
</set>
|
|
|
|
|
where cfg_id = #{cfgId,jdbcType=BIGINT}
|
|
|
|
|
</update>
|
|
|
|
|
<!-- 主题网站 -->
|
|
|
|
|
<update id="updateAppTopicDomainCfg" parameterType="com.nis.domain.configuration.AppTopicDomainCfg" >
|
|
|
|
|
update app_topic_domain_cfg
|
|
|
|
|
<set >
|
|
|
|
|
<trim suffixOverrides=",">
|
|
|
|
|
<if test="cfgDesc != null and cfgDesc != ''" >
|
|
|
|
|
cfg_desc = #{cfgDesc,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="topic != null">
|
|
|
|
|
TOPIC = #{topic,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="behavCode != null">
|
|
|
|
|
BEHAV_CODE = #{behavCode,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="specServiceId != null">
|
|
|
|
|
SPEC_SERVICE_ID = #{specServiceId,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="action != null" >
|
|
|
|
|
action = #{action,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="isValid != null" >
|
|
|
|
|
is_valid = #{isValid,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="isAudit != null" >
|
|
|
|
|
is_audit = #{isAudit,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="creatorId != null" >
|
|
|
|
|
creator_id = #{creatorId,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="createTime != null and createTime != ''" >
|
|
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="editorId != null" >
|
|
|
|
|
editor_id = #{editorId,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="editTime != null and editTime != ''" >
|
|
|
|
|
edit_time = #{editTime,jdbcType=TIMESTAMP},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="auditorId != null" >
|
|
|
|
|
auditor_id = #{auditorId,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="auditTime != null and auditTime != ''" >
|
|
|
|
|
audit_time = #{auditTime,jdbcType=TIMESTAMP},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="serviceId != null" >
|
|
|
|
|
service_id = #{serviceId,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="requestId != null" >
|
|
|
|
|
request_id = #{requestId,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="compileId != null" >
|
|
|
|
|
compile_id = #{compileId,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="isAreaEffective != null" >
|
|
|
|
|
is_area_effective = #{isAreaEffective,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="classify != null and classify != ''" >
|
|
|
|
|
classify = #{classify,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="attribute != null and attribute != ''" >
|
|
|
|
|
attribute = #{attribute,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="lable != null and lable != ''" >
|
|
|
|
|
lable = #{lable,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="areaEffectiveIds != null" >
|
|
|
|
|
area_effective_ids = #{areaEffectiveIds,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="functionId != null" >
|
|
|
|
|
function_id = #{functionId,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="ratelimit != null">
|
|
|
|
|
RATELIMIT=#{ratelimit,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfgRegionCode != null">
|
|
|
|
|
CFG_REGION_CODE=#{cfgRegionCode,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfgType != null and cfgType != ''">
|
|
|
|
|
CFG_TYPE =#{cfgType,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="domain != null and domain != ''">
|
|
|
|
|
domain=#{domain,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="exprType != null">
|
|
|
|
|
expr_type=#{exprType,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="matchMethod != null">
|
|
|
|
|
match_method=#{matchMethod,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="isHexbin != null">
|
|
|
|
|
is_hexbin=#{isHexbin,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<!-- <if test="doLog != null" >
|
|
|
|
|
do_log = #{doLog,jdbcType=INTEGER},
|
|
|
|
|
</if> -->
|
|
|
|
|
</trim>
|
|
|
|
|
</set>
|
|
|
|
|
where cfg_id = #{cfgId,jdbcType=BIGINT}
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
<update id="updateAppByteCfg" parameterType="com.nis.domain.configuration.AppByteCfg" >
|
|
|
|
|
update app_byte_cfg
|
|
|
|
|
<set >
|
|
|
|
|
@@ -2267,6 +2726,108 @@
|
|
|
|
|
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
<update id="updateAppTcpCfg" parameterType="com.nis.domain.configuration.AppTcpCfg" >
|
|
|
|
|
update app_session_cfg
|
|
|
|
|
<set >
|
|
|
|
|
<trim suffixOverrides=",">
|
|
|
|
|
<if test="cfgDesc != null and cfgDesc != ''" >
|
|
|
|
|
cfg_desc = #{cfgDesc,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="appCode != null">
|
|
|
|
|
APP_CODE = #{appCode,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="behavCode != null">
|
|
|
|
|
BEHAV_CODE = #{behavCode,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="specServiceId != null">
|
|
|
|
|
SPEC_SERVICE_ID = #{specServiceId,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="action != null" >
|
|
|
|
|
action = #{action,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="isValid != null" >
|
|
|
|
|
is_valid = #{isValid,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="isAudit != null" >
|
|
|
|
|
is_audit = #{isAudit,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="creatorId != null" >
|
|
|
|
|
creator_id = #{creatorId,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="createTime != null and createTime != ''" >
|
|
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="editorId != null" >
|
|
|
|
|
editor_id = #{editorId,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="editTime != null and editTime != ''" >
|
|
|
|
|
edit_time = #{editTime,jdbcType=TIMESTAMP},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="auditorId != null" >
|
|
|
|
|
auditor_id = #{auditorId,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="auditTime != null and auditTime != ''" >
|
|
|
|
|
audit_time = #{auditTime,jdbcType=TIMESTAMP},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="serviceId != null" >
|
|
|
|
|
service_id = #{serviceId,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="requestId != null" >
|
|
|
|
|
request_id = #{requestId,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="compileId != null" >
|
|
|
|
|
compile_id = #{compileId,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="isAreaEffective != null" >
|
|
|
|
|
is_area_effective = #{isAreaEffective,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="classify != null and classify != ''" >
|
|
|
|
|
classify = #{classify,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="attribute != null and attribute != ''" >
|
|
|
|
|
attribute = #{attribute,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="lable != null and lable != ''" >
|
|
|
|
|
lable = #{lable,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="areaEffectiveIds != null" >
|
|
|
|
|
area_effective_ids = #{areaEffectiveIds,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="functionId != null" >
|
|
|
|
|
function_id = #{functionId,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="ratelimit != null">
|
|
|
|
|
RATELIMIT=#{ratelimit,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfgRegionCode != null">
|
|
|
|
|
CFG_REGION_CODE=#{cfgRegionCode,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfgType != null and cfgType != ''">
|
|
|
|
|
CFG_TYPE =#{cfgType,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="lowBoundary != null and lowBoundary != ''">
|
|
|
|
|
low_boundary=#{lowBoundary,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="upBoundary != null and upBoundary != ''">
|
|
|
|
|
up_boundary=#{upBoundary,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="exprType != null">
|
|
|
|
|
expr_type=#{exprType,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="matchMethod != null">
|
|
|
|
|
match_method=#{matchMethod,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="isHexbin != null">
|
|
|
|
|
is_hexbin=#{isHexbin,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="doLog != null">
|
|
|
|
|
do_log=#{doLog,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</set>
|
|
|
|
|
where cfg_id = #{cfgId,jdbcType=BIGINT}
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
<!-- 删除APP策略IP子配置 -->
|
|
|
|
|
<delete id="deleteAppPolicyIpCfg" >
|
|
|
|
|
delete from ip_port_cfg where compile_id=#{compileId} and function_id=#{functionId}
|
|
|
|
|
|