HTTP替换业务转换空格和斜杠

修改HTTP 业务下删除ip表sql(去掉protocolId条件)
This commit is contained in:
duandongmei
2018-07-25 09:58:30 +08:00
parent 44afaabdf8
commit 4b104a9fa6
5 changed files with 59 additions and 14 deletions

View File

@@ -226,7 +226,9 @@
<if test="ipPort!=null">
AND a.compile_id in (select t.compile_id from ip_port_cfg t
<where>
and t.protocol_id=4
<if test="functionId != null">
AND t.function_id=#{functionId,jdbcType=INTEGER}
</if>
<if test="ipPort.srcIpAddress != null and ipPort.srcIpAddress != ''">
and t.src_ip_address =#{(ipPort.srcIpAddress,jdbcType=VARCHAR}
</if>
@@ -857,7 +859,7 @@
</update>
<!-- 删除http子配置 -->
<delete id="deleteHttpIpCfg" >
delete from ip_port_cfg where compile_id=#{compileId} and protocol_id=4 and function_id=#{functionId}
delete from ip_port_cfg where compile_id=#{compileId} and function_id=#{functionId}
</delete>
<delete id="deleteHttpUrlCfg">
delete from http_url_cfg where compile_id=#{compileId} and function_id=#{functionId}