|
|
|
|
@@ -90,24 +90,24 @@
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="AvVoip_Column" >
|
|
|
|
|
a.CFG_ID,a.CFG_DESC,a.ACTION,a.IS_VALID,a.IS_AUDIT,
|
|
|
|
|
a.CREATOR_ID,a.CREATE_TIME,a.EDITOR_ID,a.EDIT_TIME,a.AUDITOR_ID,a.AUDIT_TIME,
|
|
|
|
|
a.SERVICE_ID,a.REQUEST_ID,a.COMPILE_ID,a.IS_AREA_EFFECTIVE,a.CLASSIFY,
|
|
|
|
|
a.ATTRIBUTE,a.LABLE,a.AREA_EFFECTIVE_IDS,a.function_id
|
|
|
|
|
r.CFG_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.function_id
|
|
|
|
|
</sql>
|
|
|
|
|
<sql id="AvVoipIp_Column" >
|
|
|
|
|
a.cfg_id,a.cfg_desc,a.ip_type,a.src_ip_address,a.ip_pattern,a.port_pattern,a.src_port
|
|
|
|
|
,a.protocol,a.protocol_id,a.direction,a.cfg_type,a.action,a.dest_port,a.dest_ip_address
|
|
|
|
|
,a.is_valid,a.is_audit,a.creator_id,a.create_time,a.editor_id
|
|
|
|
|
,a.edit_time,a.auditor_id,a.audit_time,a.service_id,a.request_id,
|
|
|
|
|
a.compile_id,a.is_area_effective,a.classify,a.attribute,a.lable
|
|
|
|
|
,a.area_effective_ids,a.function_id,a.cfg_region_code
|
|
|
|
|
r.cfg_id,r.cfg_desc,r.ip_type,r.src_ip_address,r.ip_pattern,r.port_pattern,r.src_port
|
|
|
|
|
,r.protocol,r.protocol_id,r.direction,r.cfg_type,r.action,r.dest_port,r.dest_ip_address
|
|
|
|
|
,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.function_id,r.cfg_region_code
|
|
|
|
|
</sql>
|
|
|
|
|
<sql id="AvVoipAccount_Column" >
|
|
|
|
|
a.cfg_id,a.cfg_desc,a.district,a.cfg_keywords,a.cfg_type,
|
|
|
|
|
a.action,a.is_valid,a.is_audit,a.creator_id,a.create_time,a.editor_id,a.edit_time, a.auditor_id,
|
|
|
|
|
a.audit_time,a.service_id,a.request_id,a.compile_id,a.is_area_effective,a.classify,a.attribute,a.lable,
|
|
|
|
|
a.expr_type,a.match_method,a.is_hexbin,a.area_effective_ids,a.function_id,a.cfg_region_code
|
|
|
|
|
r.cfg_id,r.cfg_desc,r.district,r.cfg_keywords,r.cfg_type,
|
|
|
|
|
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.expr_type,r.match_method,r.is_hexbin,r.area_effective_ids,r.function_id,r.cfg_region_code
|
|
|
|
|
</sql>
|
|
|
|
|
<!-- 条件查询列表信息 -->
|
|
|
|
|
<select id="findVoipList" resultMap="CfgIndexInfoMap" parameterType="com.nis.domain.configuration.CfgIndexInfo" >
|
|
|
|
|
@@ -117,90 +117,90 @@
|
|
|
|
|
, s.name as creator_name,e.name as editor_name,u.name as auditor_name
|
|
|
|
|
,ri.request_title as requestName
|
|
|
|
|
</trim>
|
|
|
|
|
FROM cfg_index_info a
|
|
|
|
|
left join sys_user s on a.creator_id=s.id
|
|
|
|
|
left join sys_user e on a.editor_id=e.id
|
|
|
|
|
left join sys_user u on a.auditor_id=u.id
|
|
|
|
|
left join request_info ri on a.request_id=ri.id
|
|
|
|
|
FROM cfg_index_info 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="cfg.page !=null and cfg.page.where != null and cfg.page.where != ''">
|
|
|
|
|
AND ${cfg.page.where}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.cfgId != null">
|
|
|
|
|
AND a.CFG_ID=#{cfgId,jdbcType=BIGINT}
|
|
|
|
|
AND r.CFG_ID=#{cfgId,jdbcType=BIGINT}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.cfgDesc != null and cfg.cfgDesc != ''">
|
|
|
|
|
AND a.CFG_DESC like concat(concat('%',#{cfg.cfgDesc,jdbcType=VARCHAR}),'%')
|
|
|
|
|
AND r.CFG_DESC like concat(concat('%',#{cfg.cfgDesc,jdbcType=VARCHAR}),'%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.action != null">
|
|
|
|
|
AND a.ACTION=#{cfg.action,jdbcType=INTEGER}
|
|
|
|
|
AND r.ACTION=#{cfg.action,jdbcType=INTEGER}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.isValid != null">
|
|
|
|
|
AND a.IS_VALID=#{cfg.isValid,jdbcType=INTEGER}
|
|
|
|
|
AND r.IS_VALID=#{cfg.isValid,jdbcType=INTEGER}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.isValid == null">
|
|
|
|
|
AND a.IS_VALID != -1
|
|
|
|
|
AND r.IS_VALID != -1
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.isAudit != null">
|
|
|
|
|
AND a.IS_AUDIT=#{cfg.isAudit,jdbcType=INTEGER}
|
|
|
|
|
AND r.IS_AUDIT=#{cfg.isAudit,jdbcType=INTEGER}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.creatorName != null and cfg.creatorName != ''">
|
|
|
|
|
AND CREATOR_NAME like concat(concat('%',#{cfg.creatorName,jdbcType=VARCHAR}),'%')
|
|
|
|
|
</if>
|
|
|
|
|
<!-- <if test="cfg.search_create_time_start != null and cfg.search_create_time_start != ''">
|
|
|
|
|
<![CDATA[AND a.CREATE_TIME >= #{cfg.search_create_time_start,jdbcType=TIMESTAMP}]]>
|
|
|
|
|
<![CDATA[AND r.CREATE_TIME >= #{cfg.search_create_time_start,jdbcType=TIMESTAMP}]]>
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.search_create_time_end != null and cfg.search_create_time_end != ''">
|
|
|
|
|
<![CDATA[AND a.CREATE_TIME <= #{cfg.search_create_time_end,jdbcType=TIMESTAMP}]]>
|
|
|
|
|
<![CDATA[AND r.CREATE_TIME <= #{cfg.search_create_time_end,jdbcType=TIMESTAMP}]]>
|
|
|
|
|
</if> -->
|
|
|
|
|
<if test="cfg.editorName != null and cfg.editorName != ''">
|
|
|
|
|
AND EDITOR_NAME like concat(concat('%',#{cfg.editorName,jdbcType=VARCHAR}),'%')
|
|
|
|
|
AND r.EDITOR_NAME like concat(concat('%',#{cfg.editorName,jdbcType=VARCHAR}),'%')
|
|
|
|
|
</if>
|
|
|
|
|
<!-- <if test="cfg.search_edit_time_start != null and cfg.search_edit_time_start != ''">
|
|
|
|
|
<![CDATA[AND a.EDIT_TIME >= #{cfg.search_edit_time_start,jdbcType=TIMESTAMP}]]>
|
|
|
|
|
<![CDATA[AND r.EDIT_TIME >= #{cfg.search_edit_time_start,jdbcType=TIMESTAMP}]]>
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.search_edit_time_end != null and cfg.search_edit_time_end != ''">
|
|
|
|
|
<![CDATA[AND a.EDIT_TIME <= #{cfg.search_edit_time_end,jdbcType=TIMESTAMP}]]>
|
|
|
|
|
<![CDATA[AND r.EDIT_TIME <= #{cfg.search_edit_time_end,jdbcType=TIMESTAMP}]]>
|
|
|
|
|
</if> -->
|
|
|
|
|
<if test="cfg.auditorName != null and cfg.auditorName != ''">
|
|
|
|
|
AND AUDITOR_NAME like concat(concat('%',#{cfg.auditorName,jdbcType=VARCHAR}),'%')
|
|
|
|
|
</if>
|
|
|
|
|
<!-- <if test="cfg.search_audit_time_start != null and cfg.search_audit_time_start != ''">
|
|
|
|
|
<![CDATA[AND a.AUDIT_TIME >= #{cfg.search_audit_time_start,jdbcType=TIMESTAMP}]]>
|
|
|
|
|
<![CDATA[AND r.AUDIT_TIME >= #{cfg.search_audit_time_start,jdbcType=TIMESTAMP}]]>
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.search_audit_time_end != null and cfg.search_audit_time_end != ''">
|
|
|
|
|
<![CDATA[AND a.AUDIT_TIME <= #{cfg.search_audit_time_end,jdbcType=TIMESTAMP}]]>
|
|
|
|
|
<![CDATA[AND r.AUDIT_TIME <= #{cfg.search_audit_time_end,jdbcType=TIMESTAMP}]]>
|
|
|
|
|
</if> -->
|
|
|
|
|
<if test="cfg.serviceId != null">
|
|
|
|
|
AND a.SERVICE_ID=#{cfg.serviceId,jdbcType=INTEGER}
|
|
|
|
|
AND r.SERVICE_ID=#{cfg.serviceId,jdbcType=INTEGER}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.requestId != null">
|
|
|
|
|
AND a.REQUEST_ID=#{cfg.requestId,jdbcType=INTEGER}
|
|
|
|
|
AND r.REQUEST_ID=#{cfg.requestId,jdbcType=INTEGER}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.compileId != null">
|
|
|
|
|
AND a.COMPILE_ID=#{cfg.compileId,jdbcType=INTEGER}
|
|
|
|
|
AND r.COMPILE_ID=#{cfg.compileId,jdbcType=INTEGER}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.isAreaEffective != null">
|
|
|
|
|
AND a.IS_AREA_EFFECTIVE=#{cfg.isAreaEffective,jdbcType=INTEGER}
|
|
|
|
|
AND r.IS_AREA_EFFECTIVE=#{cfg.isAreaEffective,jdbcType=INTEGER}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.classify != null and cfg.classify != ''">
|
|
|
|
|
AND a.classify like concat(concat('%',#{cfg.classify,jdbcType=VARCHAR}),'%')
|
|
|
|
|
AND r.classify like concat(concat('%',#{cfg.classify,jdbcType=VARCHAR}),'%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.attribute != null and cfg.attribute != ''">
|
|
|
|
|
AND a.attribute like concat(concat('%',#{cfg.attribute,jdbcType=VARCHAR}),'%')
|
|
|
|
|
AND r.attribute like concat(concat('%',#{cfg.attribute,jdbcType=VARCHAR}),'%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.lable != null and cfg.lable != ''">
|
|
|
|
|
AND a.lable like concat(concat('%',#{cfg.lable,jdbcType=VARCHAR}),'%')
|
|
|
|
|
AND r.lable like concat(concat('%',#{cfg.lable,jdbcType=VARCHAR}),'%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.areaEffectiveIds != null and cfg.areaEffectiveIds != ''">
|
|
|
|
|
AND a.AREA_EFFECTIVE_IDS like concat(concat('%',#{cfg.areaEffectiveIds,jdbcType=VARCHAR}),'%')
|
|
|
|
|
AND r.AREA_EFFECTIVE_IDS like concat(concat('%',#{cfg.areaEffectiveIds,jdbcType=VARCHAR}),'%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.functionId != null">
|
|
|
|
|
AND a.function_id=#{cfg.functionId,jdbcType=INTEGER}
|
|
|
|
|
AND r.function_id=#{cfg.functionId,jdbcType=INTEGER}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="(cfg.voipIp.srcIpAddress != null and cfg.voipIp.srcIpAddress != '') or (cfg.voipIp.srcPort != null and cfg.voipIp.srcPort != '')">
|
|
|
|
|
AND a.compile_id in (select t.compile_id from av_voip_ip_cfg t
|
|
|
|
|
AND r.compile_id in (select t.compile_id from av_voip_ip_cfg t
|
|
|
|
|
<where>
|
|
|
|
|
<if test="cfg.voipIp.srcIpAddress != null and cfg.voipIp.srcIpAddress != ''">
|
|
|
|
|
and t.src_ip_address =#{cfg.voipIp.srcIpAddress,jdbcType=VARCHAR}
|
|
|
|
|
@@ -212,7 +212,7 @@
|
|
|
|
|
)
|
|
|
|
|
</if>
|
|
|
|
|
<if test="(cfg.voipAccount.cfgKeywords != null and cfg.voipAccount.cfgKeywords != '') or (cfg.voipAccount.district != null and cfg.voipAccount.district != '') ">
|
|
|
|
|
AND a.compile_id in (select f.compile_id from av_voip_account_cfg f
|
|
|
|
|
AND r.compile_id in (select f.compile_id from av_voip_account_cfg f
|
|
|
|
|
<where>
|
|
|
|
|
<if test="cfg.voipAccount.cfgKeywords != null and cfg.voipAccount.cfgKeywords != ''">
|
|
|
|
|
and f.cfg_keywords like concat(concat('%',#{cfg.voipAccount.cfgKeywords,jdbcType=VARCHAR}),'%')
|
|
|
|
|
@@ -235,7 +235,7 @@
|
|
|
|
|
ORDER BY ${cfg.page.orderBy}
|
|
|
|
|
</when>
|
|
|
|
|
<otherwise>
|
|
|
|
|
ORDER BY a.CFG_ID desc
|
|
|
|
|
ORDER BY r.CFG_ID desc
|
|
|
|
|
</otherwise>
|
|
|
|
|
</choose>
|
|
|
|
|
</select>
|
|
|
|
|
@@ -243,22 +243,24 @@
|
|
|
|
|
<select id="findVoipIpCfgList" resultMap="AvVoipIpCfgMap" parameterType="com.nis.domain.configuration.CfgIndexInfo">
|
|
|
|
|
select
|
|
|
|
|
<include refid="AvVoipIp_Column" />
|
|
|
|
|
from av_voip_ip_cfg a
|
|
|
|
|
from av_voip_ip_cfg r
|
|
|
|
|
<where>
|
|
|
|
|
<if test="cfg.compileId != null">
|
|
|
|
|
and a.COMPILE_ID=#{cfg.compileId,jdbcType=INTEGER}
|
|
|
|
|
and r.COMPILE_ID=#{cfg.compileId,jdbcType=INTEGER}
|
|
|
|
|
</if>
|
|
|
|
|
and r.is_valid !=-1
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
<!-- 根据compileId获取avVoipAccountCfg信息 -->
|
|
|
|
|
<select id="findVoipAccountCfgList" resultMap="AvVoipAccountCfgMap" parameterType="com.nis.domain.configuration.CfgIndexInfo">
|
|
|
|
|
select
|
|
|
|
|
<include refid="AvVoipAccount_Column" />
|
|
|
|
|
from av_voip_account_cfg a
|
|
|
|
|
from av_voip_account_cfg r
|
|
|
|
|
<where>
|
|
|
|
|
<if test="cfg.compileId != null">
|
|
|
|
|
and a.COMPILE_ID=#{cfg.compileId,jdbcType=INTEGER}
|
|
|
|
|
and r.COMPILE_ID=#{cfg.compileId,jdbcType=INTEGER}
|
|
|
|
|
</if>
|
|
|
|
|
and r.is_valid != -1
|
|
|
|
|
</where>
|
|
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
@@ -274,6 +276,7 @@
|
|
|
|
|
<if test="cfg.compileId != null">
|
|
|
|
|
and a.compile_Id=#{cfg.compileId,jdbcType=INTEGER}
|
|
|
|
|
</if>
|
|
|
|
|
and a.is_valid != -1
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
<!-- insert cfgIndexInfox -->
|
|
|
|
|
@@ -455,4 +458,274 @@
|
|
|
|
|
#{cfg.voipAccount.isHexbin,jdbcType=INTEGER}
|
|
|
|
|
)
|
|
|
|
|
</insert>
|
|
|
|
|
<!-- update cfg_index_info表信息 -->
|
|
|
|
|
<update id="updateCfgIndexInfo" parameterType="com.nis.domain.configuration.CfgIndexInfo" >
|
|
|
|
|
update cfg_index_info
|
|
|
|
|
<set >
|
|
|
|
|
<trim suffixOverrides=",">
|
|
|
|
|
<if test="cfg.cfgDesc != null and cfg.cfgDesc != ''" >
|
|
|
|
|
cfg_desc = #{cfg.cfgDesc,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.action != null" >
|
|
|
|
|
action = #{cfg.action,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.isValid != null" >
|
|
|
|
|
is_valid = #{cfg.isValid,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.isAudit != null" >
|
|
|
|
|
is_audit = #{cfg.isAudit,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.editorId != null" >
|
|
|
|
|
editor_id = #{cfg.editorId,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.editTime != null and cfg.editTime != ''" >
|
|
|
|
|
edit_time = #{cfg.editTime,jdbcType=TIMESTAMP},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.auditorId != null" >
|
|
|
|
|
AUDITOR_ID = #{cfg.auditorId,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.auditTime != null and cfg.auditTime != ''" >
|
|
|
|
|
AUDIT_TIME = #{cfg.auditTime,jdbcType=TIMESTAMP},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.compileId != null" >
|
|
|
|
|
COMPILE_ID = #{cfg.compileId,jdbcType=TIMESTAMP},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.requestId != null" >
|
|
|
|
|
request_id = #{cfg.requestId,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.isAreaEffective != null" >
|
|
|
|
|
is_area_effective = #{cfg.isAreaEffective,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.classify != null and cfg.classify != ''" >
|
|
|
|
|
classify = #{cfg.classify,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.attribute != null and cfg.attribute != ''" >
|
|
|
|
|
attribute = #{cfg.attribute,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.lable != null and cfg.lable != ''" >
|
|
|
|
|
lable = #{cfg.lable,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.areaEffectiveIds != null" >
|
|
|
|
|
area_effective_ids = #{cfg.areaEffectiveIds,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.functionId != null" >
|
|
|
|
|
function_id = #{cfg.functionId,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.serviceId != null" >
|
|
|
|
|
service_id = #{cfg.serviceId,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</set>
|
|
|
|
|
<where>
|
|
|
|
|
<if test="cfg.cfgId != null" >
|
|
|
|
|
and cfg_id = #{cfg.cfgId,jdbcType=INTEGER}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.compileId != null" >
|
|
|
|
|
and compile_id = #{cfg.compileId,jdbcType=INTEGER}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.functionId != null" >
|
|
|
|
|
and function_id = #{cfg.functionId,jdbcType=INTEGER}
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
</update>
|
|
|
|
|
<!-- update av_voip_ip_cfg表信息 -->
|
|
|
|
|
<update id="updateAvVoipIp" parameterType="com.nis.domain.configuration.CfgIndexInfo" >
|
|
|
|
|
update av_voip_ip_cfg
|
|
|
|
|
<set >
|
|
|
|
|
<trim suffixOverrides=",">
|
|
|
|
|
<if test="cfg.cfgDesc != null and cfg.cfgDesc != ''" >
|
|
|
|
|
cfg_desc = #{cfg.cfgDesc,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.action != null" >
|
|
|
|
|
action = #{cfg.action,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.isValid != null" >
|
|
|
|
|
is_valid = #{cfg.isValid,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.isAudit != null" >
|
|
|
|
|
is_audit = #{cfg.isAudit,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.editorId != null" >
|
|
|
|
|
editor_id = #{cfg.editorId,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.editTime != null and cfg.editTime != ''" >
|
|
|
|
|
edit_time = #{cfg.editTime,jdbcType=TIMESTAMP},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.auditorId != null" >
|
|
|
|
|
AUDITOR_ID = #{cfg.auditorId,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.auditTime != null and cfg.auditTime != ''" >
|
|
|
|
|
AUDIT_TIME = #{cfg.auditTime,jdbcType=TIMESTAMP},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.compileId != null" >
|
|
|
|
|
COMPILE_ID = #{cfg.compileId,jdbcType=TIMESTAMP},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.requestId != null" >
|
|
|
|
|
request_id = #{cfg.requestId,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.isAreaEffective != null" >
|
|
|
|
|
is_area_effective = #{cfg.isAreaEffective,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.classify != null and cfg.classify != ''" >
|
|
|
|
|
classify = #{cfg.classify,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.attribute != null and cfg.attribute != ''" >
|
|
|
|
|
attribute = #{cfg.attribute,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.lable != null and cfg.lable != ''" >
|
|
|
|
|
lable = #{cfg.lable,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.areaEffectiveIds != null" >
|
|
|
|
|
area_effective_ids = #{cfg.areaEffectiveIds,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.functionId != null" >
|
|
|
|
|
function_id = #{cfg.functionId,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.serviceId != null" >
|
|
|
|
|
service_id = #{cfg.serviceId,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.voipIp != null and cfg.voipIp.ipType != null" >
|
|
|
|
|
ip_type = #{cfg.voipIp.ipType,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.voipIp != null and cfg.voipIp.srcIpAddress != null and cfg.voipIp.srcIpAddress != ''" >
|
|
|
|
|
src_ip_address = #{cfg.voipIp.srcIpAddress,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.voipIp != null and cfg.voipIp.ipPattern != null" >
|
|
|
|
|
ip_pattern = #{cfg.voipIp.ipPattern,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.voipIp != null and cfg.voipIp.portPattern != null" >
|
|
|
|
|
port_pattern = #{cfg.voipIp.portPattern,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.voipIp != null and cfg.voipIp.srcPort != null and cfg.voipIp.srcPort != ''" >
|
|
|
|
|
src_port = #{cfg.voipIp.srcPort,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.voipIp != null and cfg.voipIp.protocol != null" >
|
|
|
|
|
protocol = #{cfg.voipIp.protocol,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.voipIp != null and cfg.voipIp.protocolId != null" >
|
|
|
|
|
protocol_id = #{cfg.voipIp.protocolId,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.voipIp != null and cfg.voipIp.direction != null" >
|
|
|
|
|
direction = #{cfg.voipIp.direction,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.voipIp != null and cfg.voipIp.destPort != null and cfg.voipIp.destPort != ''" >
|
|
|
|
|
dest_port = #{cfg.voipIp.destPort,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.voipIp != null and cfg.voipIp.destIpAddress != null and cfg.voipIp.destIpAddress != ''" >
|
|
|
|
|
dest_ip_address = #{cfg.voipIp.destIpAddress,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.voipIp != null and cfg.voipIp.cfgType != null and cfg.voipIp.cfgType != ''" >
|
|
|
|
|
cfg_type = #{cfg.voipIp.cfgType,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.voipIp != null and cfg.voipIp.cfgRegionCode != null " >
|
|
|
|
|
cfg_region_code = #{cfg.voipIp.cfgRegionCode,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</set>
|
|
|
|
|
<where>
|
|
|
|
|
<if test="cfg.voipIp != null and cfg.voipIp.cfgId != null" >
|
|
|
|
|
and cfg_id = #{cfg.voipIp.cfgId,jdbcType=INTEGER}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.compileId != null" >
|
|
|
|
|
and compile_id = #{cfg.compileId,jdbcType=INTEGER}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.functionId != null" >
|
|
|
|
|
and function_id = #{cfg.functionId,jdbcType=INTEGER}
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
</update>
|
|
|
|
|
<!-- update av_voip_account_cfg表信息 -->
|
|
|
|
|
<update id="updateAvVoipAccount" parameterType="com.nis.domain.configuration.CfgIndexInfo" >
|
|
|
|
|
update av_voip_account_cfg
|
|
|
|
|
<set >
|
|
|
|
|
<trim suffixOverrides=",">
|
|
|
|
|
<if test="cfg.cfgDesc != null and cfg.cfgDesc != ''" >
|
|
|
|
|
cfg_desc = #{cfg.cfgDesc,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.action != null" >
|
|
|
|
|
action = #{cfg.action,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.isValid != null" >
|
|
|
|
|
is_valid = #{cfg.isValid,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.isAudit != null" >
|
|
|
|
|
is_audit = #{cfg.isAudit,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.editorId != null" >
|
|
|
|
|
editor_id = #{cfg.editorId,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.editTime != null and cfg.editTime != ''" >
|
|
|
|
|
edit_time = #{cfg.editTime,jdbcType=TIMESTAMP},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.auditorId != null" >
|
|
|
|
|
AUDITOR_ID = #{cfg.auditorId,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.auditTime != null and cfg.auditTime != ''" >
|
|
|
|
|
AUDIT_TIME = #{cfg.auditTime,jdbcType=TIMESTAMP},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.compileId != null" >
|
|
|
|
|
COMPILE_ID = #{cfg.compileId,jdbcType=TIMESTAMP},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.requestId != null" >
|
|
|
|
|
request_id = #{cfg.requestId,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.isAreaEffective != null" >
|
|
|
|
|
is_area_effective = #{cfg.isAreaEffective,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.classify != null and cfg.classify != ''" >
|
|
|
|
|
classify = #{cfg.classify,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.attribute != null and cfg.attribute != ''" >
|
|
|
|
|
attribute = #{cfg.attribute,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.lable != null and cfg.lable != ''" >
|
|
|
|
|
lable = #{cfg.lable,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.areaEffectiveIds != null" >
|
|
|
|
|
area_effective_ids = #{cfg.areaEffectiveIds,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.functionId != null" >
|
|
|
|
|
function_id = #{cfg.functionId,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.serviceId != null" >
|
|
|
|
|
service_id = #{cfg.serviceId,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.voipAccount != null and cfg.voipAccount.district != null and cfg.voipAccount.district != ''" >
|
|
|
|
|
district = #{cfg.voipAccount.district,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.voipAccount != null and cfg.voipAccount.cfgKeywords != null and cfg.voipAccount.cfgKeywords != ''" >
|
|
|
|
|
cfg_keywords = #{cfg.voipAccount.cfgKeywords,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.voipAccount != null and cfg.voipAccount.cfgType != null and cfg.voipAccount.cfgType != ''" >
|
|
|
|
|
cfg_type = #{cfg.voipAccount.cfgType,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.voipAccount != null and cfg.voipAccount.cfgRegionCode != null " >
|
|
|
|
|
cfg_region_code = #{cfg.voipAccount.cfgRegionCode,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.voipAccount != null and cfg.voipAccount.exprType != null " >
|
|
|
|
|
expr_type = #{cfg.voipAccount.exprType,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.voipAccount != null and cfg.voipAccount.matchMethod != null " >
|
|
|
|
|
match_method = #{cfg.voipAccount.matchMethod,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.voipAccount != null and cfg.voipAccount.isHexbin != null " >
|
|
|
|
|
is_hexbin = #{cfg.voipAccount.isHexbin,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</set>
|
|
|
|
|
<where>
|
|
|
|
|
<if test="cfg.voipAccount != null and cfg.voipAccount.cfgId != null" >
|
|
|
|
|
and cfg_id = #{cfg.voipAccount.cfgId,jdbcType=INTEGER}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.compileId != null" >
|
|
|
|
|
and compile_id = #{cfg.compileId,jdbcType=INTEGER}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cfg.functionId != null" >
|
|
|
|
|
and function_id = #{cfg.functionId,jdbcType=INTEGER}
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</mapper>
|