diff --git a/src/main/java/com/nis/domain/configuration/BaseCfg.java b/src/main/java/com/nis/domain/configuration/BaseCfg.java index 14483c5a4..b4a7a5191 100644 --- a/src/main/java/com/nis/domain/configuration/BaseCfg.java +++ b/src/main/java/com/nis/domain/configuration/BaseCfg.java @@ -72,7 +72,7 @@ public class BaseCfg extends BaseEntity implements Cloneable{ * GK类型 */ @Expose - @ExcelField(title="action",dictType="SERVICE_ACTION",sort=2) + @ExcelField(title="block_type",dictType="SERVICE_ACTION",sort=2) protected Integer action; /** * 有效标识 diff --git a/src/main/java/com/nis/web/dao/configuration/AppCfgDao.xml b/src/main/java/com/nis/web/dao/configuration/AppCfgDao.xml index 038ecc035..12d5ca0aa 100644 --- a/src/main/java/com/nis/web/dao/configuration/AppCfgDao.xml +++ b/src/main/java/com/nis/web/dao/configuration/AppCfgDao.xml @@ -982,7 +982,7 @@ AND r.CFG_TYPE like concat(concat('%',#{cfgType,jdbcType=VARCHAR}),'%') - AND r.CFG_KEYWORDS like concat(concat('%',#{cfgKeywords,jdbcType=VARCHAR}),'%') + AND REPLACE(r.CFG_KEYWORDS,'***and***','|') like concat(concat('%',#{cfgKeywords,jdbcType=VARCHAR}),'%') AND r.DISTRICT =#{district,jdbcType=VARCHAR} @@ -1481,7 +1481,7 @@ AND r.CFG_TYPE like concat(concat('%',#{cfgType,jdbcType=VARCHAR}),'%') - AND r.CFG_KEYWORDS like concat(concat('%',#{cfgKeywords,jdbcType=VARCHAR}),'%') + AND REPLACE(r.CFG_KEYWORDS,'***and***','|') like concat(concat('%',#{cfgKeywords,jdbcType=VARCHAR}),'%') AND r.DISTRICT =#{district,jdbcType=VARCHAR} diff --git a/src/main/java/com/nis/web/dao/configuration/AppMultiFeatureCfgDao.xml b/src/main/java/com/nis/web/dao/configuration/AppMultiFeatureCfgDao.xml index 7039a04cc..ec1caaf13 100644 --- a/src/main/java/com/nis/web/dao/configuration/AppMultiFeatureCfgDao.xml +++ b/src/main/java/com/nis/web/dao/configuration/AppMultiFeatureCfgDao.xml @@ -271,27 +271,30 @@ AND r.AREA_EFFECTIVE_IDS like concat(concat('%',#{areaEffectiveIds,jdbcType=VARCHAR}),'%') - AND a.compile_id in (select f.compile_id from app_complex_feature_cfg f + AND r.compile_id in (select f.compile_id from app_complex_feature_cfg f - and f.cfg_keywords like concat(concat('%',#{complexStrCfg.cfgKeywords,jdbcType=VARCHAR}),'%') + REPLACE(f.cfg_keywords ,'***and***','|') like concat(concat('%',#{complexStrCfg.cfgKeywords,jdbcType=VARCHAR}),'%') - - and f.district like concat(concat('%',#{complexStrCfg.district,jdbcType=VARCHAR}),'%') - - + ) - AND a.compile_id in (select f.compile_id from app_string_feature_cfg f + AND r.compile_id in (select f.compile_id from app_string_feature_cfg f - and f.cfg_keywords like concat(concat('%',#{strCfg.cfgKeywords,jdbcType=VARCHAR}),'%') + REPLACE(f.cfg_keywords ,'***and***','|') like concat(concat('%',#{strCfg.cfgKeywords,jdbcType=VARCHAR}),'%') - - and f.district like concat(concat('%',#{strCfg.district,jdbcType=VARCHAR}),'%') + + ) + + + AND r.compile_id in (select f.compile_id from app_ip_range_cfg f + + + f.dest_ip_address = #{ipCfg.destIpAddress,jdbcType=VARCHAR} - + ) diff --git a/src/main/webapp/WEB-INF/views/cfg/app/appMultiFeatureCfgList.jsp b/src/main/webapp/WEB-INF/views/cfg/app/appMultiFeatureCfgList.jsp index a9d1dcf63..3fe9f3e1d 100644 --- a/src/main/webapp/WEB-INF/views/cfg/app/appMultiFeatureCfgList.jsp +++ b/src/main/webapp/WEB-INF/views/cfg/app/appMultiFeatureCfgList.jsp @@ -12,6 +12,12 @@ $("#intype").val("${cfg.cfgDesc}"); }else if("${cfg.compileId}"){ $("#intype").val("${cfg.compileId}"); + }else if("${cfg.ipCfg.destIpAddress}"){ + $("#intype").val("${cfg.ipCfg.destIpAddress}"); + }else if("${cfg.strCfg.cfgKeywords}"){ + $("#intype").val("${cfg.strCfg.cfgKeywords}"); + }else if("${cfg.complexStrCfg.cfgKeywords}"){ + $("#intype").val("${cfg.complexStrCfg.cfgKeywords}"); }else{ $("#intype").attr("placeholder"," "+$("#seltype").find("option:selected").text()); } @@ -152,6 +158,15 @@ + + + + + + + + +