Merge branch 'develop' of http://10.0.6.99/gwall/gwall.git into develop
Conflicts: src/main/webapp/static/global/plugins/jquery-validation/1.11.0/localization/messages_en.js src/main/webapp/static/global/plugins/jquery-validation/1.11.0/localization/messages_zh.js
This commit is contained in:
@@ -28,7 +28,7 @@ public class AppDomainCfg extends BaseCfg<AppDomainCfg> {
|
|||||||
@Expose
|
@Expose
|
||||||
private Integer compileId;
|
private Integer compileId;
|
||||||
@Expose
|
@Expose
|
||||||
private Integer ratelimit;
|
private String ratelimit;
|
||||||
private Integer appCode;//specific_service_cfg表一级节点的spec_service_code
|
private Integer appCode;//specific_service_cfg表一级节点的spec_service_code
|
||||||
private Integer behavCode;//specific_service_cfg表二级节点的spec_service_code
|
private Integer behavCode;//specific_service_cfg表二级节点的spec_service_code
|
||||||
private Integer specServiceId;
|
private Integer specServiceId;
|
||||||
@@ -92,11 +92,11 @@ public class AppDomainCfg extends BaseCfg<AppDomainCfg> {
|
|||||||
return tableName;
|
return tableName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Integer getRatelimit() {
|
public String getRatelimit() {
|
||||||
return ratelimit;
|
return ratelimit;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setRatelimit(Integer ratelimit) {
|
public void setRatelimit(String ratelimit) {
|
||||||
this.ratelimit = ratelimit;
|
this.ratelimit = ratelimit;
|
||||||
}
|
}
|
||||||
public Integer getAppCode() {
|
public Integer getAppCode() {
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ public class AppHeaderCfg extends BaseCfg<AppHeaderCfg> {
|
|||||||
@Expose
|
@Expose
|
||||||
private Integer compileId;
|
private Integer compileId;
|
||||||
@Expose
|
@Expose
|
||||||
private Integer ratelimit;
|
private String ratelimit;
|
||||||
private Integer appCode;//specific_service_cfg表一级节点的spec_service_code
|
private Integer appCode;//specific_service_cfg表一级节点的spec_service_code
|
||||||
private Integer behavCode;//specific_service_cfg表二级节点的spec_service_code
|
private Integer behavCode;//specific_service_cfg表二级节点的spec_service_code
|
||||||
private Integer specServiceId;
|
private Integer specServiceId;
|
||||||
@@ -92,11 +92,11 @@ public class AppHeaderCfg extends BaseCfg<AppHeaderCfg> {
|
|||||||
return tableName;
|
return tableName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Integer getRatelimit() {
|
public String getRatelimit() {
|
||||||
return ratelimit;
|
return ratelimit;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setRatelimit(Integer ratelimit) {
|
public void setRatelimit(String ratelimit) {
|
||||||
this.ratelimit = ratelimit;
|
this.ratelimit = ratelimit;
|
||||||
}
|
}
|
||||||
public Integer getAppCode() {
|
public Integer getAppCode() {
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ public class AppHttpCfg extends BaseCfg<AppHttpCfg> {
|
|||||||
@Expose
|
@Expose
|
||||||
private Integer compileId;
|
private Integer compileId;
|
||||||
@Expose
|
@Expose
|
||||||
private Integer ratelimit;
|
private String ratelimit;
|
||||||
private Integer appCode;//specific_service_cfg表一级节点的spec_service_code
|
private Integer appCode;//specific_service_cfg表一级节点的spec_service_code
|
||||||
private Integer behavCode;//specific_service_cfg表二级节点的spec_service_code
|
private Integer behavCode;//specific_service_cfg表二级节点的spec_service_code
|
||||||
private Integer specServiceId;
|
private Integer specServiceId;
|
||||||
@@ -93,11 +93,11 @@ public class AppHttpCfg extends BaseCfg<AppHttpCfg> {
|
|||||||
return tableName;
|
return tableName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Integer getRatelimit() {
|
public String getRatelimit() {
|
||||||
return ratelimit;
|
return ratelimit;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setRatelimit(Integer ratelimit) {
|
public void setRatelimit(String ratelimit) {
|
||||||
this.ratelimit = ratelimit;
|
this.ratelimit = ratelimit;
|
||||||
}
|
}
|
||||||
public Integer getAppCode() {
|
public Integer getAppCode() {
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ public class AppInnerRuleCfg extends BaseCfg<AppInnerRuleCfg> {
|
|||||||
@Expose
|
@Expose
|
||||||
private Integer compileId;
|
private Integer compileId;
|
||||||
@Expose
|
@Expose
|
||||||
private Integer ratelimit;
|
private String ratelimit;
|
||||||
private Integer appCode;//specific_service_cfg表一级节点的spec_service_code
|
private Integer appCode;//specific_service_cfg表一级节点的spec_service_code
|
||||||
private Integer behavCode;//specific_service_cfg表二级节点的spec_service_code
|
private Integer behavCode;//specific_service_cfg表二级节点的spec_service_code
|
||||||
private Integer specServiceId;
|
private Integer specServiceId;
|
||||||
@@ -92,11 +92,11 @@ public class AppInnerRuleCfg extends BaseCfg<AppInnerRuleCfg> {
|
|||||||
return tableName;
|
return tableName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Integer getRatelimit() {
|
public String getRatelimit() {
|
||||||
return ratelimit;
|
return ratelimit;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setRatelimit(Integer ratelimit) {
|
public void setRatelimit(String ratelimit) {
|
||||||
this.ratelimit = ratelimit;
|
this.ratelimit = ratelimit;
|
||||||
}
|
}
|
||||||
public Integer getAppCode() {
|
public Integer getAppCode() {
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ public class AppIpCfg extends BaseCfg<AppIpCfg> {
|
|||||||
@Expose
|
@Expose
|
||||||
private Integer compileId;
|
private Integer compileId;
|
||||||
@Expose
|
@Expose
|
||||||
private Integer ratelimit;
|
private String ratelimit;
|
||||||
private Integer appCode;//specific_service_cfg表一级节点的spec_service_code
|
private Integer appCode;//specific_service_cfg表一级节点的spec_service_code
|
||||||
private Integer behavCode;//specific_service_cfg表二级节点的spec_service_code
|
private Integer behavCode;//specific_service_cfg表二级节点的spec_service_code
|
||||||
private Integer specServiceId;
|
private Integer specServiceId;
|
||||||
@@ -213,11 +213,11 @@ public class AppIpCfg extends BaseCfg<AppIpCfg> {
|
|||||||
return tableName;
|
return tableName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Integer getRatelimit() {
|
public String getRatelimit() {
|
||||||
return ratelimit;
|
return ratelimit;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setRatelimit(Integer ratelimit) {
|
public void setRatelimit(String ratelimit) {
|
||||||
this.ratelimit = ratelimit;
|
this.ratelimit = ratelimit;
|
||||||
}
|
}
|
||||||
public Integer getAppCode() {
|
public Integer getAppCode() {
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ public class AppPolicyCfg extends BaseCfg<AppPolicyCfg> {
|
|||||||
@Expose
|
@Expose
|
||||||
private Integer compileId;
|
private Integer compileId;
|
||||||
@Expose
|
@Expose
|
||||||
private Integer ratelimit;
|
private String ratelimit;
|
||||||
private Integer appCode;//specific_service_cfg表一级节点的spec_service_code
|
private Integer appCode;//specific_service_cfg表一级节点的spec_service_code
|
||||||
private Integer behavCode;//specific_service_cfg表二级节点的spec_service_code
|
private Integer behavCode;//specific_service_cfg表二级节点的spec_service_code
|
||||||
private Integer specServiceId;
|
private Integer specServiceId;
|
||||||
@@ -145,11 +145,11 @@ public class AppPolicyCfg extends BaseCfg<AppPolicyCfg> {
|
|||||||
return tableName;
|
return tableName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Integer getRatelimit() {
|
public String getRatelimit() {
|
||||||
return ratelimit;
|
return ratelimit;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setRatelimit(Integer ratelimit) {
|
public void setRatelimit(String ratelimit) {
|
||||||
this.ratelimit = ratelimit;
|
this.ratelimit = ratelimit;
|
||||||
}
|
}
|
||||||
public Integer getAppCode() {
|
public Integer getAppCode() {
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ public class AppSslCertCfg extends BaseCfg<AppSslCertCfg> {
|
|||||||
@Expose
|
@Expose
|
||||||
private Integer compileId;
|
private Integer compileId;
|
||||||
@Expose
|
@Expose
|
||||||
private Integer ratelimit;
|
private String ratelimit;
|
||||||
private Integer appCode;//specific_service_cfg表一级节点的spec_service_code
|
private Integer appCode;//specific_service_cfg表一级节点的spec_service_code
|
||||||
private Integer behavCode;//specific_service_cfg表二级节点的spec_service_code
|
private Integer behavCode;//specific_service_cfg表二级节点的spec_service_code
|
||||||
private Integer specServiceId;
|
private Integer specServiceId;
|
||||||
@@ -92,11 +92,11 @@ public class AppSslCertCfg extends BaseCfg<AppSslCertCfg> {
|
|||||||
return tableName;
|
return tableName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Integer getRatelimit() {
|
public String getRatelimit() {
|
||||||
return ratelimit;
|
return ratelimit;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setRatelimit(Integer ratelimit) {
|
public void setRatelimit(String ratelimit) {
|
||||||
this.ratelimit = ratelimit;
|
this.ratelimit = ratelimit;
|
||||||
}
|
}
|
||||||
public Integer getAppCode() {
|
public Integer getAppCode() {
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ public class AppStringCfg extends BaseStringCfg<AppStringCfg> {
|
|||||||
@Expose
|
@Expose
|
||||||
private Integer compileId;
|
private Integer compileId;
|
||||||
@Expose
|
@Expose
|
||||||
private Integer ratelimit;
|
private String ratelimit;
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see com.nis.domain.configuration.BaseCfg#initDefaultValue()
|
* @see com.nis.domain.configuration.BaseCfg#initDefaultValue()
|
||||||
@@ -53,11 +53,11 @@ public class AppStringCfg extends BaseStringCfg<AppStringCfg> {
|
|||||||
return tableName;
|
return tableName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Integer getRatelimit() {
|
public String getRatelimit() {
|
||||||
return ratelimit;
|
return ratelimit;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setRatelimit(Integer ratelimit) {
|
public void setRatelimit(String ratelimit) {
|
||||||
this.ratelimit = ratelimit;
|
this.ratelimit = ratelimit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ public class AppTcpCfg extends BaseCfg<AppTcpCfg> {
|
|||||||
@Expose
|
@Expose
|
||||||
private Integer compileId;
|
private Integer compileId;
|
||||||
@Expose
|
@Expose
|
||||||
private Integer ratelimit;
|
private String ratelimit;
|
||||||
private Integer appCode;//specific_service_cfg表一级节点的spec_service_code
|
private Integer appCode;//specific_service_cfg表一级节点的spec_service_code
|
||||||
private Integer behavCode;//specific_service_cfg表二级节点的spec_service_code
|
private Integer behavCode;//specific_service_cfg表二级节点的spec_service_code
|
||||||
private Integer specServiceId;
|
private Integer specServiceId;
|
||||||
@@ -121,11 +121,11 @@ public class AppTcpCfg extends BaseCfg<AppTcpCfg> {
|
|||||||
return tableName;
|
return tableName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Integer getRatelimit() {
|
public String getRatelimit() {
|
||||||
return ratelimit;
|
return ratelimit;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setRatelimit(Integer ratelimit) {
|
public void setRatelimit(String ratelimit) {
|
||||||
this.ratelimit = ratelimit;
|
this.ratelimit = ratelimit;
|
||||||
}
|
}
|
||||||
public Integer getAppCode() {
|
public Integer getAppCode() {
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ public class AppTopicDomainCfg extends BaseCfg<AppTopicDomainCfg> {
|
|||||||
@Expose
|
@Expose
|
||||||
private Integer compileId;
|
private Integer compileId;
|
||||||
@Expose
|
@Expose
|
||||||
private Integer ratelimit;
|
private String ratelimit;
|
||||||
// private Integer appCode;//specific_service_cfg表一级节点的spec_service_code
|
// private Integer appCode;//specific_service_cfg表一级节点的spec_service_code
|
||||||
private Integer behavCode;//specific_service_cfg表二级节点的spec_service_code
|
private Integer behavCode;//specific_service_cfg表二级节点的spec_service_code
|
||||||
private Integer specServiceId;
|
private Integer specServiceId;
|
||||||
@@ -101,11 +101,11 @@ public class AppTopicDomainCfg extends BaseCfg<AppTopicDomainCfg> {
|
|||||||
return tableName;
|
return tableName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Integer getRatelimit() {
|
public String getRatelimit() {
|
||||||
return ratelimit;
|
return ratelimit;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setRatelimit(Integer ratelimit) {
|
public void setRatelimit(String ratelimit) {
|
||||||
this.ratelimit = ratelimit;
|
this.ratelimit = ratelimit;
|
||||||
}
|
}
|
||||||
// public Integer getAppCode() {
|
// public Integer getAppCode() {
|
||||||
|
|||||||
@@ -109,20 +109,20 @@ public class BaseIpCfg extends BaseCfg<BaseIpCfg> {
|
|||||||
/**
|
/**
|
||||||
* 限速比例
|
* 限速比例
|
||||||
*/
|
*/
|
||||||
protected Integer ratelimit ;
|
protected String ratelimit ;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ratelimit
|
* ratelimit
|
||||||
* @return ratelimit
|
* @return ratelimit
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public Integer getRatelimit() {
|
public String getRatelimit() {
|
||||||
return ratelimit;
|
return ratelimit;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @param ratelimit the ratelimit to set
|
* @param ratelimit the ratelimit to set
|
||||||
*/
|
*/
|
||||||
public void setRatelimit(Integer ratelimit) {
|
public void setRatelimit(String ratelimit) {
|
||||||
this.ratelimit = ratelimit;
|
this.ratelimit = ratelimit;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -10,10 +10,6 @@ package com.nis.domain.configuration;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import com.nis.domain.SysRole;
|
|
||||||
import com.nis.util.excel.ExcelField;
|
|
||||||
import com.nis.util.excel.fieldtype.RoleListType;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ClassName: CfgIndexInfo.java
|
* @ClassName: CfgIndexInfo.java
|
||||||
|
|||||||
@@ -20,19 +20,19 @@ import com.nis.util.Constants;
|
|||||||
*/
|
*/
|
||||||
public class HttpUrlCfg extends BaseStringCfg<HttpUrlCfg> {
|
public class HttpUrlCfg extends BaseStringCfg<HttpUrlCfg> {
|
||||||
private static final String tableName="http_url_cfg";
|
private static final String tableName="http_url_cfg";
|
||||||
private Integer ratelimit;
|
private String ratelimit;
|
||||||
/**
|
/**
|
||||||
* ratelimit
|
* ratelimit
|
||||||
* @return ratelimit
|
* @return ratelimit
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public Integer getRatelimit() {
|
public String getRatelimit() {
|
||||||
return ratelimit;
|
return ratelimit;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @param ratelimit the ratelimit to set
|
* @param ratelimit the ratelimit to set
|
||||||
*/
|
*/
|
||||||
public void setRatelimit(Integer ratelimit) {
|
public void setRatelimit(String ratelimit) {
|
||||||
this.ratelimit = ratelimit;
|
this.ratelimit = ratelimit;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ public class IpAddrTemplate extends IpCfgTemplate {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Integer getRatelimit() {
|
public String getRatelimit() {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
return super.getRatelimit();
|
return super.getRatelimit();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ public class IpCfgTemplate {
|
|||||||
private String attributeName;//18
|
private String attributeName;//18
|
||||||
private String lableName;//19
|
private String lableName;//19
|
||||||
private String areaEffectiveIds;//20
|
private String areaEffectiveIds;//20
|
||||||
private Integer ratelimit;//21
|
private String ratelimit;//21
|
||||||
private Integer dnsStrategyId;//22
|
private Integer dnsStrategyId;//22
|
||||||
private Integer irType;//23
|
private Integer irType;//23
|
||||||
private String userRegion1;//77
|
private String userRegion1;//77
|
||||||
@@ -128,13 +128,13 @@ public class IpCfgTemplate {
|
|||||||
* @return ratelimit
|
* @return ratelimit
|
||||||
*/
|
*/
|
||||||
@ExcelField(title="ratelimit",align=2,sort=74)
|
@ExcelField(title="ratelimit",align=2,sort=74)
|
||||||
public Integer getRatelimit() {
|
public String getRatelimit() {
|
||||||
return ratelimit;
|
return ratelimit;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @param ratelimit the ratelimit to set
|
* @param ratelimit the ratelimit to set
|
||||||
*/
|
*/
|
||||||
public void setRatelimit(Integer ratelimit) {
|
public void setRatelimit(String ratelimit) {
|
||||||
this.ratelimit = ratelimit;
|
this.ratelimit = ratelimit;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ public class IpMultiplexPolicyTemplate extends IpCfgTemplate {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Integer getRatelimit() {
|
public String getRatelimit() {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
return super.getRatelimit();
|
return super.getRatelimit();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ public class IpsecTemplate extends IpCfgTemplate {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Integer getRatelimit() {
|
public String getRatelimit() {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
return super.getRatelimit();
|
return super.getRatelimit();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ public class TunnelIpTemplate extends IpCfgTemplate {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Integer getRatelimit() {
|
public String getRatelimit() {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
return super.getRatelimit();
|
return super.getRatelimit();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ public class WhiteListIpTemplate extends IpCfgTemplate {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Integer getRatelimit() {
|
public String getRatelimit() {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
return super.getRatelimit();
|
return super.getRatelimit();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ public class SearchReport extends BaseEntity<SearchReport>{
|
|||||||
private Integer functionId;
|
private Integer functionId;
|
||||||
private String cfgName;
|
private String cfgName;
|
||||||
private Integer action;
|
private Integer action;
|
||||||
|
private String services;//service日志总量统计使用
|
||||||
private Integer reportType;//小时报,日报,月报
|
private Integer reportType;//小时报,日报,月报
|
||||||
//标签,性质,来文函号,境内源Ip,各国目的IP,运营商局点
|
//标签,性质,来文函号,境内源Ip,各国目的IP,运营商局点
|
||||||
private String reportBusinessType;
|
private String reportBusinessType;
|
||||||
@@ -50,6 +51,13 @@ public class SearchReport extends BaseEntity<SearchReport>{
|
|||||||
//界面查询的时间
|
//界面查询的时间
|
||||||
private String reportTime;
|
private String reportTime;
|
||||||
|
|
||||||
|
|
||||||
|
public String getServices() {
|
||||||
|
return services;
|
||||||
|
}
|
||||||
|
public void setServices(String services) {
|
||||||
|
this.services = services;
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* reportStartTime
|
* reportStartTime
|
||||||
* @return reportStartTime
|
* @return reportStartTime
|
||||||
|
|||||||
@@ -25,21 +25,14 @@ public class NtcPzReport extends BaseReport<NtcPzReport>{
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
private static final long serialVersionUID = 7079305499220977782L;
|
private static final long serialVersionUID = 7079305499220977782L;
|
||||||
private Long configId;
|
private Long cfgId;
|
||||||
private Date statTime;
|
private Date statTime;
|
||||||
/**
|
|
||||||
* configId
|
|
||||||
* @return configId
|
|
||||||
*/
|
|
||||||
|
|
||||||
public Long getConfigId() {
|
public Long getCfgId() {
|
||||||
return configId;
|
return cfgId;
|
||||||
}
|
}
|
||||||
/**
|
public void setCfgId(Long cfgId) {
|
||||||
* @param configId the configId to set
|
this.cfgId = cfgId;
|
||||||
*/
|
|
||||||
public void setConfigId(Long configId) {
|
|
||||||
this.configId = configId;
|
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* statTime
|
* statTime
|
||||||
|
|||||||
@@ -54,7 +54,6 @@ import com.nis.util.DictUtils;
|
|||||||
import com.nis.util.JsonMapper;
|
import com.nis.util.JsonMapper;
|
||||||
import com.nis.util.StringUtil;
|
import com.nis.util.StringUtil;
|
||||||
import com.nis.util.excel.ExportExcel;
|
import com.nis.util.excel.ExportExcel;
|
||||||
import com.nis.web.dao.configuration.InterceptCfgDao;
|
|
||||||
import com.nis.web.service.ArchiveServcie;
|
import com.nis.web.service.ArchiveServcie;
|
||||||
import com.nis.web.service.AreaService;
|
import com.nis.web.service.AreaService;
|
||||||
import com.nis.web.service.DictService;
|
import com.nis.web.service.DictService;
|
||||||
@@ -1064,13 +1063,18 @@ public class BaseController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if("ipratelimit".equals(specialItem)) {
|
if("ipratelimit".equals(specialItem)) {
|
||||||
Integer ratelimit=value.getRatelimit();
|
String ratelimit=value.getRatelimit();
|
||||||
if(ratelimit==null) {
|
if(ratelimit==null) {
|
||||||
errInfo.append(String.format(prop.getProperty("can_not_null"), prop.getProperty("ratelimit"))+";");
|
errInfo.append(String.format(prop.getProperty("can_not_null"), prop.getProperty("ratelimit"))+";");
|
||||||
}else {
|
}else {
|
||||||
if(ratelimit.intValue()<0||ratelimit.intValue()>100) {
|
try {
|
||||||
errInfo.append(prop.getProperty("ratelimit_limit")+";");
|
if(Double.parseDouble(ratelimit)<0||Double.parseDouble(ratelimit)>1) {
|
||||||
|
errInfo.append(String.format(prop.getProperty("is_incorrect"), prop.getProperty("ratelimit_limit"))+";");
|
||||||
}
|
}
|
||||||
|
}catch (Exception e) {
|
||||||
|
errInfo.append(String.format(prop.getProperty("is_incorrect"), prop.getProperty("ratelimit_limit"))+";");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//attribute check end
|
//attribute check end
|
||||||
|
|||||||
@@ -131,9 +131,11 @@ public class AvController extends BaseController {
|
|||||||
entity.setResultPath(resultFileAllPath);
|
entity.setResultPath(resultFileAllPath);
|
||||||
|
|
||||||
File uploadSrcFile = new File(srcFileAllPath);
|
File uploadSrcFile = new File(srcFileAllPath);
|
||||||
File uploadSampleFile = new File(sampleFileAllPath);
|
// File uploadSampleFile = new File(sampleFileAllPath);
|
||||||
FileCopyUtils.copy(srcFile.getBytes(), uploadSrcFile);//保存源文件
|
FileCopyUtils.copy(srcFile.getBytes(), uploadSrcFile);//保存源文件
|
||||||
String host = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+request.getContextPath();
|
entity.setSrcUrl("");
|
||||||
|
entity.setSampleUrl("");
|
||||||
|
/*String host = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+request.getContextPath();
|
||||||
String srcUrl = host+srcFilePath.substring(srcFilePath.indexOf(Constants.AV_FILE_PATH)+Constants.AV_FILE_PATH.length()-1)+sep+uploadSrcFile.getName();
|
String srcUrl = host+srcFilePath.substring(srcFilePath.indexOf(Constants.AV_FILE_PATH)+Constants.AV_FILE_PATH.length()-1)+sep+uploadSrcFile.getName();
|
||||||
String sampleUrl = host+sampleFilePath.substring(sampleFilePath.indexOf(Constants.AV_FILE_PATH)+Constants.AV_FILE_PATH.length()-1)+sep+uploadSampleFile.getName();
|
String sampleUrl = host+sampleFilePath.substring(sampleFilePath.indexOf(Constants.AV_FILE_PATH)+Constants.AV_FILE_PATH.length()-1)+sep+uploadSampleFile.getName();
|
||||||
srcUrl = srcUrl.replace("\\", "/");
|
srcUrl = srcUrl.replace("\\", "/");
|
||||||
@@ -141,7 +143,7 @@ public class AvController extends BaseController {
|
|||||||
logger.info("srcUrl:"+srcUrl);
|
logger.info("srcUrl:"+srcUrl);
|
||||||
logger.info("sampleUrl:"+sampleUrl);
|
logger.info("sampleUrl:"+sampleUrl);
|
||||||
entity.setSrcUrl(srcUrl);
|
entity.setSrcUrl(srcUrl);
|
||||||
entity.setSampleUrl(sampleUrl);
|
entity.setSampleUrl(sampleUrl);*/
|
||||||
|
|
||||||
// File uploadSrcFile = new File(srcFilePath);
|
// File uploadSrcFile = new File(srcFilePath);
|
||||||
// FileCopyUtils.copy(srcFile.getBytes(), uploadSrcFile);
|
// FileCopyUtils.copy(srcFile.getBytes(), uploadSrcFile);
|
||||||
@@ -209,10 +211,10 @@ public class AvController extends BaseController {
|
|||||||
entity.setIsValid(isValid);
|
entity.setIsValid(isValid);
|
||||||
entity.setAuditorId(UserUtils.getUser().getId());
|
entity.setAuditorId(UserUtils.getUser().getId());
|
||||||
entity.setAuditTime(new Date());
|
entity.setAuditTime(new Date());
|
||||||
String oldSrcUrl = entity.getSrcPath();
|
// String oldSrcUrl = entity.getSrcPath();
|
||||||
String oldSampleUrl = entity.getSamplePath();
|
// String oldSampleUrl = entity.getSamplePath();
|
||||||
try {
|
try {
|
||||||
if(isAudit==1){
|
/*if(isAudit==1){
|
||||||
Date creatTime = entity.getCreateTime();
|
Date creatTime = entity.getCreateTime();
|
||||||
//音视频文件上传接口调用
|
//音视频文件上传接口调用
|
||||||
File srcFile = new File(oldSrcUrl);
|
File srcFile = new File(oldSrcUrl);
|
||||||
@@ -254,15 +256,15 @@ public class AvController extends BaseController {
|
|||||||
// entity.setSamplePath("");
|
// entity.setSamplePath("");
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
avCfgService.auditAvFileSample(entity,isAudit);
|
avCfgService.auditAvFileSample(entity,isAudit);
|
||||||
//删除本地源文件和样例文件
|
//删除本地源文件和样例文件
|
||||||
if(!oldSrcUrl.equals(entity.getSrcUrl())){
|
/*if(!oldSrcUrl.equals(entity.getSrcUrl())){
|
||||||
FileUtils.deleteFile(oldSrcUrl);
|
FileUtils.deleteFile(oldSrcUrl);
|
||||||
}
|
}
|
||||||
if(!oldSampleUrl.equals(entity.getSampleUrl())){
|
if(!oldSampleUrl.equals(entity.getSampleUrl())){
|
||||||
FileUtils.deleteFile(oldSampleUrl);
|
FileUtils.deleteFile(oldSampleUrl);
|
||||||
}
|
}*/
|
||||||
}catch(Exception e){
|
}catch(Exception e){
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
if(e instanceof MaatConvertException) {
|
if(e instanceof MaatConvertException) {
|
||||||
|
|||||||
@@ -1,10 +1,13 @@
|
|||||||
package com.nis.web.controller.configuration.ntc;
|
package com.nis.web.controller.configuration.ntc;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
|
||||||
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.springframework.ui.Model;
|
import org.springframework.ui.Model;
|
||||||
@@ -15,15 +18,18 @@ import org.springframework.web.bind.annotation.RequestParam;
|
|||||||
import org.springframework.web.multipart.MultipartFile;
|
import org.springframework.web.multipart.MultipartFile;
|
||||||
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
|
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
|
||||||
|
|
||||||
|
import com.nis.domain.Page;
|
||||||
import com.nis.domain.SysDataDictionaryItem;
|
import com.nis.domain.SysDataDictionaryItem;
|
||||||
import com.nis.domain.configuration.BaseIpCfg;
|
import com.nis.domain.configuration.CfgIndexInfo;
|
||||||
import com.nis.domain.configuration.IpPortCfg;
|
import com.nis.domain.configuration.IpPortCfg;
|
||||||
|
import com.nis.domain.configuration.NtcSubscribeIdCfg;
|
||||||
import com.nis.domain.configuration.template.IpAddrTemplate;
|
import com.nis.domain.configuration.template.IpAddrTemplate;
|
||||||
import com.nis.domain.configuration.template.IpsecTemplate;
|
import com.nis.domain.configuration.template.IpsecTemplate;
|
||||||
import com.nis.domain.configuration.template.TunnelIpTemplate;
|
import com.nis.domain.configuration.template.TunnelIpTemplate;
|
||||||
import com.nis.util.Constants;
|
import com.nis.exceptions.MaatConvertException;
|
||||||
import com.nis.util.DictUtils;
|
import com.nis.util.DictUtils;
|
||||||
import com.nis.web.controller.configuration.CommonController;
|
import com.nis.web.controller.configuration.CommonController;
|
||||||
|
import com.nis.web.security.UserUtils;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* IP相关配置控制类
|
* IP相关配置控制类
|
||||||
@@ -35,54 +41,87 @@ import com.nis.web.controller.configuration.CommonController;
|
|||||||
public class IpController extends CommonController{
|
public class IpController extends CommonController{
|
||||||
@RequestMapping(value = {"list"})
|
@RequestMapping(value = {"list"})
|
||||||
// @RequiresPermissions(value={"iplist:config","iplist:confirm"},logical=Logical.OR)
|
// @RequiresPermissions(value={"iplist:config","iplist:confirm"},logical=Logical.OR)
|
||||||
public String list(String cfgName,Model model,@ModelAttribute("cfg")IpPortCfg cfg,HttpServletRequest request,HttpServletResponse response) {
|
public String list(Model model,@ModelAttribute("cfg")CfgIndexInfo cfg,HttpServletRequest request,HttpServletResponse response) {
|
||||||
this._ipList(cfgName, model, cfg, request, response);
|
Page<CfgIndexInfo> searchPage=new Page<CfgIndexInfo>(request,response,"a");
|
||||||
model.addAttribute("urlPrefix","/ntc/iplist");
|
Page<CfgIndexInfo> page = ipCfgService.getIpCfgList(searchPage, cfg);
|
||||||
model.addAttribute("requiresPermissionPrefix","iplist");
|
model.addAttribute("page", page);
|
||||||
return "/cfg/common/ipList";
|
initPageCondition(model,cfg);
|
||||||
|
return "/cfg/ipaddr/ipList";
|
||||||
}
|
}
|
||||||
@RequestMapping(value = {"form"})
|
@RequestMapping(value = {"form"})
|
||||||
@RequiresPermissions(value={"iplist:config"})
|
@RequiresPermissions(value={"iplist:config"})
|
||||||
public String form(String cfgName,Model model,String ids,Integer functionId,BaseIpCfg entity) {
|
public String form(Model model,String ids,CfgIndexInfo entity) {
|
||||||
this._ipForm(cfgName, model, ids, functionId, entity);
|
if(StringUtils.isNotBlank(ids)){
|
||||||
List<SysDataDictionaryItem> specialFunctionIdList = DictUtils.getDictList("SPECIAL_FUNCTION_ID");
|
entity = ipCfgService.getIpPortCfg(Long.parseLong(ids));
|
||||||
String specialFunctionId=null;
|
initUpdateFormCondition(model,entity);
|
||||||
for(SysDataDictionaryItem item:specialFunctionIdList) {
|
}else{
|
||||||
if(Integer.parseInt(item.getItemCode())==entity.getFunctionId().intValue()) {
|
initFormCondition(model,entity);
|
||||||
specialFunctionId= item.getItemValue();
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
model.addAttribute("_cfg", entity);
|
||||||
model.addAttribute("dropAction",Constants.DROP_ACTION);
|
return "/cfg/ipaddr/ipForm";
|
||||||
model.addAttribute("urlPrefix","/ntc/iplist");
|
|
||||||
model.addAttribute("requiresPermissionPrefix","iplist");
|
|
||||||
// if(specialFunctionId!=null && "ipsec".equals(specialFunctionId)) {
|
|
||||||
// return "/cfg/ipsec/ipForm";
|
|
||||||
// }else if(specialFunctionId!=null && "ipaddr".equals(specialFunctionId)) {
|
|
||||||
// return "/cfg/ipaddr/ipForm";
|
|
||||||
// }
|
|
||||||
return "/cfg/common/ipForm";
|
|
||||||
}
|
}
|
||||||
@RequestMapping(value = {"saveOrUpdate"})
|
@RequestMapping(value = {"saveOrUpdate"})
|
||||||
public String saveOrUpdate(String cfgName,RedirectAttributes model, IpPortCfg cfg) {
|
public String saveOrUpdate(RedirectAttributes model,HttpServletRequest request,HttpServletResponse response,String ids,CfgIndexInfo entity) {
|
||||||
this._saveOrUpdateIp(cfgName, model, cfg);
|
ipCfgService.saveIpCfg(entity);
|
||||||
return "redirect:" + adminPath +"/ntc/iplist/list?functionId="+cfg.getFunctionId();
|
return "redirect:" + adminPath +"/ntc/iplist/list?functionId="+entity.getFunctionId();
|
||||||
}
|
}
|
||||||
@RequestMapping(value = {"delete"})
|
@RequestMapping(value = {"ajaxSubList"})
|
||||||
|
public String ajaxIpPortSubList(Model model,Long cfgId,Integer index) {
|
||||||
|
CfgIndexInfo cfg = ipCfgService.getIpPortCfg(cfgId);
|
||||||
|
/*List<FunctionRegionDict> regionList = DictUtils.getFunctionRegionDictList(cfg.getFunctionId());
|
||||||
|
model.addAttribute("regionList", regionList);*/
|
||||||
|
List<String[]> tabList = new ArrayList();
|
||||||
|
if(cfg.getIpPortList()!=null){
|
||||||
|
String cfgType = null;
|
||||||
|
for(IpPortCfg ip:cfg.getIpPortList()){
|
||||||
|
if(!ip.getCfgType().equals(cfgType)){
|
||||||
|
tabList.add(new String[]{"1",ip.getCfgType()});
|
||||||
|
cfgType = ip.getCfgType();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(cfg.getNtcSubscribeIdCfgList()!=null){
|
||||||
|
String cfgType = null;
|
||||||
|
for(NtcSubscribeIdCfg keyword:cfg.getNtcSubscribeIdCfgList()){
|
||||||
|
if(!keyword.getCfgType().equals(cfgType)){
|
||||||
|
tabList.add(new String[]{"2",keyword.getCfgType()});
|
||||||
|
cfgType = keyword.getCfgType();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
model.addAttribute("_cfg", cfg);
|
||||||
|
model.addAttribute("index", index);
|
||||||
|
model.addAttribute("tabList", tabList);
|
||||||
|
return "/cfg/ipaddr/ipSubList";
|
||||||
|
}
|
||||||
|
@RequestMapping(value = {"updateValid"})
|
||||||
@RequiresPermissions("iplist:config")
|
@RequiresPermissions("iplist:config")
|
||||||
public String delete(String cfgName,String ids,String compileIds,Integer functionId,RedirectAttributes model) {
|
public String updateIpPortCfgValid(Integer isValid,String ids,Integer functionId) {
|
||||||
this._deleteIp(cfgName, ids, compileIds, functionId, model);
|
ipCfgService.updateIpCfgValid(isValid, ids, functionId);
|
||||||
model.addAttribute("urlPrefix","/ntc/iplist");
|
|
||||||
model.addAttribute("requiresPermissionPrefix","iplist");
|
|
||||||
return "redirect:" + adminPath +"/ntc/iplist/list?functionId="+functionId;
|
return "redirect:" + adminPath +"/ntc/iplist/list?functionId="+functionId;
|
||||||
}
|
}
|
||||||
|
|
||||||
@RequestMapping(value = {"audit"})
|
@RequestMapping(value = {"audit"})
|
||||||
@RequiresPermissions("iplist:confirm")
|
@RequiresPermissions("iplist:confirm")
|
||||||
public String audit(String cfgName,String ids,IpPortCfg cfg,RedirectAttributes redirectAttributes) {
|
public String audit(Integer isAudit,Integer isValid,String ids,Integer functionId, RedirectAttributes redirectAttributes) {
|
||||||
this._auditIp(cfgName, ids, cfg, redirectAttributes);
|
CfgIndexInfo entity = new CfgIndexInfo();
|
||||||
redirectAttributes.addAttribute("urlPrefix","/ntc/iplist");
|
String[] idArray = ids.split(",");
|
||||||
redirectAttributes.addAttribute("requiresPermissionPrefix","iplist");
|
for(String id :idArray){
|
||||||
return "redirect:" + adminPath +"/ntc/iplist/list?functionId="+cfg.getFunctionId();
|
entity = ipCfgService.getIpPortCfg(Long.parseLong(id));
|
||||||
|
entity.setIsAudit(isAudit);
|
||||||
|
entity.setIsValid(isValid);
|
||||||
|
entity.setAuditorId(UserUtils.getUser().getId());
|
||||||
|
entity.setAuditTime(new Date());
|
||||||
|
entity.setFunctionId(functionId);
|
||||||
|
try {
|
||||||
|
ipCfgService.auditIpCfg(entity,isAudit);
|
||||||
|
} catch (MaatConvertException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
logger.info("ssl配置下发失败:"+e.getMessage());
|
||||||
|
addMessage(redirectAttributes, e.getMessage());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return "redirect:" + adminPath +"/ntc/iplist/list?functionId="+functionId;
|
||||||
}
|
}
|
||||||
//ip配置导入
|
//ip配置导入
|
||||||
@RequestMapping(value = "import", method=RequestMethod.POST)
|
@RequestMapping(value = "import", method=RequestMethod.POST)
|
||||||
|
|||||||
@@ -180,7 +180,7 @@ public class WebsiteController extends BaseController{
|
|||||||
|
|
||||||
@RequestMapping(value = {"saveHttpCfg"})
|
@RequestMapping(value = {"saveHttpCfg"})
|
||||||
@RequiresPermissions(value={"website:http:config"})
|
@RequiresPermissions(value={"website:http:config"})
|
||||||
public String saveHttpCfg(Model model,HttpServletRequest request,HttpServletResponse response,String ids,CfgIndexInfo entity) {
|
public String saveHttpCfg(RedirectAttributes model,HttpServletRequest request,HttpServletResponse response,String ids,CfgIndexInfo entity) {
|
||||||
websiteCfgService.saveHttpCfg(entity);
|
websiteCfgService.saveHttpCfg(entity);
|
||||||
return "redirect:" + adminPath +"/ntc/website/httpList?functionId="+entity.getFunctionId();
|
return "redirect:" + adminPath +"/ntc/website/httpList?functionId="+entity.getFunctionId();
|
||||||
}
|
}
|
||||||
@@ -242,7 +242,7 @@ public class WebsiteController extends BaseController{
|
|||||||
}
|
}
|
||||||
@RequestMapping(value = {"saveSslCfg"})
|
@RequestMapping(value = {"saveSslCfg"})
|
||||||
@RequiresPermissions(value={"website:ssl:config"})
|
@RequiresPermissions(value={"website:ssl:config"})
|
||||||
public String saveSslCfg(Model model,HttpServletRequest request,HttpServletResponse response,String ids,CfgIndexInfo entity) {
|
public String saveSslCfg(RedirectAttributes model,HttpServletRequest request,HttpServletResponse response,String ids,CfgIndexInfo entity) {
|
||||||
websiteCfgService.saveSslCfg(entity);
|
websiteCfgService.saveSslCfg(entity);
|
||||||
return "redirect:" + adminPath +"/ntc/website/sslList?functionId="+entity.getFunctionId();
|
return "redirect:" + adminPath +"/ntc/website/sslList?functionId="+entity.getFunctionId();
|
||||||
}
|
}
|
||||||
@@ -330,7 +330,7 @@ public class WebsiteController extends BaseController{
|
|||||||
}
|
}
|
||||||
@RequestMapping(value = {"saveDnsCfg"})
|
@RequestMapping(value = {"saveDnsCfg"})
|
||||||
@RequiresPermissions(value={"website:dns:config"})
|
@RequiresPermissions(value={"website:dns:config"})
|
||||||
public String saveDnsCfg(Model model,HttpServletRequest request,HttpServletResponse response,String ids,CfgIndexInfo entity) {
|
public String saveDnsCfg(RedirectAttributes model,HttpServletRequest request,HttpServletResponse response,String ids,CfgIndexInfo entity) {
|
||||||
websiteCfgService.saveDnsCfg(entity);
|
websiteCfgService.saveDnsCfg(entity);
|
||||||
return "redirect:" + adminPath +"/ntc/website/dnsList?functionId="+entity.getFunctionId();
|
return "redirect:" + adminPath +"/ntc/website/dnsList?functionId="+entity.getFunctionId();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package com.nis.web.controller.configuration.ntc;
|
package com.nis.web.controller.configuration.ntc;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@@ -8,7 +9,6 @@ import javax.servlet.http.HttpServletResponse;
|
|||||||
|
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||||
import org.springframework.beans.BeanUtils;
|
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.springframework.ui.Model;
|
import org.springframework.ui.Model;
|
||||||
import org.springframework.web.bind.annotation.ModelAttribute;
|
import org.springframework.web.bind.annotation.ModelAttribute;
|
||||||
@@ -19,13 +19,14 @@ import org.springframework.web.multipart.MultipartFile;
|
|||||||
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
|
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
|
||||||
|
|
||||||
import com.nis.domain.Page;
|
import com.nis.domain.Page;
|
||||||
import com.nis.domain.configuration.BaseIpCfg;
|
import com.nis.domain.configuration.BaseStringCfg;
|
||||||
import com.nis.domain.configuration.HttpUrlCfg;
|
import com.nis.domain.configuration.CfgIndexInfo;
|
||||||
import com.nis.domain.configuration.IpPortCfg;
|
import com.nis.domain.configuration.IpPortCfg;
|
||||||
|
import com.nis.domain.configuration.NtcSubscribeIdCfg;
|
||||||
import com.nis.domain.configuration.template.WhiteListIpTemplate;
|
import com.nis.domain.configuration.template.WhiteListIpTemplate;
|
||||||
import com.nis.exceptions.MaatConvertException;
|
import com.nis.exceptions.MaatConvertException;
|
||||||
import com.nis.util.Constants;
|
|
||||||
import com.nis.web.controller.configuration.CommonController;
|
import com.nis.web.controller.configuration.CommonController;
|
||||||
|
import com.nis.web.security.UserUtils;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 白名单
|
* 白名单
|
||||||
@@ -38,121 +39,145 @@ public class WhiteListController extends CommonController{
|
|||||||
|
|
||||||
@RequestMapping(value = {"ip/list"})
|
@RequestMapping(value = {"ip/list"})
|
||||||
//@RequiresPermissions(value={"whitelist:ip:config","whitelist:ip:confirm","whitelist:ip:aduit"},logical=Logical.OR)
|
//@RequiresPermissions(value={"whitelist:ip:config","whitelist:ip:confirm","whitelist:ip:aduit"},logical=Logical.OR)
|
||||||
public String ipList(Model model,@ModelAttribute("cfg")IpPortCfg cfg,HttpServletRequest request,HttpServletResponse response) {
|
public String ipList(Model model,@ModelAttribute("cfg")CfgIndexInfo cfg,HttpServletRequest request,HttpServletResponse response) {
|
||||||
cfg.setTableName(IpPortCfg.getTablename());
|
Page<CfgIndexInfo> searchPage=new Page<CfgIndexInfo>(request,response,"a");
|
||||||
Page<BaseIpCfg> searchPage=new Page<BaseIpCfg>(request,response,"r");
|
Page<CfgIndexInfo> page = ipCfgService.getIpCfgList(searchPage, cfg);
|
||||||
Page<BaseIpCfg> page = ipCfgService.findPage(searchPage, cfg);
|
|
||||||
model.addAttribute("page", page);
|
model.addAttribute("page", page);
|
||||||
initPageCondition(model,cfg);
|
initPageCondition(model,cfg);
|
||||||
return "/cfg/whitelist/ipList";
|
return "/cfg/whitelist/ipList";
|
||||||
}
|
}
|
||||||
|
@RequestMapping(value = {"ajaxIpSubList"})
|
||||||
|
public String ajaxIpSubList(Model model,Long cfgId,Integer index) {
|
||||||
|
CfgIndexInfo cfg = ipCfgService.getIpPortCfg(cfgId);
|
||||||
|
List<String[]> tabList = new ArrayList();
|
||||||
|
if(cfg.getIpPortList()!=null){
|
||||||
|
String cfgType = null;
|
||||||
|
for(IpPortCfg ip:cfg.getIpPortList()){
|
||||||
|
if(!ip.getCfgType().equals(cfgType)){
|
||||||
|
tabList.add(new String[]{"1",ip.getCfgType()});
|
||||||
|
cfgType = ip.getCfgType();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(cfg.getNtcSubscribeIdCfgList()!=null){
|
||||||
|
String cfgType = null;
|
||||||
|
for(NtcSubscribeIdCfg keyword:cfg.getNtcSubscribeIdCfgList()){
|
||||||
|
if(!keyword.getCfgType().equals(cfgType)){
|
||||||
|
tabList.add(new String[]{"2",keyword.getCfgType()});
|
||||||
|
cfgType = keyword.getCfgType();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
model.addAttribute("_cfg", cfg);
|
||||||
|
model.addAttribute("index", index);
|
||||||
|
model.addAttribute("tabList", tabList);
|
||||||
|
return "/cfg/whitelist/ipSubList";
|
||||||
|
}
|
||||||
|
@RequestMapping(value = {"ip/form"})
|
||||||
|
@RequiresPermissions(value={"whitelist:ip:config"})
|
||||||
|
public String ipForm(Model model,String ids,CfgIndexInfo entity) {
|
||||||
|
if(StringUtils.isNotBlank(ids)){
|
||||||
|
|
||||||
|
entity = this.ipCfgService.getIpPortCfg(Long.parseLong(ids));
|
||||||
|
initUpdateFormCondition(model,entity);
|
||||||
|
}else{
|
||||||
|
initFormCondition(model,entity);
|
||||||
|
}
|
||||||
|
model.addAttribute("_cfg", entity);
|
||||||
|
return "/cfg/whitelist/ipForm";
|
||||||
|
}
|
||||||
|
@RequestMapping(value = {"ip/save"})
|
||||||
|
public String saveIpCfg(RedirectAttributes model,HttpServletRequest request,HttpServletResponse response,String ids,CfgIndexInfo entity) {
|
||||||
|
ipCfgService.saveIpCfg(entity);
|
||||||
|
return "redirect:" + adminPath +"/ntc/whitelist/ip/list?functionId="+entity.getFunctionId();
|
||||||
|
}
|
||||||
|
@RequestMapping(value = {"ip/audit"})
|
||||||
|
@RequiresPermissions("whitelist:ip:confirm")
|
||||||
|
public String auditIp(Integer isAudit,Integer isValid,String ids,Integer functionId, RedirectAttributes redirectAttributes) {
|
||||||
|
CfgIndexInfo entity = new CfgIndexInfo();
|
||||||
|
String[] idArray = ids.split(",");
|
||||||
|
for(String id :idArray){
|
||||||
|
entity = ipCfgService.getIpPortCfg(Long.parseLong(id));
|
||||||
|
entity.setIsAudit(isAudit);
|
||||||
|
entity.setIsValid(isValid);
|
||||||
|
entity.setAuditorId(UserUtils.getUser().getId());
|
||||||
|
entity.setAuditTime(new Date());
|
||||||
|
entity.setFunctionId(functionId);
|
||||||
|
try {
|
||||||
|
ipCfgService.auditIpCfg(entity,isAudit);
|
||||||
|
} catch (MaatConvertException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
logger.info("ip配置下发失败:"+e.getMessage());
|
||||||
|
addMessage(redirectAttributes, e.getMessage());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return "redirect:" + adminPath +"/ntc/whitelist/ip/list?functionId="+entity.getFunctionId();
|
||||||
|
}
|
||||||
|
@RequestMapping(value = {"updateIpValid"})
|
||||||
|
@RequiresPermissions(value={"whitelist:ip:config"})
|
||||||
|
public String updateIpCfgValid(Integer isValid,String ids,Integer functionId) {
|
||||||
|
ipCfgService.updateIpCfgValid(isValid,ids,functionId);
|
||||||
|
return "redirect:" + adminPath +"/ntc/whitelist/ip/list?functionId="+functionId;
|
||||||
|
}
|
||||||
@RequestMapping(value = {"domain/list"})
|
@RequestMapping(value = {"domain/list"})
|
||||||
//@RequiresPermissions(value={"whitelist:domain:config","whitelist:domain:confirm","whitelist:domain:aduit"},logical=Logical.OR)
|
//@RequiresPermissions(value={"whitelist:domain:config","whitelist:domain:confirm","whitelist:domain:aduit"},logical=Logical.OR)
|
||||||
public String domainList(Model model,@ModelAttribute("cfg")HttpUrlCfg cfg,HttpServletRequest request,HttpServletResponse response) {
|
public String domainList(Model model,@ModelAttribute("cfg")CfgIndexInfo cfg,HttpServletRequest request,HttpServletResponse response) {
|
||||||
cfg.setTableName(HttpUrlCfg.getTablename());
|
Page<CfgIndexInfo> searchPage=new Page<CfgIndexInfo>(request,response,"a");
|
||||||
Page<HttpUrlCfg> searchPage=new Page<HttpUrlCfg>(request,response,"r");
|
Page<CfgIndexInfo> page = domainService.getDomainList(searchPage, cfg);
|
||||||
Page<HttpUrlCfg> page = domainService.findPage(searchPage, cfg);
|
|
||||||
model.addAttribute("page", page);
|
model.addAttribute("page", page);
|
||||||
initPageCondition(model,cfg);
|
initPageCondition(model,cfg);
|
||||||
return "/cfg/whitelist/domainList";
|
return "/cfg/whitelist/domainList";
|
||||||
}
|
}
|
||||||
@RequestMapping(value = {"ip/form"})
|
|
||||||
@RequiresPermissions(value={"whitelist:ip:config"})
|
|
||||||
public String ipForm(Model model,String ids,BaseIpCfg entity) {
|
|
||||||
if(StringUtils.isNotBlank(ids)){
|
|
||||||
entity = ipCfgService.getIpCfgById(IpPortCfg.getTablename(),Long.parseLong(ids));
|
|
||||||
}
|
|
||||||
initFormCondition(model,entity);
|
|
||||||
if(entity.getCfgId()!=null){
|
|
||||||
model.addAttribute("_cfg", entity);
|
|
||||||
}else{
|
|
||||||
IpPortCfg cfg=new IpPortCfg();
|
|
||||||
cfg.initDefaultValueImpl();
|
|
||||||
cfg.setFunctionId(entity.getFunctionId());
|
|
||||||
cfg.setProtocolId(entity.getProtocolId());
|
|
||||||
model.addAttribute("_cfg", cfg);
|
|
||||||
}
|
|
||||||
|
|
||||||
return "/cfg/whitelist/ipForm";
|
|
||||||
}
|
|
||||||
@RequestMapping(value = {"domain/form"})
|
@RequestMapping(value = {"domain/form"})
|
||||||
@RequiresPermissions(value={"whitelist:domain:config"})
|
@RequiresPermissions(value={"whitelist:domain:config"})
|
||||||
public String domainForm(Model model,String ids,HttpUrlCfg entity) {
|
public String domainForm(Model model,String ids,CfgIndexInfo entity) {
|
||||||
if(StringUtils.isNotBlank(ids)){
|
if(StringUtils.isNotBlank(ids)){
|
||||||
entity = domainService.getStringCfgById(Long.parseLong(ids));
|
entity = domainService.getDomainCfg(Long.parseLong(ids));
|
||||||
}
|
initUpdateFormCondition(model,entity);
|
||||||
initFormCondition(model,entity);
|
|
||||||
if(entity.getCfgId()!=null){
|
|
||||||
model.addAttribute("_cfg", entity);
|
|
||||||
}else{
|
}else{
|
||||||
HttpUrlCfg cfg=new HttpUrlCfg();
|
initFormCondition(model,entity);
|
||||||
cfg.initDefaultValue();
|
|
||||||
cfg.setFunctionId(entity.getFunctionId());
|
|
||||||
model.addAttribute("_cfg", cfg);
|
|
||||||
}
|
}
|
||||||
|
model.addAttribute("_cfg", entity);
|
||||||
return "/cfg/whitelist/domainForm";
|
return "/cfg/whitelist/domainForm";
|
||||||
}
|
}
|
||||||
@RequestMapping(value = {"ip/saveOrUpdate"})
|
@RequestMapping(value = {"domain/save"})
|
||||||
public String saveOrUpdateIp(RedirectAttributes model, IpPortCfg cfg) {
|
public String saveOrUpdateDomain(RedirectAttributes model,HttpServletRequest request,HttpServletResponse response,String ids,CfgIndexInfo entity) {
|
||||||
cfg.setTableName(IpPortCfg.getTablename());
|
domainService.saveDomainCfg(entity);
|
||||||
logger.info("saveOrUpdateIp loaded");
|
return "redirect:" + adminPath +"/ntc/whitelist/domain/list?functionId="+entity.getFunctionId();
|
||||||
try{
|
|
||||||
Date date=new Date();
|
|
||||||
cfg.setIsValid(Constants.VALID_NO);
|
|
||||||
cfg.setIsAudit(Constants.AUDIT_NOT_YET);
|
|
||||||
if(cfg.getCfgId()==null){//新增
|
|
||||||
cfg.setCreatorId(cfg.getCurrentUser().getId());
|
|
||||||
cfg.setCreateTime(date);
|
|
||||||
ipCfgService.addIpCfg(cfg);
|
|
||||||
}else{//修改
|
|
||||||
cfg.setEditorId(cfg.getCurrentUser().getId());
|
|
||||||
cfg.setEditTime(new Date());
|
|
||||||
ipCfgService.updateIpCfg(cfg);
|
|
||||||
}
|
}
|
||||||
addMessage(model,"save_success");
|
@RequestMapping(value = {"domain/ajaxSubList"})
|
||||||
}catch(Exception e){
|
public String ajaxDomainSubList(Model model,Long cfgId,Integer index) {
|
||||||
logger.error("保存失败",e);
|
CfgIndexInfo cfg = domainService.getDomainCfg(cfgId);
|
||||||
addMessage(model,"save_failed");
|
List<String[]> tabList = new ArrayList();
|
||||||
|
if(cfg.getHttpUrlList()!=null){
|
||||||
|
String cfgType = null;
|
||||||
|
for(BaseStringCfg keyword:cfg.getHttpUrlList()){
|
||||||
|
if(!keyword.getCfgType().equals(cfgType)){
|
||||||
|
tabList.add(new String[]{"2",keyword.getCfgType()});
|
||||||
|
cfgType = keyword.getCfgType();
|
||||||
}
|
}
|
||||||
return "redirect:" + adminPath +"/ntc/whitelist/ip/list?functionId="+cfg.getFunctionId();
|
|
||||||
}
|
}
|
||||||
@RequestMapping(value = {"domain/saveOrUpdate"})
|
|
||||||
public String saveOrUpdateDomain(RedirectAttributes model, HttpUrlCfg cfg) {
|
|
||||||
cfg.setTableName(HttpUrlCfg.getTablename());
|
|
||||||
logger.info("saveOrUpdateIp loaded");
|
|
||||||
try{
|
|
||||||
Date date=new Date();
|
|
||||||
cfg.setIsValid(Constants.VALID_NO);
|
|
||||||
cfg.setIsAudit(Constants.AUDIT_NOT_YET);
|
|
||||||
if(cfg.getCfgId()==null){//新增
|
|
||||||
cfg.setCreatorId(cfg.getCurrentUser().getId());
|
|
||||||
cfg.setCreateTime(date);
|
|
||||||
domainService.addStringCfg(cfg);
|
|
||||||
}else{//修改
|
|
||||||
cfg.setEditorId(cfg.getCurrentUser().getId());
|
|
||||||
cfg.setEditTime(new Date());
|
|
||||||
domainService.updateStringCfg(cfg);
|
|
||||||
}
|
}
|
||||||
addMessage(model,"save_success");
|
if(cfg.getNtcSubscribeIdCfgList()!=null){
|
||||||
}catch(Exception e){
|
String cfgType = null;
|
||||||
logger.error("保存失败",e);
|
for(NtcSubscribeIdCfg keyword:cfg.getNtcSubscribeIdCfgList()){
|
||||||
addMessage(model,"save_failed");
|
if(!keyword.getCfgType().equals(cfgType)){
|
||||||
|
tabList.add(new String[]{"2",keyword.getCfgType()});
|
||||||
|
cfgType = keyword.getCfgType();
|
||||||
}
|
}
|
||||||
return "redirect:" + adminPath +"/ntc/whitelist/domain/list?functionId="+cfg.getFunctionId();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@RequestMapping(value = {"ip/delete"})
|
|
||||||
@RequiresPermissions("whitelist:ip:config")
|
|
||||||
public String deleteIp(String ids,Integer functionId,RedirectAttributes model) {
|
|
||||||
try{
|
|
||||||
ipCfgService.deleteIp(ids,null,functionId.intValue());
|
|
||||||
addMessage(model,"delete_success");
|
|
||||||
}catch(Exception e){
|
|
||||||
logger.error("删除失败", e);
|
|
||||||
addMessage(model,"delete_failed");
|
|
||||||
}
|
}
|
||||||
return "redirect:" + adminPath +"/ntc/whitelist/ip/list?functionId="+functionId;
|
model.addAttribute("_cfg", cfg);
|
||||||
|
model.addAttribute("index", index);
|
||||||
|
model.addAttribute("tabList", tabList);
|
||||||
|
return "/cfg/whitelist/domianSubList";
|
||||||
|
}
|
||||||
|
@RequestMapping(value = {"domain/updateValid"})
|
||||||
|
@RequiresPermissions(value={"whitelist:domain:config"})
|
||||||
|
public String updateDomainValid(Integer isValid,String ids,Integer functionId) {
|
||||||
|
domainService.updateDomainCfgValid(isValid,ids,functionId);
|
||||||
|
return "redirect:" + adminPath +"/ntc/whitelist/domain/list?functionId="+functionId;
|
||||||
}
|
}
|
||||||
@RequestMapping(value = {"domain/delete"})
|
@RequestMapping(value = {"domain/delete"})
|
||||||
@RequiresPermissions("whitelist:domain:config")
|
@RequiresPermissions("whitelist:domain:config")
|
||||||
@@ -166,58 +191,28 @@ public class WhiteListController extends CommonController{
|
|||||||
}
|
}
|
||||||
return "redirect:" + adminPath +"/ntc/whitelist/domain/list?functionId="+functionId;
|
return "redirect:" + adminPath +"/ntc/whitelist/domain/list?functionId="+functionId;
|
||||||
}
|
}
|
||||||
@RequestMapping(value = {"ip/audit"})
|
|
||||||
@RequiresPermissions("whitelist:ip:confirm")
|
|
||||||
public String auditIp(String ids,IpPortCfg cfg,RedirectAttributes redirectAttributes) {
|
|
||||||
try{
|
|
||||||
for(String id:ids.split(",")){
|
|
||||||
Long.parseLong(id);
|
|
||||||
}
|
|
||||||
List<BaseIpCfg> beans=ipCfgService.getListByCfgId(IpPortCfg.getTablename(),cfg.getFunctionId().intValue(),ids);
|
|
||||||
Date date=new Date();
|
|
||||||
for(BaseIpCfg bean:beans){
|
|
||||||
bean.setTableName(IpPortCfg.getTablename());
|
|
||||||
bean.setAuditorId(bean.getCurrentUser().getId());
|
|
||||||
bean.setAuditTime(date);
|
|
||||||
bean.setIsAudit(cfg.getIsAudit());
|
|
||||||
bean.setIsValid(cfg.getIsValid());
|
|
||||||
ipCfgService.auditWhiteIp(bean);
|
|
||||||
}
|
|
||||||
addMessage(redirectAttributes,"audit_success");
|
|
||||||
}catch(MaatConvertException e){
|
|
||||||
logger.error("审核失败", e);
|
|
||||||
addMessage(redirectAttributes, e.getMessage());
|
|
||||||
}catch(Exception e){
|
|
||||||
logger.error("审核失败", e);
|
|
||||||
addMessage(redirectAttributes, "audit_failed");
|
|
||||||
}
|
|
||||||
return "redirect:" + adminPath +"/ntc/whitelist/ip/list?functionId="+cfg.getFunctionId();
|
|
||||||
}
|
|
||||||
@RequestMapping(value = {"domain/audit"})
|
@RequestMapping(value = {"domain/audit"})
|
||||||
@RequiresPermissions("whitelist:domain:confirm")
|
@RequiresPermissions("whitelist:domain:confirm")
|
||||||
public String auditDomain(String ids,HttpUrlCfg cfg,RedirectAttributes redirectAttributes) {
|
public String auditDomain(Integer isAudit,Integer isValid,String ids,Integer functionId, RedirectAttributes redirectAttributes) {
|
||||||
try{
|
CfgIndexInfo entity = new CfgIndexInfo();
|
||||||
List<HttpUrlCfg> beans=domainService.getListByCfgId(ids);
|
String[] idArray = ids.split(",");
|
||||||
Date date=new Date();
|
for(String id :idArray){
|
||||||
for(HttpUrlCfg bean:beans){
|
entity = domainService.getDomainCfg(Long.parseLong(id));
|
||||||
HttpUrlCfg domain=new HttpUrlCfg();
|
entity.setIsAudit(isAudit);
|
||||||
BeanUtils.copyProperties(bean, domain);
|
entity.setIsValid(isValid);
|
||||||
domain.setTableName(HttpUrlCfg.getTablename());
|
entity.setAuditorId(UserUtils.getUser().getId());
|
||||||
domain.setAuditorId(bean.getCurrentUser().getId());
|
entity.setAuditTime(new Date());
|
||||||
domain.setAuditTime(date);
|
entity.setFunctionId(functionId);
|
||||||
domain.setIsAudit(cfg.getIsAudit());
|
try {
|
||||||
domain.setIsValid(cfg.getIsValid());
|
domainService.auditDomainCfg(entity,isAudit);
|
||||||
domainService.auditWhiteDomain(domain);
|
} catch (MaatConvertException e) {
|
||||||
}
|
e.printStackTrace();
|
||||||
addMessage(redirectAttributes,"audit_success");
|
logger.info("domain配置下发失败:"+e.getMessage());
|
||||||
}catch(MaatConvertException e){
|
|
||||||
logger.error("审核失败", e);
|
|
||||||
addMessage(redirectAttributes, e.getMessage());
|
addMessage(redirectAttributes, e.getMessage());
|
||||||
}catch(Exception e){
|
|
||||||
logger.error("审核失败", e);
|
|
||||||
addMessage(redirectAttributes, "audit_failed");
|
|
||||||
}
|
}
|
||||||
return "redirect:" + adminPath +"/ntc/whitelist/domain/list?functionId="+cfg.getFunctionId();
|
}
|
||||||
|
return "redirect:" + adminPath +"/ntc/whitelist/domain/list?functionId="+functionId;
|
||||||
}
|
}
|
||||||
//ip配置导入
|
//ip配置导入
|
||||||
@RequestMapping(value = "ip/import", method=RequestMethod.POST)
|
@RequestMapping(value = "ip/import", method=RequestMethod.POST)
|
||||||
|
|||||||
@@ -50,30 +50,46 @@ import net.sf.json.JsonConfig;
|
|||||||
public class NtcPzReportController extends BaseController{
|
public class NtcPzReportController extends BaseController{
|
||||||
@RequestMapping(value="ajaxGetLogTotal",method=RequestMethod.POST)
|
@RequestMapping(value="ajaxGetLogTotal",method=RequestMethod.POST)
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public Map<String, Object> ajaxGetLogTotal(Model model,long endTime,int action,Integer functionId,Integer compileId){
|
public List<Map<String, Object>> ajaxGetLogTotal(Model model,long endTime,String actions,Integer functionId,String compileIds){
|
||||||
Map<String, Object> data=new HashMap<String, Object>();
|
List<Map<String, Object>> dataList=new ArrayList<>();
|
||||||
SimpleDateFormat sdf=new SimpleDateFormat(Constants.SEARCH_DATEFORMAT);
|
SimpleDateFormat sdf=new SimpleDateFormat(Constants.SEARCH_DATEFORMAT);
|
||||||
int interval=Constants.LOG_TIME_RANGE;
|
int interval=Constants.LOG_TIME_RANGE;
|
||||||
Date endDate=new Date(endTime);
|
Date endDate=new Date(endTime);
|
||||||
Date startDate=new Date(endTime-interval);
|
Date startDate=new Date(endTime-interval);
|
||||||
int serviceId=0;
|
String serviceIdsStr="";
|
||||||
|
StringBuffer serviceIds=new StringBuffer();
|
||||||
List<FunctionServiceDict> serviceList=DictUtils.getFunctionServiceDictList(functionId.intValue());
|
List<FunctionServiceDict> serviceList=DictUtils.getFunctionServiceDictList(functionId.intValue());
|
||||||
|
for(String action:actions.split(",")) {
|
||||||
for(FunctionServiceDict service:serviceList){
|
for(FunctionServiceDict service:serviceList){
|
||||||
if(service.getAction().intValue()==action){
|
if(service.getAction().intValue()==Integer.parseInt(action)){
|
||||||
serviceId=service.getServiceId().intValue();
|
serviceIds.append(service.getServiceId().intValue());
|
||||||
break;
|
serviceIds.append(",");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
data.put("compileId", compileId.intValue());
|
}
|
||||||
String json=ConfigServiceUtil.getReport(Constants.BUSINESSTYPE_CONFIG, String.valueOf(compileId), String.valueOf(serviceId), sdf.format(startDate), sdf.format(endDate));
|
if(serviceIds.toString().endsWith(",")) {
|
||||||
|
serviceIdsStr=serviceIds.toString().substring(0,serviceIds.toString().lastIndexOf(","));
|
||||||
|
}
|
||||||
|
String json=ConfigServiceUtil.getReport(Constants.BUSINESSTYPE_CONFIG, compileIds, serviceIdsStr, sdf.format(startDate), sdf.format(endDate));
|
||||||
List<NtcPzReport> list=getList(json);
|
List<NtcPzReport> list=getList(json);
|
||||||
if(list!=null&&list.size()>0){
|
String[] idArr=compileIds.split(",");
|
||||||
data.put("sum",list.get(0).getSum().longValue());
|
if(list!=null&&(list.size()>0)){
|
||||||
|
for(NtcPzReport report:list) {
|
||||||
|
Map<String, Object> data=new HashMap<String, Object>();
|
||||||
|
data.put("compileId", report.getCfgId().longValue());
|
||||||
|
data.put("sum",report.getSum().longValue());
|
||||||
|
dataList.add(data);
|
||||||
|
}
|
||||||
}else {
|
}else {
|
||||||
data.put("sum", 0);
|
for(String id:idArr) {
|
||||||
|
Map<String, Object> data=new HashMap<String, Object>();
|
||||||
|
data.put("compileId", id);
|
||||||
|
data.put("sum",0);
|
||||||
|
dataList.add(data);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return data;
|
return dataList;
|
||||||
}
|
}
|
||||||
@RequestMapping("/ntcPzReport")
|
@RequestMapping("/ntcPzReport")
|
||||||
public String list(@ModelAttribute("bean") SearchReport bean,Model model, HttpServletRequest request, HttpServletResponse response) {
|
public String list(@ModelAttribute("bean") SearchReport bean,Model model, HttpServletRequest request, HttpServletResponse response) {
|
||||||
|
|||||||
@@ -5,10 +5,12 @@ import java.util.ArrayList;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
import java.util.Map.Entry;
|
||||||
|
|
||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
|
||||||
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.springframework.ui.Model;
|
import org.springframework.ui.Model;
|
||||||
import org.springframework.web.bind.annotation.ModelAttribute;
|
import org.springframework.web.bind.annotation.ModelAttribute;
|
||||||
@@ -32,17 +34,13 @@ import net.sf.json.JsonConfig;
|
|||||||
public class NtcServiceReportController extends BaseController {
|
public class NtcServiceReportController extends BaseController {
|
||||||
@RequestMapping("/ajaxNtcServiceReport")
|
@RequestMapping("/ajaxNtcServiceReport")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public Map<String, Long> report(@ModelAttribute("bean") SearchReport bean,Model model, HttpServletRequest request, HttpServletResponse response) {
|
public List<Map<String, Object>> report(@ModelAttribute("bean") SearchReport bean,Model model, HttpServletRequest request, HttpServletResponse response) {
|
||||||
Map<String, Long> datas=new HashMap<>();
|
List<Map<String, Object>> datas=new ArrayList<Map<String, Object>>();
|
||||||
List<FunctionServiceDict> serviceList = DictUtils.getFunctionServiceDictList(bean.getFunctionId());
|
List<FunctionServiceDict> serviceList = DictUtils.getFunctionServiceDictList(bean.getFunctionId());
|
||||||
if(bean.getAction()!=null){
|
|
||||||
for(FunctionServiceDict service:serviceList){
|
|
||||||
if(service.getAction().intValue()==bean.getAction().intValue()){
|
|
||||||
bean.setSearchService(service.getServiceId().toString());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}else{
|
|
||||||
StringBuffer serviceId=new StringBuffer();
|
StringBuffer serviceId=new StringBuffer();
|
||||||
|
if(StringUtils.isNotBlank(bean.getServices())){
|
||||||
|
serviceId.append(bean.getServices());
|
||||||
|
}else{
|
||||||
for(int i=0;i<serviceList.size();i++){
|
for(int i=0;i<serviceList.size();i++){
|
||||||
if(i==0){
|
if(i==0){
|
||||||
serviceId.append(serviceList.get(i).getServiceId().toString());
|
serviceId.append(serviceList.get(i).getServiceId().toString());
|
||||||
@@ -50,8 +48,8 @@ public class NtcServiceReportController extends BaseController {
|
|||||||
serviceId.append(","+serviceList.get(i).getServiceId().toString());
|
serviceId.append(","+serviceList.get(i).getServiceId().toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
bean.setSearchService(serviceId.toString());
|
|
||||||
}
|
}
|
||||||
|
bean.setSearchService(serviceId.toString());
|
||||||
bean.setSearchBusinessType("1");
|
bean.setSearchBusinessType("1");
|
||||||
bean.setPageSize(-1);
|
bean.setPageSize(-1);
|
||||||
try {
|
try {
|
||||||
@@ -64,13 +62,20 @@ public class NtcServiceReportController extends BaseController {
|
|||||||
try {
|
try {
|
||||||
String json=ConfigServiceUtil.getReport(url.toString(), bean);
|
String json=ConfigServiceUtil.getReport(url.toString(), bean);
|
||||||
List<NtcServiceReport> data=getList(json);
|
List<NtcServiceReport> data=getList(json);
|
||||||
|
Map<Integer, Long> dataMap=new HashMap<>();
|
||||||
for(NtcServiceReport report:data){
|
for(NtcServiceReport report:data){
|
||||||
if(datas.containsKey(report.getService().toString())){
|
if(dataMap.containsKey(report.getService())){
|
||||||
datas.put(report.getService().toString(), datas.get(report.getService().toString())+report.getSum().longValue());
|
dataMap.put(report.getService(), dataMap.get(report.getService())+report.getSum().longValue());
|
||||||
}else{
|
}else{
|
||||||
datas.put(report.getService().toString(),report.getSum().longValue());
|
dataMap.put(report.getService(),report.getSum().longValue());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
for(Entry<Integer, Long> e:dataMap.entrySet()) {
|
||||||
|
Map<String, Object> _data=new HashMap<>();
|
||||||
|
_data.put("service", e.getKey());
|
||||||
|
_data.put("sum", e.getValue());
|
||||||
|
datas.add(_data);
|
||||||
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
// TODO Auto-generated catch block
|
// TODO Auto-generated catch block
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
|||||||
@@ -93,4 +93,5 @@ public interface AppCfgDao {
|
|||||||
public void auditCfg(BaseCfg entity);
|
public void auditCfg(BaseCfg entity);
|
||||||
//修改配置状态
|
//修改配置状态
|
||||||
public void updateCfgValid(BaseCfg entity);
|
public void updateCfgValid(BaseCfg entity);
|
||||||
|
public void deleteSubscribeIdCfg(AppPolicyCfg entity);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
<result column="match_method" property="matchMethod" jdbcType="INTEGER" />
|
<result column="match_method" property="matchMethod" jdbcType="INTEGER" />
|
||||||
<result column="is_hexbin" property="isHexbin" jdbcType="INTEGER" />
|
<result column="is_hexbin" property="isHexbin" jdbcType="INTEGER" />
|
||||||
<result column="area_effective_ids" property="areaEffectiveIds" jdbcType="VARCHAR" />
|
<result column="area_effective_ids" property="areaEffectiveIds" jdbcType="VARCHAR" />
|
||||||
<result column="ratelimit" property="ratelimit" jdbcType="INTEGER" />
|
<result column="ratelimit" property="ratelimit" jdbcType="VARCHAR" />
|
||||||
<result column="function_id" property="functionId" jdbcType="INTEGER" />
|
<result column="function_id" property="functionId" jdbcType="INTEGER" />
|
||||||
<result column="user_region1" property="userRegion1" jdbcType="VARCHAR" />
|
<result column="user_region1" property="userRegion1" jdbcType="VARCHAR" />
|
||||||
<result column="user_region2" property="userRegion2" jdbcType="VARCHAR" />
|
<result column="user_region2" property="userRegion2" jdbcType="VARCHAR" />
|
||||||
@@ -69,7 +69,7 @@
|
|||||||
<result column="attribute" property="attribute" jdbcType="VARCHAR" />
|
<result column="attribute" property="attribute" jdbcType="VARCHAR" />
|
||||||
<result column="lable" property="lable" jdbcType="VARCHAR" />
|
<result column="lable" property="lable" jdbcType="VARCHAR" />
|
||||||
<result column="area_effective_ids" property="areaEffectiveIds" jdbcType="VARCHAR" />
|
<result column="area_effective_ids" property="areaEffectiveIds" jdbcType="VARCHAR" />
|
||||||
<result column="ratelimit" property="ratelimit" jdbcType="INTEGER" />
|
<result column="ratelimit" property="ratelimit" jdbcType="VARCHAR" />
|
||||||
<result column="function_id" property="functionId" jdbcType="INTEGER" />
|
<result column="function_id" property="functionId" jdbcType="INTEGER" />
|
||||||
<result column="do_log" property="doLog" jdbcType="INTEGER" />
|
<result column="do_log" property="doLog" jdbcType="INTEGER" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
@@ -102,7 +102,7 @@
|
|||||||
<result column="match_method" property="matchMethod" jdbcType="INTEGER" />
|
<result column="match_method" property="matchMethod" jdbcType="INTEGER" />
|
||||||
<result column="is_hexbin" property="isHexbin" jdbcType="INTEGER" />
|
<result column="is_hexbin" property="isHexbin" jdbcType="INTEGER" />
|
||||||
<result column="area_effective_ids" property="areaEffectiveIds" jdbcType="VARCHAR" />
|
<result column="area_effective_ids" property="areaEffectiveIds" jdbcType="VARCHAR" />
|
||||||
<result column="ratelimit" property="ratelimit" jdbcType="INTEGER" />
|
<result column="ratelimit" property="ratelimit" jdbcType="VARCHAR" />
|
||||||
<result column="function_id" property="functionId" jdbcType="INTEGER" />
|
<result column="function_id" property="functionId" jdbcType="INTEGER" />
|
||||||
<result column="do_log" property="doLog" jdbcType="INTEGER" />
|
<result column="do_log" property="doLog" jdbcType="INTEGER" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
@@ -133,7 +133,7 @@
|
|||||||
<result column="match_method" property="matchMethod" jdbcType="INTEGER" />
|
<result column="match_method" property="matchMethod" jdbcType="INTEGER" />
|
||||||
<result column="is_hexbin" property="isHexbin" jdbcType="INTEGER" />
|
<result column="is_hexbin" property="isHexbin" jdbcType="INTEGER" />
|
||||||
<result column="area_effective_ids" property="areaEffectiveIds" jdbcType="VARCHAR" />
|
<result column="area_effective_ids" property="areaEffectiveIds" jdbcType="VARCHAR" />
|
||||||
<result column="ratelimit" property="ratelimit" jdbcType="INTEGER" />
|
<result column="ratelimit" property="ratelimit" jdbcType="VARCHAR" />
|
||||||
<result column="function_id" property="functionId" jdbcType="INTEGER" />
|
<result column="function_id" property="functionId" jdbcType="INTEGER" />
|
||||||
<result column="do_log" property="doLog" jdbcType="INTEGER" />
|
<result column="do_log" property="doLog" jdbcType="INTEGER" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
@@ -164,7 +164,7 @@
|
|||||||
<result column="match_method" property="matchMethod" jdbcType="INTEGER" />
|
<result column="match_method" property="matchMethod" jdbcType="INTEGER" />
|
||||||
<result column="is_hexbin" property="isHexbin" jdbcType="INTEGER" />
|
<result column="is_hexbin" property="isHexbin" jdbcType="INTEGER" />
|
||||||
<result column="area_effective_ids" property="areaEffectiveIds" jdbcType="VARCHAR" />
|
<result column="area_effective_ids" property="areaEffectiveIds" jdbcType="VARCHAR" />
|
||||||
<result column="ratelimit" property="ratelimit" jdbcType="INTEGER" />
|
<result column="ratelimit" property="ratelimit" jdbcType="VARCHAR" />
|
||||||
<result column="function_id" property="functionId" jdbcType="INTEGER" />
|
<result column="function_id" property="functionId" jdbcType="INTEGER" />
|
||||||
<result column="do_log" property="doLog" jdbcType="INTEGER" />
|
<result column="do_log" property="doLog" jdbcType="INTEGER" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
@@ -195,7 +195,7 @@
|
|||||||
<result column="match_method" property="matchMethod" jdbcType="INTEGER" />
|
<result column="match_method" property="matchMethod" jdbcType="INTEGER" />
|
||||||
<result column="is_hexbin" property="isHexbin" jdbcType="INTEGER" />
|
<result column="is_hexbin" property="isHexbin" jdbcType="INTEGER" />
|
||||||
<result column="area_effective_ids" property="areaEffectiveIds" jdbcType="VARCHAR" />
|
<result column="area_effective_ids" property="areaEffectiveIds" jdbcType="VARCHAR" />
|
||||||
<result column="ratelimit" property="ratelimit" jdbcType="INTEGER" />
|
<result column="ratelimit" property="ratelimit" jdbcType="VARCHAR" />
|
||||||
<result column="function_id" property="functionId" jdbcType="INTEGER" />
|
<result column="function_id" property="functionId" jdbcType="INTEGER" />
|
||||||
<result column="do_log" property="doLog" jdbcType="INTEGER" />
|
<result column="do_log" property="doLog" jdbcType="INTEGER" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
@@ -226,7 +226,7 @@
|
|||||||
<result column="match_method" property="matchMethod" jdbcType="INTEGER" />
|
<result column="match_method" property="matchMethod" jdbcType="INTEGER" />
|
||||||
<result column="is_hexbin" property="isHexbin" jdbcType="INTEGER" />
|
<result column="is_hexbin" property="isHexbin" jdbcType="INTEGER" />
|
||||||
<result column="area_effective_ids" property="areaEffectiveIds" jdbcType="VARCHAR" />
|
<result column="area_effective_ids" property="areaEffectiveIds" jdbcType="VARCHAR" />
|
||||||
<result column="ratelimit" property="ratelimit" jdbcType="INTEGER" />
|
<result column="ratelimit" property="ratelimit" jdbcType="VARCHAR" />
|
||||||
<result column="function_id" property="functionId" jdbcType="INTEGER" />
|
<result column="function_id" property="functionId" jdbcType="INTEGER" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
@@ -292,7 +292,7 @@
|
|||||||
<result column="match_method" property="matchMethod" jdbcType="INTEGER" />
|
<result column="match_method" property="matchMethod" jdbcType="INTEGER" />
|
||||||
<result column="is_hexbin" property="isHexbin" jdbcType="INTEGER" />
|
<result column="is_hexbin" property="isHexbin" jdbcType="INTEGER" />
|
||||||
<result column="area_effective_ids" property="areaEffectiveIds" jdbcType="VARCHAR" />
|
<result column="area_effective_ids" property="areaEffectiveIds" jdbcType="VARCHAR" />
|
||||||
<result column="ratelimit" property="ratelimit" jdbcType="INTEGER" />
|
<result column="ratelimit" property="ratelimit" jdbcType="VARCHAR" />
|
||||||
<result column="function_id" property="functionId" jdbcType="INTEGER" />
|
<result column="function_id" property="functionId" jdbcType="INTEGER" />
|
||||||
<result column="do_log" property="doLog" jdbcType="INTEGER" />
|
<result column="do_log" property="doLog" jdbcType="INTEGER" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
@@ -324,7 +324,7 @@
|
|||||||
<result column="match_method" property="matchMethod" jdbcType="INTEGER" />
|
<result column="match_method" property="matchMethod" jdbcType="INTEGER" />
|
||||||
<result column="is_hexbin" property="isHexbin" jdbcType="INTEGER" />
|
<result column="is_hexbin" property="isHexbin" jdbcType="INTEGER" />
|
||||||
<result column="area_effective_ids" property="areaEffectiveIds" jdbcType="VARCHAR" />
|
<result column="area_effective_ids" property="areaEffectiveIds" jdbcType="VARCHAR" />
|
||||||
<result column="ratelimit" property="ratelimit" jdbcType="INTEGER" />
|
<result column="ratelimit" property="ratelimit" jdbcType="VARCHAR" />
|
||||||
<result column="function_id" property="functionId" jdbcType="INTEGER" />
|
<result column="function_id" property="functionId" jdbcType="INTEGER" />
|
||||||
<result column="do_log" property="doLog" jdbcType="INTEGER" />
|
<result column="do_log" property="doLog" jdbcType="INTEGER" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
@@ -352,11 +352,8 @@
|
|||||||
<result column="classify" property="classify" jdbcType="VARCHAR" />
|
<result column="classify" property="classify" jdbcType="VARCHAR" />
|
||||||
<result column="attribute" property="attribute" jdbcType="VARCHAR" />
|
<result column="attribute" property="attribute" jdbcType="VARCHAR" />
|
||||||
<result column="lable" property="lable" 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="area_effective_ids" property="areaEffectiveIds" jdbcType="VARCHAR" />
|
||||||
<result column="ratelimit" property="ratelimit" jdbcType="INTEGER" />
|
<result column="ratelimit" property="ratelimit" jdbcType="VARCHAR" />
|
||||||
<result column="function_id" property="functionId" jdbcType="INTEGER" />
|
<result column="function_id" property="functionId" jdbcType="INTEGER" />
|
||||||
<result column="do_log" property="doLog" jdbcType="INTEGER" />
|
<result column="do_log" property="doLog" jdbcType="INTEGER" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
@@ -366,7 +363,7 @@
|
|||||||
r.CREATOR_ID,r.CREATE_TIME,r.EDITOR_ID,r.EDIT_TIME,r.AUDITOR_ID,r.AUDIT_TIME,
|
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.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.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
|
r.low_boundary,r.up_boundary as upBoundary,r.do_log
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
|
|
||||||
@@ -435,7 +432,7 @@
|
|||||||
#{auditorId,jdbcType=INTEGER},#{auditTime,jdbcType=TIMESTAMP},#{serviceId,jdbcType=INTEGER},
|
#{auditorId,jdbcType=INTEGER},#{auditTime,jdbcType=TIMESTAMP},#{serviceId,jdbcType=INTEGER},
|
||||||
#{requestId,jdbcType=INTEGER},#{compileId,jdbcType=INTEGER},#{isAreaEffective,jdbcType=INTEGER},
|
#{requestId,jdbcType=INTEGER},#{compileId,jdbcType=INTEGER},#{isAreaEffective,jdbcType=INTEGER},
|
||||||
#{classify,jdbcType=VARCHAR},#{attribute,jdbcType=VARCHAR},#{lable,jdbcType=VARCHAR},
|
#{classify,jdbcType=VARCHAR},#{attribute,jdbcType=VARCHAR},#{lable,jdbcType=VARCHAR},
|
||||||
#{areaEffectiveIds,jdbcType=VARCHAR},#{ratelimit,jdbcType=INTEGER},#{functionId,jdbcType=INTEGER},
|
#{areaEffectiveIds,jdbcType=VARCHAR},#{ratelimit,jdbcType=VARCHAR},#{functionId,jdbcType=INTEGER},
|
||||||
#{cfgType,jdbcType=VARCHAR},#{cfgRegionCode,jdbcType=INTEGER}
|
#{cfgType,jdbcType=VARCHAR},#{cfgRegionCode,jdbcType=INTEGER}
|
||||||
</sql>
|
</sql>
|
||||||
<sql id="AppTopicCommonCfg_Value_List" >
|
<sql id="AppTopicCommonCfg_Value_List" >
|
||||||
@@ -446,7 +443,7 @@
|
|||||||
#{auditorId,jdbcType=INTEGER},#{auditTime,jdbcType=TIMESTAMP},#{serviceId,jdbcType=INTEGER},
|
#{auditorId,jdbcType=INTEGER},#{auditTime,jdbcType=TIMESTAMP},#{serviceId,jdbcType=INTEGER},
|
||||||
#{requestId,jdbcType=INTEGER},#{compileId,jdbcType=INTEGER},#{isAreaEffective,jdbcType=INTEGER},
|
#{requestId,jdbcType=INTEGER},#{compileId,jdbcType=INTEGER},#{isAreaEffective,jdbcType=INTEGER},
|
||||||
#{classify,jdbcType=VARCHAR},#{attribute,jdbcType=VARCHAR},#{lable,jdbcType=VARCHAR},
|
#{classify,jdbcType=VARCHAR},#{attribute,jdbcType=VARCHAR},#{lable,jdbcType=VARCHAR},
|
||||||
#{areaEffectiveIds,jdbcType=VARCHAR},#{ratelimit,jdbcType=INTEGER},#{functionId,jdbcType=INTEGER},
|
#{areaEffectiveIds,jdbcType=VARCHAR},#{ratelimit,jdbcType=VARCHAR},#{functionId,jdbcType=INTEGER},
|
||||||
#{cfgType,jdbcType=VARCHAR},#{cfgRegionCode,jdbcType=INTEGER}
|
#{cfgType,jdbcType=VARCHAR},#{cfgRegionCode,jdbcType=INTEGER}
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
@@ -1650,11 +1647,11 @@
|
|||||||
CREATOR_ID,CREATE_TIME,EDITOR_ID,EDIT_TIME,AUDITOR_ID,AUDIT_TIME,
|
CREATOR_ID,CREATE_TIME,EDITOR_ID,EDIT_TIME,AUDITOR_ID,AUDIT_TIME,
|
||||||
SERVICE_ID,REQUEST_ID,COMPILE_ID,IS_AREA_EFFECTIVE,CLASSIFY,
|
SERVICE_ID,REQUEST_ID,COMPILE_ID,IS_AREA_EFFECTIVE,CLASSIFY,
|
||||||
ATTRIBUTE,LABLE,AREA_EFFECTIVE_IDS,RATELIMIT,FUNCTION_ID,CFG_TYPE,CFG_REGION_CODE,
|
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
|
low_boundary,up_boundary,DO_LOG
|
||||||
)values (
|
)values (
|
||||||
<include refid="AppCommonCfg_Value_List" />,
|
<include refid="AppCommonCfg_Value_List" />,
|
||||||
#{lowBoundary,jdbcType=INTEGER},#{upBoundary,jdbcType=INTEGER},
|
#{lowBoundary,jdbcType=INTEGER},#{upBoundary,jdbcType=INTEGER},
|
||||||
#{exprType,jdbcType=INTEGER},#{matchMethod,jdbcType=INTEGER},#{isHexbin,jdbcType=INTEGER},#{doLog,jdbcType=INTEGER}
|
#{doLog,jdbcType=INTEGER}
|
||||||
)
|
)
|
||||||
</insert>
|
</insert>
|
||||||
<insert id="insertAppPolicyCfg" parameterType="com.nis.domain.configuration.AppPolicyCfg" >
|
<insert id="insertAppPolicyCfg" parameterType="com.nis.domain.configuration.AppPolicyCfg" >
|
||||||
@@ -1951,7 +1948,7 @@
|
|||||||
function_id = #{functionId,jdbcType=INTEGER},
|
function_id = #{functionId,jdbcType=INTEGER},
|
||||||
<!-- </if>
|
<!-- </if>
|
||||||
<if test="ratelimit != null"> -->
|
<if test="ratelimit != null"> -->
|
||||||
RATELIMIT=#{ratelimit,jdbcType=INTEGER},
|
RATELIMIT=#{ratelimit,jdbcType=VARCHAR},
|
||||||
<!-- </if>
|
<!-- </if>
|
||||||
<if test="cfgRegionCode != null"> -->
|
<if test="cfgRegionCode != null"> -->
|
||||||
CFG_REGION_CODE=#{cfgRegionCode,jdbcType=INTEGER},
|
CFG_REGION_CODE=#{cfgRegionCode,jdbcType=INTEGER},
|
||||||
@@ -2060,7 +2057,7 @@
|
|||||||
function_id = #{functionId,jdbcType=INTEGER},
|
function_id = #{functionId,jdbcType=INTEGER},
|
||||||
</if>
|
</if>
|
||||||
<if test="ratelimit != null">
|
<if test="ratelimit != null">
|
||||||
RATELIMIT=#{ratelimit,jdbcType=INTEGER},
|
RATELIMIT=#{ratelimit,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
<if test="cfgRegionCode != null">
|
<if test="cfgRegionCode != null">
|
||||||
CFG_REGION_CODE=#{cfgRegionCode,jdbcType=INTEGER},
|
CFG_REGION_CODE=#{cfgRegionCode,jdbcType=INTEGER},
|
||||||
@@ -2173,7 +2170,7 @@
|
|||||||
function_id = #{functionId,jdbcType=INTEGER},
|
function_id = #{functionId,jdbcType=INTEGER},
|
||||||
</if>
|
</if>
|
||||||
<if test="ratelimit != null">
|
<if test="ratelimit != null">
|
||||||
RATELIMIT=#{ratelimit,jdbcType=INTEGER},
|
RATELIMIT=#{ratelimit,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
<if test="cfgRegionCode != null">
|
<if test="cfgRegionCode != null">
|
||||||
CFG_REGION_CODE=#{cfgRegionCode,jdbcType=INTEGER},
|
CFG_REGION_CODE=#{cfgRegionCode,jdbcType=INTEGER},
|
||||||
@@ -2274,7 +2271,7 @@
|
|||||||
function_id = #{functionId,jdbcType=INTEGER},
|
function_id = #{functionId,jdbcType=INTEGER},
|
||||||
</if>
|
</if>
|
||||||
<if test="ratelimit != null">
|
<if test="ratelimit != null">
|
||||||
RATELIMIT=#{ratelimit,jdbcType=INTEGER},
|
RATELIMIT=#{ratelimit,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
<if test="cfgRegionCode != null">
|
<if test="cfgRegionCode != null">
|
||||||
CFG_REGION_CODE=#{cfgRegionCode,jdbcType=INTEGER},
|
CFG_REGION_CODE=#{cfgRegionCode,jdbcType=INTEGER},
|
||||||
@@ -2373,7 +2370,7 @@
|
|||||||
function_id = #{functionId,jdbcType=INTEGER},
|
function_id = #{functionId,jdbcType=INTEGER},
|
||||||
</if>
|
</if>
|
||||||
<if test="ratelimit != null">
|
<if test="ratelimit != null">
|
||||||
RATELIMIT=#{ratelimit,jdbcType=INTEGER},
|
RATELIMIT=#{ratelimit,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
<if test="cfgRegionCode != null">
|
<if test="cfgRegionCode != null">
|
||||||
CFG_REGION_CODE=#{cfgRegionCode,jdbcType=INTEGER},
|
CFG_REGION_CODE=#{cfgRegionCode,jdbcType=INTEGER},
|
||||||
@@ -2472,7 +2469,7 @@
|
|||||||
function_id = #{functionId,jdbcType=INTEGER},
|
function_id = #{functionId,jdbcType=INTEGER},
|
||||||
</if>
|
</if>
|
||||||
<if test="ratelimit != null">
|
<if test="ratelimit != null">
|
||||||
RATELIMIT=#{ratelimit,jdbcType=INTEGER},
|
RATELIMIT=#{ratelimit,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
<if test="cfgRegionCode != null">
|
<if test="cfgRegionCode != null">
|
||||||
CFG_REGION_CODE=#{cfgRegionCode,jdbcType=INTEGER},
|
CFG_REGION_CODE=#{cfgRegionCode,jdbcType=INTEGER},
|
||||||
@@ -2584,7 +2581,7 @@
|
|||||||
function_id = #{functionId,jdbcType=INTEGER},
|
function_id = #{functionId,jdbcType=INTEGER},
|
||||||
</if>
|
</if>
|
||||||
<if test="ratelimit != null">
|
<if test="ratelimit != null">
|
||||||
RATELIMIT=#{ratelimit,jdbcType=INTEGER},
|
RATELIMIT=#{ratelimit,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
<if test="cfgRegionCode != null">
|
<if test="cfgRegionCode != null">
|
||||||
CFG_REGION_CODE=#{cfgRegionCode,jdbcType=INTEGER},
|
CFG_REGION_CODE=#{cfgRegionCode,jdbcType=INTEGER},
|
||||||
@@ -2685,7 +2682,7 @@
|
|||||||
function_id = #{functionId,jdbcType=INTEGER},
|
function_id = #{functionId,jdbcType=INTEGER},
|
||||||
</if>
|
</if>
|
||||||
<if test="ratelimit != null">
|
<if test="ratelimit != null">
|
||||||
RATELIMIT=#{ratelimit,jdbcType=INTEGER},
|
RATELIMIT=#{ratelimit,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
<if test="cfgRegionCode != null">
|
<if test="cfgRegionCode != null">
|
||||||
CFG_REGION_CODE=#{cfgRegionCode,jdbcType=INTEGER},
|
CFG_REGION_CODE=#{cfgRegionCode,jdbcType=INTEGER},
|
||||||
@@ -2806,7 +2803,7 @@
|
|||||||
function_id = #{functionId,jdbcType=INTEGER},
|
function_id = #{functionId,jdbcType=INTEGER},
|
||||||
</if>
|
</if>
|
||||||
<if test="ratelimit != null">
|
<if test="ratelimit != null">
|
||||||
RATELIMIT=#{ratelimit,jdbcType=INTEGER},
|
RATELIMIT=#{ratelimit,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
<if test="cfgRegionCode != null">
|
<if test="cfgRegionCode != null">
|
||||||
CFG_REGION_CODE=#{cfgRegionCode,jdbcType=INTEGER},
|
CFG_REGION_CODE=#{cfgRegionCode,jdbcType=INTEGER},
|
||||||
@@ -2819,15 +2816,6 @@
|
|||||||
</if>
|
</if>
|
||||||
<if test="upBoundary != null and upBoundary != ''">
|
<if test="upBoundary != null and upBoundary != ''">
|
||||||
up_boundary=#{upBoundary,jdbcType=INTEGER},
|
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>
|
||||||
<if test="doLog != null">
|
<if test="doLog != null">
|
||||||
do_log=#{doLog,jdbcType=INTEGER},
|
do_log=#{doLog,jdbcType=INTEGER},
|
||||||
@@ -2840,6 +2828,10 @@
|
|||||||
<!-- 删除APP策略IP子配置 -->
|
<!-- 删除APP策略IP子配置 -->
|
||||||
<delete id="deleteAppPolicyIpCfg" >
|
<delete id="deleteAppPolicyIpCfg" >
|
||||||
delete from ip_port_cfg where compile_id=#{compileId} and function_id=#{functionId}
|
delete from ip_port_cfg where compile_id=#{compileId} and function_id=#{functionId}
|
||||||
|
</delete>
|
||||||
|
<!-- 删除SubscribeId子配置 -->
|
||||||
|
<delete id="deleteSubscribeIdCfg" >
|
||||||
|
delete from ntc_subscribe_id_cfg where compile_id=#{compileId} and function_id=#{functionId}
|
||||||
</delete>
|
</delete>
|
||||||
<!-- 查询APP策略IP子配置 -->
|
<!-- 查询APP策略IP子配置 -->
|
||||||
<select id="getAppPolicyIpList" resultMap="ipPortMap" parameterType="com.nis.domain.configuration.CfgIndexInfo">
|
<select id="getAppPolicyIpList" resultMap="ipPortMap" parameterType="com.nis.domain.configuration.CfgIndexInfo">
|
||||||
|
|||||||
@@ -64,6 +64,7 @@
|
|||||||
<result column="creator_name" property="creatorName" jdbcType="VARCHAR" />
|
<result column="creator_name" property="creatorName" jdbcType="VARCHAR" />
|
||||||
<result column="auditor_name" property="auditorName" jdbcType="VARCHAR" />
|
<result column="auditor_name" property="auditorName" jdbcType="VARCHAR" />
|
||||||
<result column="editor_name" property="editorName" jdbcType="VARCHAR" />
|
<result column="editor_name" property="editorName" jdbcType="VARCHAR" />
|
||||||
|
<result column="do_log" property="doLog" jdbcType="INTEGER" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
<sql id="AvFileSample_Column" >
|
<sql id="AvFileSample_Column" >
|
||||||
a.CFG_ID, a.SRC_URL,a.SAMPLE_URL, a.SRC_MD5,a.SAMPLE_MD5,a.CFG_DESC,a.ACTION,a.IS_VALID,a.IS_AUDIT,
|
a.CFG_ID, a.SRC_URL,a.SAMPLE_URL, a.SRC_MD5,a.SAMPLE_MD5,a.CFG_DESC,a.ACTION,a.IS_VALID,a.IS_AUDIT,
|
||||||
@@ -77,7 +78,7 @@
|
|||||||
a.CFG_ID, a.description,a.CFG_DESC,a.ACTION,a.IS_VALID,a.IS_AUDIT,
|
a.CFG_ID, a.description,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.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.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_type,a.cfg_region_code,a.LEVEL
|
a.ATTRIBUTE,a.LABLE,a.AREA_EFFECTIVE_IDS,a.function_id,a.cfg_type,a.cfg_region_code,a.LEVEL,a.do_log
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="getAvFileSampleById" resultMap="AvFileSampleMap" parameterType="java.lang.Long" >
|
<select id="getAvFileSampleById" resultMap="AvFileSampleMap" parameterType="java.lang.Long" >
|
||||||
@@ -321,7 +322,7 @@
|
|||||||
description,LEVEL,CFG_DESC,ACTION,IS_VALID,IS_AUDIT,
|
description,LEVEL,CFG_DESC,ACTION,IS_VALID,IS_AUDIT,
|
||||||
CREATOR_ID,CREATE_TIME,EDITOR_ID,EDIT_TIME,AUDITOR_ID,AUDIT_TIME,
|
CREATOR_ID,CREATE_TIME,EDITOR_ID,EDIT_TIME,AUDITOR_ID,AUDIT_TIME,
|
||||||
SERVICE_ID,REQUEST_ID,COMPILE_ID,IS_AREA_EFFECTIVE,CLASSIFY,
|
SERVICE_ID,REQUEST_ID,COMPILE_ID,IS_AREA_EFFECTIVE,CLASSIFY,
|
||||||
ATTRIBUTE,LABLE,AREA_EFFECTIVE_IDS,function_id,cfg_type,cfg_region_code
|
ATTRIBUTE,LABLE,AREA_EFFECTIVE_IDS,function_id,cfg_type,cfg_region_code,do_log
|
||||||
)values (
|
)values (
|
||||||
#{description,jdbcType=VARCHAR},#{level,jdbcType=INTEGER},#{cfgDesc,jdbcType=VARCHAR},#{action,jdbcType=INTEGER},
|
#{description,jdbcType=VARCHAR},#{level,jdbcType=INTEGER},#{cfgDesc,jdbcType=VARCHAR},#{action,jdbcType=INTEGER},
|
||||||
0,0,#{creatorId,jdbcType=INTEGER},
|
0,0,#{creatorId,jdbcType=INTEGER},
|
||||||
@@ -330,7 +331,8 @@
|
|||||||
#{requestId,jdbcType=INTEGER},#{compileId,jdbcType=INTEGER},#{isAreaEffective,jdbcType=INTEGER},
|
#{requestId,jdbcType=INTEGER},#{compileId,jdbcType=INTEGER},#{isAreaEffective,jdbcType=INTEGER},
|
||||||
#{classify,jdbcType=VARCHAR},#{attribute,jdbcType=VARCHAR},#{lable,jdbcType=VARCHAR},
|
#{classify,jdbcType=VARCHAR},#{attribute,jdbcType=VARCHAR},#{lable,jdbcType=VARCHAR},
|
||||||
#{areaEffectiveIds,jdbcType=VARCHAR},#{functionId,jdbcType=INTEGER},
|
#{areaEffectiveIds,jdbcType=VARCHAR},#{functionId,jdbcType=INTEGER},
|
||||||
#{cfgType,jdbcType=VARCHAR},#{cfgRegionCode,jdbcType=INTEGER}
|
#{cfgType,jdbcType=VARCHAR},#{cfgRegionCode,jdbcType=INTEGER},
|
||||||
|
#{doLog,jdbcType=INTEGER}
|
||||||
)
|
)
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
@@ -481,6 +483,9 @@
|
|||||||
<if test="level != null" >
|
<if test="level != null" >
|
||||||
level = #{level,jdbcType=INTEGER},
|
level = #{level,jdbcType=INTEGER},
|
||||||
</if>
|
</if>
|
||||||
|
<if test="doLog != null" >
|
||||||
|
do_log = #{doLog,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
</trim>
|
</trim>
|
||||||
</set>
|
</set>
|
||||||
where cfg_id = #{cfgId,jdbcType=BIGINT}
|
where cfg_id = #{cfgId,jdbcType=BIGINT}
|
||||||
|
|||||||
@@ -122,6 +122,7 @@
|
|||||||
<result column="function_id" property="functionId" jdbcType="INTEGER" />
|
<result column="function_id" property="functionId" jdbcType="INTEGER" />
|
||||||
<result column="cfg_region_code" property="cfgRegionCode" jdbcType="INTEGER" />
|
<result column="cfg_region_code" property="cfgRegionCode" jdbcType="INTEGER" />
|
||||||
<result column="cfg_type" property="cfgType" jdbcType="VARCHAR" />
|
<result column="cfg_type" property="cfgType" jdbcType="VARCHAR" />
|
||||||
|
<result column="do_log" property="doLog" jdbcType="INTEGER" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<resultMap id="BaseStringCfgMap" type="com.nis.domain.configuration.BaseStringCfg" >
|
<resultMap id="BaseStringCfgMap" type="com.nis.domain.configuration.BaseStringCfg" >
|
||||||
@@ -152,6 +153,7 @@
|
|||||||
<result column="function_id" property="functionId" jdbcType="INTEGER" />
|
<result column="function_id" property="functionId" jdbcType="INTEGER" />
|
||||||
<result column="cfg_region_code" property="cfgRegionCode" jdbcType="INTEGER" />
|
<result column="cfg_region_code" property="cfgRegionCode" jdbcType="INTEGER" />
|
||||||
<result column="cfg_type" property="cfgType" jdbcType="VARCHAR" />
|
<result column="cfg_type" property="cfgType" jdbcType="VARCHAR" />
|
||||||
|
<result column="do_log" property="doLog" jdbcType="INTEGER" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<sql id="AvVoip_Column" >
|
<sql id="AvVoip_Column" >
|
||||||
@@ -180,13 +182,13 @@
|
|||||||
,r.is_valid,r.is_audit,r.creator_id,r.create_time,r.editor_id
|
,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.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.compile_id,r.is_area_effective,r.classify,r.attribute,r.lable
|
||||||
,r.area_effective_ids,r.function_id,r.cfg_region_code
|
,r.area_effective_ids,r.function_id,r.cfg_region_code,r.do_log
|
||||||
</sql>
|
</sql>
|
||||||
<sql id="BaseStringCfg_Column" >
|
<sql id="BaseStringCfg_Column" >
|
||||||
r.cfg_id,r.cfg_desc,r.cfg_keywords,r.cfg_type,
|
r.cfg_id,r.cfg_desc,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.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.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
|
r.expr_type,r.match_method,r.is_hexbin,r.area_effective_ids,r.function_id,r.cfg_region_code,r.do_log
|
||||||
</sql>
|
</sql>
|
||||||
<!-- voip IP条件查询列表信息 -->
|
<!-- voip IP条件查询列表信息 -->
|
||||||
<select id="findVoipList" resultMap="CfgIndexInfoMap" parameterType="com.nis.domain.configuration.CfgIndexInfo" >
|
<select id="findVoipList" resultMap="CfgIndexInfoMap" parameterType="com.nis.domain.configuration.CfgIndexInfo" >
|
||||||
@@ -1285,7 +1287,8 @@
|
|||||||
dest_port,
|
dest_port,
|
||||||
dest_ip_address,
|
dest_ip_address,
|
||||||
cfg_type,
|
cfg_type,
|
||||||
cfg_region_code
|
cfg_region_code,
|
||||||
|
do_log
|
||||||
)values (
|
)values (
|
||||||
#{cfgDesc,jdbcType=VARCHAR},
|
#{cfgDesc,jdbcType=VARCHAR},
|
||||||
#{action,jdbcType=INTEGER},
|
#{action,jdbcType=INTEGER},
|
||||||
@@ -1317,7 +1320,9 @@
|
|||||||
#{destPort,jdbcType=VARCHAR},
|
#{destPort,jdbcType=VARCHAR},
|
||||||
#{destIpAddress,jdbcType=VARCHAR},
|
#{destIpAddress,jdbcType=VARCHAR},
|
||||||
#{cfgType,jdbcType=VARCHAR},
|
#{cfgType,jdbcType=VARCHAR},
|
||||||
#{cfgRegionCode,jdbcType=INTEGER}
|
#{cfgRegionCode,jdbcType=INTEGER},
|
||||||
|
#{doLog,jdbcType=INTEGER}
|
||||||
|
|
||||||
)
|
)
|
||||||
</insert>
|
</insert>
|
||||||
<!-- update av_cont_ip_cfg表信息 -->
|
<!-- update av_cont_ip_cfg表信息 -->
|
||||||
@@ -1411,6 +1416,9 @@
|
|||||||
</if>
|
</if>
|
||||||
<if test="cfgRegionCode != null " >
|
<if test="cfgRegionCode != null " >
|
||||||
cfg_region_code = #{cfgRegionCode,jdbcType=INTEGER},
|
cfg_region_code = #{cfgRegionCode,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="doLog != null " >
|
||||||
|
do_log = #{doLog,jdbcType=INTEGER},
|
||||||
</if>
|
</if>
|
||||||
</trim>
|
</trim>
|
||||||
</set>
|
</set>
|
||||||
@@ -1585,7 +1593,8 @@
|
|||||||
match_method,
|
match_method,
|
||||||
is_hexbin,
|
is_hexbin,
|
||||||
cfg_type,
|
cfg_type,
|
||||||
cfg_region_code
|
cfg_region_code,
|
||||||
|
do_log
|
||||||
)values (
|
)values (
|
||||||
#{cfgDesc,jdbcType=VARCHAR},
|
#{cfgDesc,jdbcType=VARCHAR},
|
||||||
#{action,jdbcType=INTEGER},
|
#{action,jdbcType=INTEGER},
|
||||||
@@ -1611,7 +1620,8 @@
|
|||||||
#{matchMethod,jdbcType=INTEGER},
|
#{matchMethod,jdbcType=INTEGER},
|
||||||
#{isHexbin,jdbcType=INTEGER},
|
#{isHexbin,jdbcType=INTEGER},
|
||||||
#{cfgType,jdbcType=VARCHAR},
|
#{cfgType,jdbcType=VARCHAR},
|
||||||
#{cfgRegionCode,jdbcType=INTEGER}
|
#{cfgRegionCode,jdbcType=INTEGER},
|
||||||
|
#{doLog,jdbcType=INTEGER}
|
||||||
)
|
)
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
@@ -1688,6 +1698,9 @@
|
|||||||
</if>
|
</if>
|
||||||
<if test="cfgRegionCode != null " >
|
<if test="cfgRegionCode != null " >
|
||||||
cfg_region_code = #{cfgRegionCode,jdbcType=INTEGER},
|
cfg_region_code = #{cfgRegionCode,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="doLog != null " >
|
||||||
|
do_log = #{doLog,jdbcType=INTEGER},
|
||||||
</if>
|
</if>
|
||||||
</trim>
|
</trim>
|
||||||
</set>
|
</set>
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
<result column="is_hexbin" property="isHexbin" jdbcType="INTEGER" />
|
<result column="is_hexbin" property="isHexbin" jdbcType="INTEGER" />
|
||||||
<result column="function_id" property="functionId" jdbcType="INTEGER" />
|
<result column="function_id" property="functionId" jdbcType="INTEGER" />
|
||||||
<result column="cfg_region_code" property="cfgRegionCode" jdbcType="VARCHAR" />
|
<result column="cfg_region_code" property="cfgRegionCode" jdbcType="VARCHAR" />
|
||||||
<result column="ratelimit" property="ratelimit" jdbcType="INTEGER" />
|
<result column="ratelimit" property="ratelimit" jdbcType="VARCHAR" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
<resultMap id="BaseStringMapWithUser" type="com.nis.domain.configuration.HttpUrlCfg" extends="BaseStringMap">
|
<resultMap id="BaseStringMapWithUser" type="com.nis.domain.configuration.HttpUrlCfg" extends="BaseStringMap">
|
||||||
<result column="creator_name" property="creatorName" jdbcType="VARCHAR" />
|
<result column="creator_name" property="creatorName" jdbcType="VARCHAR" />
|
||||||
@@ -77,7 +77,7 @@
|
|||||||
#{classify,jdbcType=VARCHAR},#{attribute,jdbcType=VARCHAR},#{lable,jdbcType=VARCHAR},
|
#{classify,jdbcType=VARCHAR},#{attribute,jdbcType=VARCHAR},#{lable,jdbcType=VARCHAR},
|
||||||
#{exprType,jdbcType=INTEGER},#{matchMethod,jdbcType=INTEGER},#{isHexbin,jdbcType=INTEGER},
|
#{exprType,jdbcType=INTEGER},#{matchMethod,jdbcType=INTEGER},#{isHexbin,jdbcType=INTEGER},
|
||||||
#{areaEffectiveIds,jdbcType=VARCHAR},#{functionId,jdbcType=INTEGER},#{cfgRegionCode,jdbcType=INTEGER}
|
#{areaEffectiveIds,jdbcType=VARCHAR},#{functionId,jdbcType=INTEGER},#{cfgRegionCode,jdbcType=INTEGER}
|
||||||
,#{ratelimit,jdbcType=INTEGER}
|
,#{ratelimit,jdbcType=VARCHAR}
|
||||||
</sql>
|
</sql>
|
||||||
<select id="getById" resultMap="BaseStringMap" parameterType="java.lang.Long" >
|
<select id="getById" resultMap="BaseStringMap" parameterType="java.lang.Long" >
|
||||||
SELECT
|
SELECT
|
||||||
@@ -210,7 +210,7 @@
|
|||||||
AND ${page.alias}.CFG_REGION_CODE =#{cfgRegionCode,jdbcType=INTEGER}
|
AND ${page.alias}.CFG_REGION_CODE =#{cfgRegionCode,jdbcType=INTEGER}
|
||||||
</if>
|
</if>
|
||||||
<if test="ratelimit != null">
|
<if test="ratelimit != null">
|
||||||
AND ${page.alias}.RATELIMIT =#{ratelimit,jdbcType=INTEGER}
|
AND ${page.alias}.RATELIMIT =#{ratelimit,jdbcType=VARCHAR}
|
||||||
</if>
|
</if>
|
||||||
</when>
|
</when>
|
||||||
<otherwise>
|
<otherwise>
|
||||||
@@ -296,7 +296,7 @@
|
|||||||
AND r.CFG_REGION_CODE =#{cfgRegionCode,jdbcType=INTEGER}
|
AND r.CFG_REGION_CODE =#{cfgRegionCode,jdbcType=INTEGER}
|
||||||
</if>
|
</if>
|
||||||
<if test="ratelimit != null">
|
<if test="ratelimit != null">
|
||||||
AND r.RATELIMIT =#{ratelimit,jdbcType=INTEGER}
|
AND r.RATELIMIT =#{ratelimit,jdbcType=VARCHAR}
|
||||||
</if>
|
</if>
|
||||||
</otherwise>
|
</otherwise>
|
||||||
</choose>
|
</choose>
|
||||||
@@ -427,7 +427,7 @@
|
|||||||
cfg_region_code = #{cfgRegionCode,jdbcType=INTEGER},
|
cfg_region_code = #{cfgRegionCode,jdbcType=INTEGER},
|
||||||
</if>
|
</if>
|
||||||
<if test="ratelimit != null" >
|
<if test="ratelimit != null" >
|
||||||
ratelimit = #{ratelimit,jdbcType=INTEGER},
|
ratelimit = #{ratelimit,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
</trim>
|
</trim>
|
||||||
</set>
|
</set>
|
||||||
|
|||||||
@@ -4,7 +4,10 @@ import java.util.List;
|
|||||||
|
|
||||||
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
|
import com.nis.domain.configuration.BaseCfg;
|
||||||
import com.nis.domain.configuration.BaseIpCfg;
|
import com.nis.domain.configuration.BaseIpCfg;
|
||||||
|
import com.nis.domain.configuration.CfgIndexInfo;
|
||||||
|
import com.nis.domain.configuration.IpPortCfg;
|
||||||
import com.nis.web.dao.CrudDao;
|
import com.nis.web.dao.CrudDao;
|
||||||
import com.nis.web.dao.MyBatisDao;
|
import com.nis.web.dao.MyBatisDao;
|
||||||
|
|
||||||
@@ -31,4 +34,16 @@ public interface IpCfgDao extends CrudDao<BaseIpCfg>{
|
|||||||
public int getIsAudit(BaseIpCfg entity);
|
public int getIsAudit(BaseIpCfg entity);
|
||||||
public int deleteByCompileId(BaseIpCfg entity);
|
public int deleteByCompileId(BaseIpCfg entity);
|
||||||
public int deleteByCompileIds(@Param("user")long user,@Param("tableName")String tableName,@Param("compileIds")String compileIds);
|
public int deleteByCompileIds(@Param("user")long user,@Param("tableName")String tableName,@Param("compileIds")String compileIds);
|
||||||
|
/******************************new ***********************************/
|
||||||
|
|
||||||
|
public CfgIndexInfo getCfgIndexInfo(Long id);
|
||||||
|
public List<IpPortCfg> getIpPortList(CfgIndexInfo entity);
|
||||||
|
public void saveCfgIndex(CfgIndexInfo entity);
|
||||||
|
public void saveIpPortCfg(IpPortCfg entity);
|
||||||
|
public void updateCfgIndex(CfgIndexInfo entity);
|
||||||
|
public void deleteIpCfg(CfgIndexInfo entity);
|
||||||
|
public void updateCfgValid(BaseCfg entity);
|
||||||
|
public void auditCfg(BaseCfg entity);
|
||||||
|
public List<CfgIndexInfo> getIpCfgList(CfgIndexInfo entity);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -34,7 +34,7 @@
|
|||||||
<result column="lable" property="lable" jdbcType="VARCHAR" />
|
<result column="lable" property="lable" jdbcType="VARCHAR" />
|
||||||
<result column="area_effective_ids" property="areaEffectiveIds" jdbcType="VARCHAR" />
|
<result column="area_effective_ids" property="areaEffectiveIds" jdbcType="VARCHAR" />
|
||||||
<result column="function_id" property="functionId" jdbcType="INTEGER" />
|
<result column="function_id" property="functionId" jdbcType="INTEGER" />
|
||||||
<result column="ratelimit" property="ratelimit" jdbcType="INTEGER" />
|
<result column="ratelimit" property="ratelimit" jdbcType="VARCHAR" />
|
||||||
<result column="dns_strategy_id" property="dnsStrategyId" jdbcType="INTEGER" />
|
<result column="dns_strategy_id" property="dnsStrategyId" jdbcType="INTEGER" />
|
||||||
<result column="ir_type" property="irType" jdbcType="INTEGER" />
|
<result column="ir_type" property="irType" jdbcType="INTEGER" />
|
||||||
<result column="user_region1" property="userRegion1" jdbcType="VARCHAR" />
|
<result column="user_region1" property="userRegion1" jdbcType="VARCHAR" />
|
||||||
@@ -49,7 +49,71 @@
|
|||||||
<result column="editor_name" property="editorName" jdbcType="VARCHAR" />
|
<result column="editor_name" property="editorName" jdbcType="VARCHAR" />
|
||||||
<result column="group_name" property="groupName" jdbcType="VARCHAR" />
|
<result column="group_name" property="groupName" jdbcType="VARCHAR" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
<!--new -->
|
||||||
|
<resultMap id="CfgIndexInfoMap" type="com.nis.domain.configuration.CfgIndexInfo" >
|
||||||
|
<id column="cfg_id" property="cfgId" 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="area_effective_ids" property="areaEffectiveIds" jdbcType="VARCHAR" />
|
||||||
|
<result column="function_id" property="functionId" jdbcType="INTEGER" />
|
||||||
|
<result column="dns_strategy_id" property="dnsStrategyId" jdbcType="INTEGER" />
|
||||||
|
<result column="dns_strategy_name" property="dnsStrategyName" jdbcType="VARCHAR" />
|
||||||
|
<result column="do_log" property="doLog" jdbcType="INTEGER" />
|
||||||
|
<result column="user_region1" property="userRegion1" jdbcType="VARCHAR" />
|
||||||
|
<result column="user_region2" property="userRegion2" jdbcType="VARCHAR" />
|
||||||
|
<result column="user_region3" property="userRegion3" jdbcType="VARCHAR" />
|
||||||
|
<result column="user_region4" property="userRegion4" jdbcType="VARCHAR" />
|
||||||
|
<result column="user_region5" property="userRegion5" jdbcType="VARCHAR" />
|
||||||
|
</resultMap>
|
||||||
|
<resultMap id="ipPortMap" type="com.nis.domain.configuration.IpPortCfg" >
|
||||||
|
<id column="cfg_id" property="cfgId" jdbcType="BIGINT" />
|
||||||
|
<result column="cfg_desc" property="cfgDesc" jdbcType="VARCHAR" />
|
||||||
|
<result column="ip_type" property="ipType" jdbcType="INTEGER" />
|
||||||
|
<result column="ip_pattern" property="ipPattern" jdbcType="INTEGER" />
|
||||||
|
<result column="dest_ip_address" property="destIpAddress" jdbcType="VARCHAR" />
|
||||||
|
<result column="src_ip_address" property="srcIpAddress" jdbcType="VARCHAR" />
|
||||||
|
<result column="dest_port" property="destPort" jdbcType="VARCHAR" />
|
||||||
|
<result column="src_port" property="srcPort" jdbcType="VARCHAR" />
|
||||||
|
<result column="port_pattern" property="portPattern" jdbcType="INTEGER" />
|
||||||
|
<result column="direction" property="direction" jdbcType="INTEGER" />
|
||||||
|
<result column="protocol" property="protocol" jdbcType="INTEGER" />
|
||||||
|
<result column="protocol_id" property="protocolId" jdbcType="INTEGER" />
|
||||||
|
<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="area_effective_ids" property="areaEffectiveIds" jdbcType="VARCHAR" />
|
||||||
|
<result column="function_id" property="functionId" jdbcType="INTEGER" />
|
||||||
|
<result column="cfg_region_code" property="cfgRegionCode" jdbcType="INTEGER" />
|
||||||
|
<result column="cfg_type" property="cfgType" jdbcType="VARCHAR" />
|
||||||
|
</resultMap>
|
||||||
<sql id="BaseIpCfg_Column_List_with_id" >
|
<sql id="BaseIpCfg_Column_List_with_id" >
|
||||||
CFG_ID, CFG_DESC,CFG_REGION_CODE,CFG_TYPE, IP_TYPE, IP_PATTERN, SRC_IP_ADDRESS,DEST_IP_ADDRESS, PORT_PATTERN,SRC_PORT,DEST_PORT,
|
CFG_ID, CFG_DESC,CFG_REGION_CODE,CFG_TYPE, IP_TYPE, IP_PATTERN, SRC_IP_ADDRESS,DEST_IP_ADDRESS, PORT_PATTERN,SRC_PORT,DEST_PORT,
|
||||||
DIRECTION,PROTOCOL,PROTOCOL_ID,ACTION,IS_VALID,IS_AUDIT,
|
DIRECTION,PROTOCOL,PROTOCOL_ID,ACTION,IS_VALID,IS_AUDIT,
|
||||||
@@ -119,7 +183,7 @@
|
|||||||
#{auditorId,jdbcType=INTEGER},#{auditTime,jdbcType=TIMESTAMP},#{serviceId,jdbcType=INTEGER},
|
#{auditorId,jdbcType=INTEGER},#{auditTime,jdbcType=TIMESTAMP},#{serviceId,jdbcType=INTEGER},
|
||||||
#{requestId,jdbcType=INTEGER},#{compileId,jdbcType=INTEGER},#{isAreaEffective,jdbcType=INTEGER},
|
#{requestId,jdbcType=INTEGER},#{compileId,jdbcType=INTEGER},#{isAreaEffective,jdbcType=INTEGER},
|
||||||
#{classify,jdbcType=VARCHAR},#{attribute,jdbcType=VARCHAR},#{lable,jdbcType=VARCHAR},
|
#{classify,jdbcType=VARCHAR},#{attribute,jdbcType=VARCHAR},#{lable,jdbcType=VARCHAR},
|
||||||
#{areaEffectiveIds,jdbcType=VARCHAR}, #{functionId,jdbcType=INTEGER}, #{ratelimit,jdbcType=INTEGER},
|
#{areaEffectiveIds,jdbcType=VARCHAR}, #{functionId,jdbcType=INTEGER}, #{ratelimit,jdbcType=VARCHAR},
|
||||||
#{dnsStrategyId,jdbcType=INTEGER},#{irType,jdbcType=INTEGER},
|
#{dnsStrategyId,jdbcType=INTEGER},#{irType,jdbcType=INTEGER},
|
||||||
#{userRegion1,jdbcType=VARCHAR},
|
#{userRegion1,jdbcType=VARCHAR},
|
||||||
#{userRegion2,jdbcType=VARCHAR},
|
#{userRegion2,jdbcType=VARCHAR},
|
||||||
@@ -127,6 +191,22 @@
|
|||||||
#{userRegion4,jdbcType=VARCHAR},
|
#{userRegion4,jdbcType=VARCHAR},
|
||||||
#{userRegion5,jdbcType=VARCHAR}
|
#{userRegion5,jdbcType=VARCHAR}
|
||||||
</sql>
|
</sql>
|
||||||
|
<!-- new -->
|
||||||
|
<sql id="ConfigIndex_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,a.dns_strategy_id,a.user_region1,
|
||||||
|
a.user_region2,a.user_region3,a.user_region4,a.user_region5,a.do_log
|
||||||
|
</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
|
||||||
|
,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
|
||||||
|
</sql>
|
||||||
<select id="getById" resultMap="BaseIpMap" parameterType="java.lang.Long" >
|
<select id="getById" resultMap="BaseIpMap" parameterType="java.lang.Long" >
|
||||||
SELECT
|
SELECT
|
||||||
<include refid="BaseIpCfg_Column_List_with_id" />
|
<include refid="BaseIpCfg_Column_List_with_id" />
|
||||||
@@ -294,7 +374,7 @@
|
|||||||
AND ${page.alias}.FUNCTION_ID=#{functionId,jdbcType=INTEGER}
|
AND ${page.alias}.FUNCTION_ID=#{functionId,jdbcType=INTEGER}
|
||||||
</if>
|
</if>
|
||||||
<if test="ratelimit != null">
|
<if test="ratelimit != null">
|
||||||
AND ${page.alias}.RATELIMIT=#{ratelimit,jdbcType=INTEGER}
|
AND ${page.alias}.RATELIMIT=#{ratelimit,jdbcType=VARCHAR}
|
||||||
</if>
|
</if>
|
||||||
<if test="dnsStrategyId != null">
|
<if test="dnsStrategyId != null">
|
||||||
AND ${page.alias}.DNS_STRATEGY_ID=#{dnsStrategyId,jdbcType=INTEGER}
|
AND ${page.alias}.DNS_STRATEGY_ID=#{dnsStrategyId,jdbcType=INTEGER}
|
||||||
@@ -419,7 +499,7 @@
|
|||||||
AND r.FUNCTION_ID=#{functionId,jdbcType=INTEGER}
|
AND r.FUNCTION_ID=#{functionId,jdbcType=INTEGER}
|
||||||
</if>
|
</if>
|
||||||
<if test="ratelimit != null">
|
<if test="ratelimit != null">
|
||||||
AND r.RATELIMIT=#{ratelimit,jdbcType=INTEGER}
|
AND r.RATELIMIT=#{ratelimit,jdbcType=VARCHAR}
|
||||||
</if>
|
</if>
|
||||||
<if test="dnsStrategyId != null">
|
<if test="dnsStrategyId != null">
|
||||||
AND r.DNS_STRATEGY_ID=#{dnsStrategyId,jdbcType=INTEGER}
|
AND r.DNS_STRATEGY_ID=#{dnsStrategyId,jdbcType=INTEGER}
|
||||||
@@ -589,7 +669,7 @@
|
|||||||
FUNCTION_ID=#{functionId,jdbcType=INTEGER},
|
FUNCTION_ID=#{functionId,jdbcType=INTEGER},
|
||||||
</if>
|
</if>
|
||||||
<if test="ratelimit != null">
|
<if test="ratelimit != null">
|
||||||
RATELIMIT=#{ratelimit,jdbcType=INTEGER},
|
RATELIMIT=#{ratelimit,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
<if test="dnsStrategyId != null">
|
<if test="dnsStrategyId != null">
|
||||||
DNS_STRATEGY_ID=#{dnsStrategyId,jdbcType=INTEGER},
|
DNS_STRATEGY_ID=#{dnsStrategyId,jdbcType=INTEGER},
|
||||||
@@ -671,4 +751,338 @@
|
|||||||
left join policy_group_info po on r.dns_strategy_id=po.group_id
|
left join policy_group_info po on r.dns_strategy_id=po.group_id
|
||||||
WHERE r.CFG_ID in (${ids}) AND r.FUNCTION_ID=#{functionId,jdbcType=INTEGER}
|
WHERE r.CFG_ID in (${ids}) AND r.FUNCTION_ID=#{functionId,jdbcType=INTEGER}
|
||||||
</select>
|
</select>
|
||||||
|
<!-- new -->
|
||||||
|
<select id="getCfgIndexInfo" resultMap="CfgIndexInfoMap" parameterType="java.lang.Long">
|
||||||
|
SELECT
|
||||||
|
<include refid="ConfigIndex_Column" />
|
||||||
|
FROM cfg_index_info a where cfg_id=#{cfgId}
|
||||||
|
</select>
|
||||||
|
<select id="getIpPortList" resultMap="ipPortMap" parameterType="com.nis.domain.configuration.CfgIndexInfo">
|
||||||
|
SELECT
|
||||||
|
<include refid="IpCfg_Column" />
|
||||||
|
FROM ip_port_cfg a where compile_id=#{compileId} and function_id=#{functionId}
|
||||||
|
</select>
|
||||||
|
<!-- insert cfgIndexInfox -->
|
||||||
|
<insert id="saveCfgIndex" parameterType="com.nis.domain.configuration.CfgIndexInfo" >
|
||||||
|
<selectKey resultType="java.lang.Long" order="AFTER" keyProperty="cfgId">
|
||||||
|
SELECT LAST_INSERT_ID()
|
||||||
|
</selectKey>
|
||||||
|
insert into cfg_index_info(
|
||||||
|
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,
|
||||||
|
function_id,
|
||||||
|
dns_strategy_id,
|
||||||
|
user_region1,
|
||||||
|
user_region2,
|
||||||
|
user_region3,
|
||||||
|
user_region4,
|
||||||
|
user_region5,
|
||||||
|
do_log
|
||||||
|
)values (
|
||||||
|
#{cfgDesc,jdbcType=VARCHAR},
|
||||||
|
#{action,jdbcType=INTEGER},
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
#{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},
|
||||||
|
#{functionId,jdbcType=INTEGER},
|
||||||
|
#{dnsStrategyId,jdbcType=INTEGER},
|
||||||
|
#{userRegion1,jdbcType=VARCHAR},
|
||||||
|
#{userRegion2,jdbcType=VARCHAR},
|
||||||
|
#{userRegion3,jdbcType=VARCHAR},
|
||||||
|
#{userRegion4,jdbcType=VARCHAR},
|
||||||
|
#{userRegion5,jdbcType=VARCHAR},
|
||||||
|
#{doLog,jdbcType=INTEGER}
|
||||||
|
)
|
||||||
|
</insert>
|
||||||
|
<!-- insert ip_port_cfg表信息 -->
|
||||||
|
<insert id="saveIpPortCfg" parameterType="com.nis.domain.configuration.IpPortCfg" >
|
||||||
|
<selectKey resultType="java.lang.Long" order="AFTER" keyProperty="cfgId">
|
||||||
|
SELECT LAST_INSERT_ID()
|
||||||
|
</selectKey>
|
||||||
|
insert into ip_port_cfg (
|
||||||
|
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,
|
||||||
|
function_id,
|
||||||
|
ip_type,
|
||||||
|
src_ip_address,
|
||||||
|
ip_pattern,
|
||||||
|
port_pattern,
|
||||||
|
src_port,
|
||||||
|
protocol,
|
||||||
|
protocol_id,
|
||||||
|
direction,
|
||||||
|
dest_port,
|
||||||
|
dest_ip_address,
|
||||||
|
cfg_type,
|
||||||
|
cfg_region_code,
|
||||||
|
user_region1,
|
||||||
|
user_region2,
|
||||||
|
user_region3,
|
||||||
|
user_region4,
|
||||||
|
user_region5
|
||||||
|
)values (
|
||||||
|
#{cfgDesc,jdbcType=VARCHAR},
|
||||||
|
#{action,jdbcType=INTEGER},
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
#{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},
|
||||||
|
#{functionId,jdbcType=INTEGER},
|
||||||
|
#{ipType,jdbcType=INTEGER},
|
||||||
|
#{srcIpAddress,jdbcType=VARCHAR},
|
||||||
|
#{ipPattern,jdbcType=INTEGER},
|
||||||
|
#{portPattern,jdbcType=INTEGER},
|
||||||
|
#{srcPort,jdbcType=VARCHAR},
|
||||||
|
#{protocol,jdbcType=INTEGER},
|
||||||
|
#{protocolId,jdbcType=INTEGER},
|
||||||
|
#{direction,jdbcType=INTEGER},
|
||||||
|
#{destPort,jdbcType=VARCHAR},
|
||||||
|
#{destIpAddress,jdbcType=VARCHAR},
|
||||||
|
#{cfgType,jdbcType=VARCHAR},
|
||||||
|
#{cfgRegionCode,jdbcType=INTEGER},
|
||||||
|
#{userRegion1,jdbcType=VARCHAR},
|
||||||
|
#{userRegion2,jdbcType=VARCHAR},
|
||||||
|
#{userRegion3,jdbcType=VARCHAR},
|
||||||
|
#{userRegion4,jdbcType=VARCHAR},
|
||||||
|
#{userRegion5,jdbcType=VARCHAR}
|
||||||
|
)
|
||||||
|
</insert>
|
||||||
|
<update id="updateCfgIndex" parameterType="com.nis.domain.configuration.CfgIndexInfo" >
|
||||||
|
update cfg_index_info
|
||||||
|
<set >
|
||||||
|
<trim suffixOverrides=",">
|
||||||
|
<if test="cfgDesc != null and cfgDesc != ''" >
|
||||||
|
cfg_desc = #{cfgDesc,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="action != null" >
|
||||||
|
action = #{action,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="doLog != null" >
|
||||||
|
do_log = #{doLog,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>
|
||||||
|
edit_time = #{editTime,jdbcType=TIMESTAMP},
|
||||||
|
<if test="serviceId != null" >
|
||||||
|
service_id = #{serviceId,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="requestId != null" >
|
||||||
|
request_id = #{requestId,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>
|
||||||
|
user_region1 = #{userRegion1,jdbcType=VARCHAR},
|
||||||
|
user_region2 = #{userRegion2,jdbcType=VARCHAR},
|
||||||
|
user_region3 = #{userRegion3,jdbcType=VARCHAR},
|
||||||
|
user_region4 = #{userRegion4,jdbcType=VARCHAR},
|
||||||
|
user_region5 = #{userRegion5,jdbcType=VARCHAR},
|
||||||
|
dns_strategy_id = #{dnsStrategyId,jdbcType=INTEGER},
|
||||||
|
</trim>
|
||||||
|
</set>
|
||||||
|
where cfg_id = #{cfgId,jdbcType=BIGINT}
|
||||||
|
</update>
|
||||||
|
<delete id="deleteIpCfg" >
|
||||||
|
delete from ip_port_cfg where compile_id=#{compileId} and function_id=#{functionId}
|
||||||
|
</delete>
|
||||||
|
<update id="updateCfgValid" parameterType="com.nis.domain.configuration.BaseCfg">
|
||||||
|
update ${tableName} set is_valid = #{isValid,jdbcType=INTEGER},
|
||||||
|
editor_id = #{editorId,jdbcType=INTEGER} ,
|
||||||
|
edit_time = #{editTime,jdbcType=TIMESTAMP}
|
||||||
|
<trim prefix="WHERE" prefixOverrides="AND |OR ">
|
||||||
|
<if test="cfgId !=null ">
|
||||||
|
AND cfg_id = #{cfgId,jdbcType=BIGINT}
|
||||||
|
</if>
|
||||||
|
<if test="compileId !=null ">
|
||||||
|
AND compile_id = #{compileId,jdbcType=INTEGER}
|
||||||
|
</if>
|
||||||
|
and function_id=#{functionId,jdbcType=INTEGER}
|
||||||
|
</trim>
|
||||||
|
</update>
|
||||||
|
<update id="auditCfg" parameterType="com.nis.domain.configuration.BaseCfg">
|
||||||
|
update ${tableName} set is_audit = #{isAudit,jdbcType=INTEGER},
|
||||||
|
auditor_id = #{auditorId,jdbcType=INTEGER},
|
||||||
|
audit_time = #{auditTime,jdbcType=TIMESTAMP}
|
||||||
|
<if test="isValid != null" >
|
||||||
|
,is_valid = #{isValid,jdbcType=INTEGER}
|
||||||
|
</if>
|
||||||
|
<trim prefix="WHERE" prefixOverrides="AND |OR ">
|
||||||
|
<if test="cfgId !=null ">
|
||||||
|
AND cfg_id = #{cfgId,jdbcType=BIGINT}
|
||||||
|
</if>
|
||||||
|
<if test="compileId !=null ">
|
||||||
|
AND compile_id = #{compileId,jdbcType=INTEGER}
|
||||||
|
</if>
|
||||||
|
and function_id=#{functionId,jdbcType=INTEGER}
|
||||||
|
</trim>
|
||||||
|
</update>
|
||||||
|
<select id="getIpCfgList" resultMap="CfgIndexInfoMap" parameterType="com.nis.domain.configuration.CfgIndexInfo" >
|
||||||
|
SELECT
|
||||||
|
<include refid="ConfigIndex_Column" />
|
||||||
|
<trim prefix="," prefixOverrides=",">
|
||||||
|
, s.name as creator_name,e.name as editor_name,u.name as auditor_name
|
||||||
|
,ri.request_title as requestName,dns.cfg_desc as dns_strategy_name
|
||||||
|
</trim>
|
||||||
|
FROM cfg_index_info a
|
||||||
|
left join dns_res_strategy dns on a.dns_strategy_id=dns.cfg_id
|
||||||
|
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
|
||||||
|
|
||||||
|
<trim prefix="WHERE" prefixOverrides="AND |OR ">
|
||||||
|
<if test="page !=null and page.where != null and page.where != ''">
|
||||||
|
AND ${page.where}
|
||||||
|
</if>
|
||||||
|
<if test="cfgId != null">
|
||||||
|
AND a.CFG_ID=#{cfgId,jdbcType=BIGINT}
|
||||||
|
</if>
|
||||||
|
<if test="cfgDesc != null and cfgDesc != ''">
|
||||||
|
AND a.CFG_DESC like concat(concat('%',#{cfgDesc,jdbcType=VARCHAR}),'%')
|
||||||
|
</if>
|
||||||
|
<if test="action != null">
|
||||||
|
AND a.ACTION=#{action,jdbcType=INTEGER}
|
||||||
|
</if>
|
||||||
|
<if test="isValid != null">
|
||||||
|
AND a.IS_VALID=#{isValid,jdbcType=INTEGER}
|
||||||
|
</if>
|
||||||
|
<if test="isValid == null">
|
||||||
|
AND a.IS_VALID != -1
|
||||||
|
</if>
|
||||||
|
<if test="isAudit != null">
|
||||||
|
AND a.IS_AUDIT=#{isAudit,jdbcType=INTEGER}
|
||||||
|
</if>
|
||||||
|
<if test="creatorName != null and creatorName != ''">
|
||||||
|
AND CREATOR_NAME like concat(concat('%',#{creatorName,jdbcType=VARCHAR}),'%')
|
||||||
|
</if>
|
||||||
|
<if test="editorName != null and editorName != ''">
|
||||||
|
AND EDITOR_NAME like concat(concat('%',#{editorName,jdbcType=VARCHAR}),'%')
|
||||||
|
</if>
|
||||||
|
<if test="auditorName != null and auditorName != ''">
|
||||||
|
AND AUDITOR_NAME like concat(concat('%',#{auditorName,jdbcType=VARCHAR}),'%')
|
||||||
|
</if>
|
||||||
|
<if test="serviceId != null">
|
||||||
|
AND a.SERVICE_ID=#{serviceId,jdbcType=INTEGER}
|
||||||
|
</if>
|
||||||
|
<if test="requestId != null">
|
||||||
|
AND a.REQUEST_ID=#{requestId,jdbcType=INTEGER}
|
||||||
|
</if>
|
||||||
|
<if test="compileId != null">
|
||||||
|
AND a.COMPILE_ID=#{compileId,jdbcType=INTEGER}
|
||||||
|
</if>
|
||||||
|
<if test="isAreaEffective != null">
|
||||||
|
AND a.IS_AREA_EFFECTIVE=#{isAreaEffective,jdbcType=INTEGER}
|
||||||
|
</if>
|
||||||
|
<if test="classify != null and classify != ''">
|
||||||
|
AND a.classify like concat(concat('%',#{classify,jdbcType=VARCHAR}),'%')
|
||||||
|
</if>
|
||||||
|
<if test="attribute != null and attribute != ''">
|
||||||
|
AND a.attribute like concat(concat('%',#{attribute,jdbcType=VARCHAR}),'%')
|
||||||
|
</if>
|
||||||
|
<if test="lable != null and lable != ''">
|
||||||
|
AND a.lable like concat(concat('%',#{lable,jdbcType=VARCHAR}),'%')
|
||||||
|
</if>
|
||||||
|
<if test="areaEffectiveIds != null and areaEffectiveIds != ''">
|
||||||
|
AND a.AREA_EFFECTIVE_IDS like concat(concat('%',#{areaEffectiveIds,jdbcType=VARCHAR}),'%')
|
||||||
|
</if>
|
||||||
|
<if test="functionId != null">
|
||||||
|
AND a.function_id=#{functionId,jdbcType=INTEGER}
|
||||||
|
</if>
|
||||||
|
<!-- 数据范围过滤 -->
|
||||||
|
${sqlMap.dsf}
|
||||||
|
</trim>
|
||||||
|
<choose>
|
||||||
|
<when test="page !=null and page.orderBy != null and page.orderBy != ''">
|
||||||
|
ORDER BY ${page.orderBy}
|
||||||
|
</when>
|
||||||
|
<otherwise>
|
||||||
|
ORDER BY a.CFG_ID desc
|
||||||
|
</otherwise>
|
||||||
|
</choose>
|
||||||
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
@@ -28,7 +28,7 @@
|
|||||||
<result column="is_hexbin" property="isHexbin" jdbcType="INTEGER" />
|
<result column="is_hexbin" property="isHexbin" jdbcType="INTEGER" />
|
||||||
<result column="function_id" property="functionId" jdbcType="INTEGER" />
|
<result column="function_id" property="functionId" jdbcType="INTEGER" />
|
||||||
<result column="cfg_region_code" property="cfgRegionCode" jdbcType="VARCHAR" />
|
<result column="cfg_region_code" property="cfgRegionCode" jdbcType="VARCHAR" />
|
||||||
<result column="ratelimit" property="ratelimit" jdbcType="INTEGER" />
|
<result column="ratelimit" property="ratelimit" jdbcType="VARCHAR" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
<resultMap id="BaseStringMapWithUser" type="com.nis.domain.configuration.BaseStringCfg" extends="BaseStringMap">
|
<resultMap id="BaseStringMapWithUser" type="com.nis.domain.configuration.BaseStringCfg" extends="BaseStringMap">
|
||||||
<result column="creator_name" property="creatorName" jdbcType="VARCHAR" />
|
<result column="creator_name" property="creatorName" jdbcType="VARCHAR" />
|
||||||
@@ -120,7 +120,7 @@
|
|||||||
#{classify,jdbcType=VARCHAR},#{attribute,jdbcType=VARCHAR},#{lable,jdbcType=VARCHAR},
|
#{classify,jdbcType=VARCHAR},#{attribute,jdbcType=VARCHAR},#{lable,jdbcType=VARCHAR},
|
||||||
#{exprType,jdbcType=INTEGER},#{matchMethod,jdbcType=INTEGER},#{isHexbin,jdbcType=INTEGER},
|
#{exprType,jdbcType=INTEGER},#{matchMethod,jdbcType=INTEGER},#{isHexbin,jdbcType=INTEGER},
|
||||||
#{areaEffectiveIds,jdbcType=VARCHAR},#{functionId,jdbcType=INTEGER},#{cfgRegionCode,jdbcType=INTEGER}
|
#{areaEffectiveIds,jdbcType=VARCHAR},#{functionId,jdbcType=INTEGER},#{cfgRegionCode,jdbcType=INTEGER}
|
||||||
,#{ratelimit,jdbcType=INTEGER}
|
,#{ratelimit,jdbcType=VARCHAR}
|
||||||
</sql>
|
</sql>
|
||||||
<select id="getById" resultMap="BaseStringMap" parameterType="java.lang.Long" >
|
<select id="getById" resultMap="BaseStringMap" parameterType="java.lang.Long" >
|
||||||
SELECT
|
SELECT
|
||||||
@@ -253,7 +253,7 @@
|
|||||||
AND ${page.alias}.CFG_REGION_CODE =#{cfgRegionCode,jdbcType=INTEGER}
|
AND ${page.alias}.CFG_REGION_CODE =#{cfgRegionCode,jdbcType=INTEGER}
|
||||||
</if>
|
</if>
|
||||||
<if test="ratelimit != null">
|
<if test="ratelimit != null">
|
||||||
AND ${page.alias}.RATELIMIT =#{ratelimit,jdbcType=INTEGER}
|
AND ${page.alias}.RATELIMIT =#{ratelimit,jdbcType=VARCHAR}
|
||||||
</if>
|
</if>
|
||||||
</when>
|
</when>
|
||||||
<otherwise>
|
<otherwise>
|
||||||
@@ -339,7 +339,7 @@
|
|||||||
AND r.CFG_REGION_CODE =#{cfgRegionCode,jdbcType=INTEGER}
|
AND r.CFG_REGION_CODE =#{cfgRegionCode,jdbcType=INTEGER}
|
||||||
</if>
|
</if>
|
||||||
<if test="ratelimit != null">
|
<if test="ratelimit != null">
|
||||||
AND r.RATELIMIT =#{ratelimit,jdbcType=INTEGER}
|
AND r.RATELIMIT =#{ratelimit,jdbcType=VARCHAR}
|
||||||
</if>
|
</if>
|
||||||
</otherwise>
|
</otherwise>
|
||||||
</choose>
|
</choose>
|
||||||
@@ -468,7 +468,7 @@
|
|||||||
cfg_region_code = #{cfgRegionCode,jdbcType=INTEGER},
|
cfg_region_code = #{cfgRegionCode,jdbcType=INTEGER},
|
||||||
</if>
|
</if>
|
||||||
<if test="ratelimit != null" >
|
<if test="ratelimit != null" >
|
||||||
ratelimit = #{ratelimit,jdbcType=INTEGER},
|
ratelimit = #{ratelimit,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
</trim>
|
</trim>
|
||||||
</set>
|
</set>
|
||||||
|
|||||||
@@ -633,7 +633,7 @@ public abstract class BaseService {
|
|||||||
proxyObjKeyring.setCrl(cfg.getCrl());
|
proxyObjKeyring.setCrl(cfg.getCrl());
|
||||||
proxyObjKeyring.setExpireAfter(cfg.getExpireAfter());
|
proxyObjKeyring.setExpireAfter(cfg.getExpireAfter());
|
||||||
proxyObjKeyring.setKeyringId(cfg.getCompileId());
|
proxyObjKeyring.setKeyringId(cfg.getCompileId());
|
||||||
proxyObjKeyring.setKeyringName(cfg.getCfgDesc());
|
proxyObjKeyring.setKeyringName(keywordsEscape(cfg.getCfgDesc()));
|
||||||
proxyObjKeyring.setKeyringType(cfg.getKeyringType());
|
proxyObjKeyring.setKeyringType(cfg.getKeyringType());
|
||||||
proxyObjKeyring.setPrivateKeyFile(cfg.getPrivateKeyFile());
|
proxyObjKeyring.setPrivateKeyFile(cfg.getPrivateKeyFile());
|
||||||
proxyObjKeyring.setPublicKeyAlgo(cfg.getPublicKeyAlgo());
|
proxyObjKeyring.setPublicKeyAlgo(cfg.getPublicKeyAlgo());
|
||||||
|
|||||||
@@ -241,14 +241,10 @@ public class AppCfgService extends BaseService {
|
|||||||
}
|
}
|
||||||
appCfgDao.updateAppPolicyCfg(entity);
|
appCfgDao.updateAppPolicyCfg(entity);
|
||||||
|
|
||||||
|
// 先删后加 各域配置
|
||||||
appCfgDao.deleteAppPolicyIpCfg(entity);
|
appCfgDao.deleteAppPolicyIpCfg(entity);
|
||||||
if (entity != null && entity.getNtcSubscribeIdCfgList() != null
|
appCfgDao.deleteSubscribeIdCfg(entity);
|
||||||
&& entity.getNtcSubscribeIdCfgList().size() > 0) {
|
|
||||||
for (NtcSubscribeIdCfg ntcSubscribeIdCfg : entity.getNtcSubscribeIdCfgList()) {
|
|
||||||
ntcSubscribeIdCfg.setCompileId(entity.getCompileId());
|
|
||||||
stringcfgDao.deleteSubscribeIdCfg(ntcSubscribeIdCfg);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// 删除旧的区域IP,新增新的区域IP
|
// 删除旧的区域IP,新增新的区域IP
|
||||||
AreaIpCfg area = new AreaIpCfg();
|
AreaIpCfg area = new AreaIpCfg();
|
||||||
area.setCompileId(entity.getCompileId());
|
area.setCompileId(entity.getCompileId());
|
||||||
@@ -1449,9 +1445,9 @@ public class AppCfgService extends BaseService {
|
|||||||
}
|
}
|
||||||
// 删除关键字
|
// 删除关键字
|
||||||
if (entity.getNtcSubscribeIdCfgList() != null && entity.getNtcSubscribeIdCfgList().size() > 0) {
|
if (entity.getNtcSubscribeIdCfgList() != null && entity.getNtcSubscribeIdCfgList().size() > 0) {
|
||||||
NtcSubscribeIdCfg ntcSubscribeIdCfg = new NtcSubscribeIdCfg();
|
NtcSubscribeIdCfg cfg = new NtcSubscribeIdCfg();
|
||||||
BeanUtils.copyProperties(entity, ntcSubscribeIdCfg, new String[] { "cfgId" });
|
BeanUtils.copyProperties(entity, cfg, new String[] { "cfgId" });
|
||||||
stringcfgDao.updateSubscribeIdCfg(ntcSubscribeIdCfg);
|
stringcfgDao.updateSubscribeIdCfg(cfg);
|
||||||
}
|
}
|
||||||
// 保存区域IP信息
|
// 保存区域IP信息
|
||||||
if (entity.getAreaCfg() != null && entity.getAreaCfg().size() > 0) {
|
if (entity.getAreaCfg() != null && entity.getAreaCfg().size() > 0) {
|
||||||
|
|||||||
@@ -20,11 +20,13 @@ import com.nis.domain.Page;
|
|||||||
import com.nis.domain.configuration.AvFileSampleCfg;
|
import com.nis.domain.configuration.AvFileSampleCfg;
|
||||||
import com.nis.domain.configuration.AvSignSampleCfg;
|
import com.nis.domain.configuration.AvSignSampleCfg;
|
||||||
import com.nis.domain.maat.ToMaatResult;
|
import com.nis.domain.maat.ToMaatResult;
|
||||||
|
import com.nis.domain.maat.ToMaatResult.ResponseData;
|
||||||
import com.nis.exceptions.CallExternalProceduresException;
|
import com.nis.exceptions.CallExternalProceduresException;
|
||||||
import com.nis.exceptions.MaatConvertException;
|
import com.nis.exceptions.MaatConvertException;
|
||||||
import com.nis.util.ConfigServiceUtil;
|
import com.nis.util.ConfigServiceUtil;
|
||||||
import com.nis.util.Constants;
|
import com.nis.util.Constants;
|
||||||
import com.nis.util.FileUtils;
|
import com.nis.util.FileUtils;
|
||||||
|
import com.nis.util.JsonMapper;
|
||||||
import com.nis.util.StringUtil;
|
import com.nis.util.StringUtil;
|
||||||
import com.nis.web.dao.configuration.AvCfgDao;
|
import com.nis.web.dao.configuration.AvCfgDao;
|
||||||
import com.nis.web.security.UserUtils;
|
import com.nis.web.security.UserUtils;
|
||||||
@@ -181,16 +183,62 @@ public class AvCfgService extends BaseService{
|
|||||||
Integer fileId = resObject.getInt("fileId");
|
Integer fileId = resObject.getInt("fileId");
|
||||||
if(state==1 && fileSize>0){//成功
|
if(state==1 && fileSize>0){//成功
|
||||||
entity.setIsSampleCreated(1);//样例文件创建成功
|
entity.setIsSampleCreated(1);//样例文件创建成功
|
||||||
}else{
|
|
||||||
entity.setIsSampleCreated(-1);//样例文件创建失败
|
|
||||||
}
|
|
||||||
if(fileId.equals(entity.getCfgId().intValue())){
|
if(fileId.equals(entity.getCfgId().intValue())){
|
||||||
File uploadSampleFile = new File(entity.getSamplePath());
|
File uploadSampleFile = new File(entity.getSamplePath());
|
||||||
String sampleMd5 = FileUtils.getFileMD5(uploadSampleFile);
|
String sampleMd5 = FileUtils.getFileMD5(uploadSampleFile);
|
||||||
entity.setSampleMd5(sampleMd5);
|
entity.setSampleMd5(sampleMd5);
|
||||||
}else{
|
}else{
|
||||||
logger.info("调用外部程序返回fileId错误,输入的fileId为:"+entity.getCfgId()+",输出的fileId为:"+fileId);
|
logger.error("调用外部程序返回fileId错误,输入的fileId为:"+entity.getCfgId()+",输出的fileId为:"+fileId);
|
||||||
|
throw new CallExternalProceduresException();
|
||||||
}
|
}
|
||||||
|
//文件上传至综合服务
|
||||||
|
Date creatTime = entity.getCreateTime();
|
||||||
|
//音视频文件上传接口调用
|
||||||
|
File srcFile = new File(entity.getSrcPath());
|
||||||
|
Map<String,Object> srcMap = new HashMap();
|
||||||
|
srcMap.put("filetype", FileUtils.getSuffix(srcFile.getName(), false));
|
||||||
|
srcMap.put("datatype", "dbSystem");//源文件存入数据中心
|
||||||
|
|
||||||
|
srcMap.put("createTime",creatTime);
|
||||||
|
srcMap.put("key",FileUtils.getPrefix(srcFile.getName(), false));
|
||||||
|
srcMap.put("fileName", srcFile.getName());
|
||||||
|
srcMap.put("checksum", entity.getSrcMd5());
|
||||||
|
ToMaatResult result1 = ConfigServiceUtil.postFileCfg(null, srcFile, JsonMapper.toJsonString(srcMap));
|
||||||
|
logger.info("音视频源文件上传响应信息:"+result1.toString());
|
||||||
|
//获取文件上传响应信息(新的文件访问路径)
|
||||||
|
String srcAccessUrl = null;
|
||||||
|
if(!StringUtil.isEmpty(result1)){
|
||||||
|
ResponseData data = result1.getData();
|
||||||
|
srcAccessUrl=data.getAccessUrl();
|
||||||
|
entity.setSrcUrl(srcAccessUrl);
|
||||||
|
}
|
||||||
|
File sampleFile = new File(entity.getSamplePath());
|
||||||
|
Map<String,Object> sampleMap = new HashMap();
|
||||||
|
sampleMap.put("filetype", FileUtils.getSuffix(sampleFile.getName(), false));
|
||||||
|
sampleMap.put("datatype", "fileSystem");//样例文件存入fastdfs
|
||||||
|
sampleMap.put("createTime", creatTime);
|
||||||
|
sampleMap.put("key",FileUtils.getPrefix(sampleFile.getName(), false));
|
||||||
|
sampleMap.put("fileName", sampleFile.getName());
|
||||||
|
sampleMap.put("checksum", entity.getSampleMd5());
|
||||||
|
ToMaatResult result2 = ConfigServiceUtil.postFileCfg(null, sampleFile, JsonMapper.toJsonString(sampleMap));
|
||||||
|
logger.info("音视频样例文件上传响应信息:"+result2.toString());
|
||||||
|
//获取文件上传响应信息(新的文件访问路径)
|
||||||
|
String sampleAccessUrl = null;
|
||||||
|
if(!StringUtil.isEmpty(result2)){
|
||||||
|
ResponseData data = result2.getData();
|
||||||
|
sampleAccessUrl = data.getAccessUrl();
|
||||||
|
entity.setSampleUrl(sampleAccessUrl);
|
||||||
|
|
||||||
|
}
|
||||||
|
//删除本地源文件和样例文件
|
||||||
|
FileUtils.deleteFile(entity.getSrcPath());
|
||||||
|
FileUtils.deleteFile(entity.getSamplePath());
|
||||||
|
}else{
|
||||||
|
entity.setIsSampleCreated(-1);//样例文件创建失败
|
||||||
|
logger.error("样例文件生成失败");
|
||||||
|
throw new CallExternalProceduresException();
|
||||||
|
}
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
throw new CallExternalProceduresException();
|
throw new CallExternalProceduresException();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,9 +11,12 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
|
import com.nis.domain.Page;
|
||||||
import com.nis.domain.configuration.AreaIpCfg;
|
import com.nis.domain.configuration.AreaIpCfg;
|
||||||
import com.nis.domain.configuration.BaseIpCfg;
|
import com.nis.domain.configuration.BaseIpCfg;
|
||||||
|
import com.nis.domain.configuration.CfgIndexInfo;
|
||||||
import com.nis.domain.configuration.HttpUrlCfg;
|
import com.nis.domain.configuration.HttpUrlCfg;
|
||||||
|
import com.nis.domain.configuration.NtcSubscribeIdCfg;
|
||||||
import com.nis.domain.maat.MaatCfg;
|
import com.nis.domain.maat.MaatCfg;
|
||||||
import com.nis.domain.maat.MaatCfg.DigestCfg;
|
import com.nis.domain.maat.MaatCfg.DigestCfg;
|
||||||
import com.nis.domain.maat.MaatCfg.GroupCfg;
|
import com.nis.domain.maat.MaatCfg.GroupCfg;
|
||||||
@@ -29,6 +32,8 @@ import com.nis.util.StringUtil;
|
|||||||
import com.nis.web.dao.configuration.AreaIpCfgDao;
|
import com.nis.web.dao.configuration.AreaIpCfgDao;
|
||||||
import com.nis.web.dao.configuration.DomainDao;
|
import com.nis.web.dao.configuration.DomainDao;
|
||||||
import com.nis.web.dao.configuration.StringCfgDao;
|
import com.nis.web.dao.configuration.StringCfgDao;
|
||||||
|
import com.nis.web.dao.configuration.WebsiteCfgDao;
|
||||||
|
import com.nis.web.security.UserUtils;
|
||||||
import com.nis.web.service.CrudService;
|
import com.nis.web.service.CrudService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -43,6 +48,8 @@ public class DomainService extends CrudService<DomainDao,HttpUrlCfg> {
|
|||||||
@Autowired
|
@Autowired
|
||||||
protected StringCfgDao stringCfgDao;
|
protected StringCfgDao stringCfgDao;
|
||||||
@Autowired
|
@Autowired
|
||||||
|
protected WebsiteCfgDao websiteCfgDao;
|
||||||
|
@Autowired
|
||||||
protected AreaIpCfgDao areaIpCfgDao;
|
protected AreaIpCfgDao areaIpCfgDao;
|
||||||
|
|
||||||
@Transactional(readOnly=false,rollbackFor=RuntimeException.class)
|
@Transactional(readOnly=false,rollbackFor=RuntimeException.class)
|
||||||
@@ -408,4 +415,247 @@ public class DomainService extends CrudService<DomainDao,HttpUrlCfg> {
|
|||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
return domainDao.getListByCfgId(ids);
|
return domainDao.getListByCfgId(ids);
|
||||||
}
|
}
|
||||||
|
public CfgIndexInfo getDomainCfg(Long cfgId) {
|
||||||
|
CfgIndexInfo entity = websiteCfgDao.getCfgIndexInfo(cfgId);
|
||||||
|
List<HttpUrlCfg> httpUrlList = websiteCfgDao.getHttpUrlList(entity);
|
||||||
|
List<NtcSubscribeIdCfg> subscribeIdList = stringCfgDao.findSubscribeIdCfgListByCfgIndexInfo(entity);
|
||||||
|
entity.setHttpUrlList(httpUrlList);
|
||||||
|
entity.setNtcSubscribeIdCfgList(subscribeIdList);
|
||||||
|
return entity;
|
||||||
|
}
|
||||||
|
public void saveDomainCfg(CfgIndexInfo entity){
|
||||||
|
//设置区域运营商信息
|
||||||
|
setAreaEffectiveIds(entity);
|
||||||
|
|
||||||
|
entity.setIsValid(0);
|
||||||
|
entity.setIsAudit(0);
|
||||||
|
|
||||||
|
if(entity.getCfgId()==null){
|
||||||
|
Integer compileId = 0;
|
||||||
|
try {
|
||||||
|
List<Integer> idList = ConfigServiceUtil.getId(1, 1);
|
||||||
|
if(idList!=null && idList.size()>0){
|
||||||
|
compileId = idList.get(0);
|
||||||
|
}
|
||||||
|
} catch (MaatConvertException e) {
|
||||||
|
logger.info("获取编译ID出错");
|
||||||
|
throw new MaatConvertException("<spring:message code=\"request_service_failed\"/>");
|
||||||
|
}
|
||||||
|
entity.setCompileId(compileId);
|
||||||
|
entity.setCreateTime(new Date());
|
||||||
|
entity.setCreatorId(entity.getCurrentUser().getId());
|
||||||
|
websiteCfgDao.saveCfgIndex(entity);
|
||||||
|
|
||||||
|
if(entity.getHttpUrlList()!=null){
|
||||||
|
for(HttpUrlCfg cfg:entity.getHttpUrlList()){
|
||||||
|
if(StringUtils.isNotBlank(cfg.getCfgKeywords())){
|
||||||
|
BeanUtils.copyProperties(entity, cfg,new String[]{"cfgRegionCode","cfgType"});
|
||||||
|
websiteCfgDao.saveHttpUrlCfg(cfg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(entity.getNtcSubscribeIdCfgList()!=null){
|
||||||
|
for(NtcSubscribeIdCfg cfg:entity.getNtcSubscribeIdCfgList()){
|
||||||
|
if(StringUtils.isNotBlank(cfg.getCfgKeywords())){
|
||||||
|
BeanUtils.copyProperties(entity, cfg,new String[]{"cfgRegionCode","cfgType"});
|
||||||
|
stringCfgDao.saveSubscribeIdCfg(cfg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//保存区域IP信息
|
||||||
|
if(entity.getAreaCfg()!=null){
|
||||||
|
for(AreaIpCfg cfg:entity.getAreaCfg()){
|
||||||
|
cfg.initDefaultValue();
|
||||||
|
BeanUtils.copyProperties(entity, cfg,new String[]{"cfgRegionCode","cfgType"});
|
||||||
|
areaIpCfgDao.saveAreaIpCfg(cfg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}else{
|
||||||
|
entity.setEditTime(new Date());
|
||||||
|
entity.setEditorId(entity.getCurrentUser().getId());
|
||||||
|
websiteCfgDao.updateCfgIndex(entity);
|
||||||
|
//无效子配置后,再新增子配置
|
||||||
|
websiteCfgDao.deleteHttpUrlCfg(entity);
|
||||||
|
stringCfgDao.deleteSubscribeIdCfgByCfgIndexInfo(entity);
|
||||||
|
AreaIpCfg area = new AreaIpCfg();
|
||||||
|
area.setCompileId(entity.getCompileId());
|
||||||
|
area.setFunctionId(entity.getFunctionId());
|
||||||
|
areaIpCfgDao.deleteAreaIpCfg(area);
|
||||||
|
entity.setCreateTime(new Date());
|
||||||
|
entity.setCreatorId(entity.getCurrentUser().getId());
|
||||||
|
if(entity.getHttpUrlList()!=null){
|
||||||
|
for(HttpUrlCfg cfg:entity.getHttpUrlList()){
|
||||||
|
if(StringUtils.isNotBlank(cfg.getCfgKeywords())){
|
||||||
|
BeanUtils.copyProperties(entity, cfg,new String[]{"cfgRegionCode","cfgType"});
|
||||||
|
websiteCfgDao.saveHttpUrlCfg(cfg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(entity.getNtcSubscribeIdCfgList()!=null){
|
||||||
|
for(NtcSubscribeIdCfg cfg:entity.getNtcSubscribeIdCfgList()){
|
||||||
|
if(StringUtils.isNotBlank(cfg.getCfgKeywords())){
|
||||||
|
BeanUtils.copyProperties(entity, cfg,new String[]{"cfgRegionCode","cfgType"});
|
||||||
|
stringCfgDao.saveSubscribeIdCfg(cfg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//保存区域IP信息
|
||||||
|
if(entity.getAreaCfg()!=null){
|
||||||
|
for(AreaIpCfg cfg:entity.getAreaCfg()){
|
||||||
|
cfg.initDefaultValue();
|
||||||
|
BeanUtils.copyProperties(entity, cfg,new String[]{"cfgDesc","cfgRegionCode","cfgType"});
|
||||||
|
areaIpCfgDao.saveAreaIpCfg(cfg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public void updateDomainCfgValid(Integer isValid,String ids,Integer functionId){
|
||||||
|
CfgIndexInfo entity = new CfgIndexInfo();
|
||||||
|
String[] idArray = ids.split(",");
|
||||||
|
for(String id :idArray){
|
||||||
|
entity.setCfgId(Long.parseLong(id));
|
||||||
|
entity.setIsValid(isValid);
|
||||||
|
entity.setEditorId(UserUtils.getUser().getId());
|
||||||
|
entity.setEditTime(new Date());
|
||||||
|
entity.setTableName(CfgIndexInfo.getTablename());
|
||||||
|
entity.setFunctionId(functionId);
|
||||||
|
websiteCfgDao.updateCfgValid(entity);
|
||||||
|
//查询子配置
|
||||||
|
entity = this.getDomainCfg(Long.parseLong(id));
|
||||||
|
|
||||||
|
if(entity.getHttpUrlList()!=null && entity.getHttpUrlList().size()>0)
|
||||||
|
{
|
||||||
|
HttpUrlCfg cfg = new HttpUrlCfg();
|
||||||
|
BeanUtils.copyProperties(entity, cfg, new String[]{"cfgId"});
|
||||||
|
cfg.setTableName(HttpUrlCfg.getTablename());
|
||||||
|
websiteCfgDao.updateCfgValid(cfg);
|
||||||
|
}
|
||||||
|
if(entity.getNtcSubscribeIdCfgList()!=null && entity.getNtcSubscribeIdCfgList().size()>0)
|
||||||
|
{
|
||||||
|
NtcSubscribeIdCfg cfg = new NtcSubscribeIdCfg();
|
||||||
|
BeanUtils.copyProperties(entity, cfg, new String[]{"cfgId"});
|
||||||
|
cfg.setTableName(NtcSubscribeIdCfg.getTablename());
|
||||||
|
websiteCfgDao.updateCfgValid(cfg);
|
||||||
|
}
|
||||||
|
//保存区域IP信息
|
||||||
|
if(entity.getAreaCfg()!=null && entity.getAreaCfg().size()>0){
|
||||||
|
AreaIpCfg cfg = new AreaIpCfg();
|
||||||
|
BeanUtils.copyProperties(entity, cfg, new String[]{"cfgId"});
|
||||||
|
cfg.setTableName(AreaIpCfg.getTablename());
|
||||||
|
websiteCfgDao.updateCfgValid(cfg);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
public void auditDomainCfg(CfgIndexInfo entity,Integer isAudit) throws MaatConvertException{
|
||||||
|
// TODO Auto-generated method stub
|
||||||
|
//修改数据库审核状态信息
|
||||||
|
entity.setTableName(CfgIndexInfo.getTablename());
|
||||||
|
websiteCfgDao.auditCfg(entity);
|
||||||
|
|
||||||
|
ToMaatBean maatBean = new ToMaatBean();
|
||||||
|
MaatCfg maatCfg = new MaatCfg();
|
||||||
|
List<MaatCfg> configCompileList = new ArrayList();
|
||||||
|
List<GroupCfg> groupRelationList = new ArrayList();
|
||||||
|
List<IpCfg> ipRegionList = new ArrayList();
|
||||||
|
List<StringCfg> strRegionList = new ArrayList();
|
||||||
|
List<NumBoundaryCfg> numRegionList = new ArrayList();
|
||||||
|
List<DigestCfg> digestRegionList = new ArrayList();
|
||||||
|
List<IpCfg> areaIpRegionList = new ArrayList();
|
||||||
|
|
||||||
|
//查询子配置并修改审核状态
|
||||||
|
entity = this.getDomainCfg(entity.getCfgId());
|
||||||
|
|
||||||
|
if(entity.getHttpUrlList()!=null && entity.getHttpUrlList().size()>0){
|
||||||
|
HttpUrlCfg cfg = new HttpUrlCfg();
|
||||||
|
BeanUtils.copyProperties(entity, cfg, new String[]{"cfgId"});
|
||||||
|
cfg.setTableName(HttpUrlCfg.getTablename());
|
||||||
|
websiteCfgDao.auditCfg(cfg);
|
||||||
|
if(isAudit==1){
|
||||||
|
Map<String,List> map = cfgConvert(strRegionList,entity.getHttpUrlList(),2,entity,groupRelationList);
|
||||||
|
groupRelationList=map.get("groupList");
|
||||||
|
strRegionList=map.get("dstList");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(entity.getNtcSubscribeIdCfgList()!=null && entity.getNtcSubscribeIdCfgList().size()>0){
|
||||||
|
NtcSubscribeIdCfg cfg = new NtcSubscribeIdCfg();
|
||||||
|
BeanUtils.copyProperties(entity, cfg, new String[]{"cfgId"});
|
||||||
|
cfg.setTableName(NtcSubscribeIdCfg.getTablename());
|
||||||
|
websiteCfgDao.auditCfg(cfg);
|
||||||
|
if(isAudit==1){
|
||||||
|
Map<String,List> map = cfgConvert(strRegionList,entity.getNtcSubscribeIdCfgList(),2,entity,groupRelationList);
|
||||||
|
groupRelationList=map.get("groupList");
|
||||||
|
strRegionList=map.get("dstList");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//保存区域IP信息
|
||||||
|
List<AreaIpCfg> areaIpCfgList=areaIpCfgDao.getByCompileId(entity.getCompileId());
|
||||||
|
if(!StringUtil.isEmpty(areaIpCfgList)){
|
||||||
|
AreaIpCfg cfg = new AreaIpCfg();
|
||||||
|
BeanUtils.copyProperties(entity, cfg, new String[]{"cfgId"});
|
||||||
|
cfg.setTableName(AreaIpCfg.getTablename());
|
||||||
|
websiteCfgDao.auditCfg(cfg);
|
||||||
|
if(isAudit==1){
|
||||||
|
Map<String,List> map = cfgConvert(areaIpRegionList,areaIpCfgList,1,entity,groupRelationList);
|
||||||
|
groupRelationList=map.get("groupList");
|
||||||
|
areaIpRegionList=map.get("dstList");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//构造提交综合服务参数格式,一条配置提交一次综合服务
|
||||||
|
if(isAudit==1){
|
||||||
|
maatCfg.initDefaultValue();
|
||||||
|
BeanUtils.copyProperties(entity, maatCfg);
|
||||||
|
maatCfg.setAction(entity.getAction());
|
||||||
|
maatCfg.setAuditTime(entity.getAuditTime());
|
||||||
|
maatCfg.setIpRegionList(ipRegionList);
|
||||||
|
maatCfg.setStrRegionList(strRegionList);
|
||||||
|
maatCfg.setNumRegionList(numRegionList);
|
||||||
|
maatCfg.setDigestRegionList(digestRegionList);
|
||||||
|
maatCfg.setGroupRelationList(groupRelationList);
|
||||||
|
maatCfg.setGroupNum(groupRelationList.size());
|
||||||
|
maatCfg.setAreaIpRegionList(areaIpRegionList);
|
||||||
|
maatCfg.setIsValid(entity.getIsValid());
|
||||||
|
|
||||||
|
configCompileList.add(maatCfg);
|
||||||
|
maatBean.setConfigCompileList(configCompileList);
|
||||||
|
maatBean.setAuditTime(entity.getAuditTime());
|
||||||
|
maatBean.setCreatorName(entity.getCurrentUser().getName());
|
||||||
|
maatBean.setVersion(Constants.MAAT_VERSION);
|
||||||
|
maatBean.setOpAction(Constants.INSERT_ACTION);
|
||||||
|
//调用服务接口下发配置数据
|
||||||
|
String json=gsonToJson(maatBean);
|
||||||
|
logger.info("domain配置下发配置参数:"+json);
|
||||||
|
//调用服务接口下发配置
|
||||||
|
ToMaatResult result = ConfigServiceUtil.postMaatCfg(json);
|
||||||
|
logger.info("domain配置下发响应信息:"+result.getMsg());
|
||||||
|
|
||||||
|
}else if(isAudit==3){
|
||||||
|
maatCfg.setCompileId(entity.getCompileId());
|
||||||
|
maatCfg.setServiceId(entity.getServiceId());
|
||||||
|
maatCfg.setIsValid(0);//无效
|
||||||
|
configCompileList.add(maatCfg);
|
||||||
|
maatBean.setConfigCompileList(configCompileList);
|
||||||
|
maatBean.setAuditTime(entity.getAuditTime());
|
||||||
|
maatBean.setCreatorName(entity.getCurrentUser().getName());
|
||||||
|
maatBean.setVersion(Constants.MAAT_VERSION);
|
||||||
|
maatBean.setOpAction(Constants.UPDATE_ACTION);
|
||||||
|
//调用服务接口取消配置
|
||||||
|
String json=gsonToJson(maatBean);
|
||||||
|
logger.info("domain配置下发配置参数:"+json);
|
||||||
|
//调用服务接口下发配置
|
||||||
|
ToMaatResult result = ConfigServiceUtil.put(json,1);
|
||||||
|
logger.info("domain配置取消配置响应信息:"+result.getMsg());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public Page<CfgIndexInfo> getDomainList(Page<CfgIndexInfo> page, CfgIndexInfo entity){
|
||||||
|
// 生成数据权限过滤条件(dsf为dataScopeFilter的简写,在xml中使用 ${sqlMap.dsf}调用权限SQL)
|
||||||
|
entity.getSqlMap().put("dsf", configScopeFilter(entity.getCurrentUser(),"a"));
|
||||||
|
entity.setPage(page);
|
||||||
|
List<CfgIndexInfo> list = websiteCfgDao.getWebsiteList(entity);
|
||||||
|
page.setList(list);
|
||||||
|
return page;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -501,8 +501,13 @@ public class FileTransferCfgService extends CrudService<FileTransferCfgDao,CfgIn
|
|||||||
entity.setFunctionId(functionId);
|
entity.setFunctionId(functionId);
|
||||||
fileTransferCfgDao.updateFileDigestCfg(entity);
|
fileTransferCfgDao.updateFileDigestCfg(entity);
|
||||||
|
|
||||||
entity = fileTransferCfgDao.getFileDigest(Long.parseLong(id));
|
entity = this.getFileDigestCfg(Long.parseLong(id));
|
||||||
|
// 修改子域配置状态
|
||||||
|
if((entity.getNtcSubscribeIdCfgList() != null) && (entity.getNtcSubscribeIdCfgList().size() > 0)) {
|
||||||
|
NtcSubscribeIdCfg cfg = new NtcSubscribeIdCfg();
|
||||||
|
BeanUtils.copyProperties(entity, cfg, new String[] {"cfgId"});
|
||||||
|
stringCfgDao.updateSubscribeIdCfg(cfg);
|
||||||
|
}
|
||||||
AreaIpCfg areaIpCfg=new AreaIpCfg();
|
AreaIpCfg areaIpCfg=new AreaIpCfg();
|
||||||
BeanUtils.copyProperties(entity, areaIpCfg,new String[]{"cfgRegionCode"
|
BeanUtils.copyProperties(entity, areaIpCfg,new String[]{"cfgRegionCode"
|
||||||
,"cfgType"
|
,"cfgType"
|
||||||
@@ -522,20 +527,24 @@ public class FileTransferCfgService extends CrudService<FileTransferCfgDao,CfgIn
|
|||||||
entity.setAuditTime(auditTime);
|
entity.setAuditTime(auditTime);
|
||||||
fileTransferCfgDao.updateFileDigestCfg(entity);
|
fileTransferCfgDao.updateFileDigestCfg(entity);
|
||||||
|
|
||||||
entity = fileTransferCfgDao.getFileDigest(Long.parseLong(id));
|
entity = this.getFileDigestCfg(Long.parseLong(id));
|
||||||
|
// 修改域配置审核状态
|
||||||
|
if((entity.getNtcSubscribeIdCfgList() != null) && (entity.getNtcSubscribeIdCfgList().size() > 0)) {
|
||||||
|
NtcSubscribeIdCfg cfg = new NtcSubscribeIdCfg();
|
||||||
|
BeanUtils.copyProperties(entity, cfg, new String[] {"cfgId"});
|
||||||
|
stringCfgDao.updateSubscribeIdCfg(cfg);
|
||||||
|
}
|
||||||
|
|
||||||
List list=new ArrayList();
|
List list=new ArrayList();
|
||||||
list.add(entity);
|
list.add(entity);
|
||||||
|
|
||||||
AreaIpCfg areaIpCfg=new AreaIpCfg();
|
AreaIpCfg areaIpCfg=new AreaIpCfg();
|
||||||
BeanUtils.copyProperties(entity, areaIpCfg,new String[]{"cfgRegionCode"
|
BeanUtils.copyProperties(entity, areaIpCfg,new String[]{"cfgRegionCode"
|
||||||
,"cfgType"
|
,"cfgType"
|
||||||
,"cfgId"
|
,"cfgId"
|
||||||
});
|
});
|
||||||
areaIpCfgDao.updateAreaIpCfgValid(areaIpCfg);
|
areaIpCfgDao.updateAreaIpCfgValid(areaIpCfg);
|
||||||
|
|
||||||
List<AreaIpCfg> areaIpCfgList=areaIpCfgDao.getByCompileId(entity.getCompileId());
|
List<AreaIpCfg> areaIpCfgList=areaIpCfgDao.getByCompileId(entity.getCompileId());
|
||||||
|
|
||||||
|
|
||||||
ToMaatBean maatBean = new ToMaatBean();
|
ToMaatBean maatBean = new ToMaatBean();
|
||||||
MaatCfg maatCfg = new MaatCfg();
|
MaatCfg maatCfg = new MaatCfg();
|
||||||
List<MaatCfg> configCompileList = new ArrayList();
|
List<MaatCfg> configCompileList = new ArrayList();
|
||||||
|
|||||||
@@ -14,10 +14,13 @@ import org.springframework.stereotype.Service;
|
|||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
import com.nis.domain.FunctionRegionDict;
|
import com.nis.domain.FunctionRegionDict;
|
||||||
|
import com.nis.domain.Page;
|
||||||
import com.nis.domain.callback.InlineIp;
|
import com.nis.domain.callback.InlineIp;
|
||||||
import com.nis.domain.configuration.AreaIpCfg;
|
import com.nis.domain.configuration.AreaIpCfg;
|
||||||
import com.nis.domain.configuration.BaseIpCfg;
|
import com.nis.domain.configuration.BaseIpCfg;
|
||||||
|
import com.nis.domain.configuration.CfgIndexInfo;
|
||||||
import com.nis.domain.configuration.IpPortCfg;
|
import com.nis.domain.configuration.IpPortCfg;
|
||||||
|
import com.nis.domain.configuration.NtcSubscribeIdCfg;
|
||||||
import com.nis.domain.maat.MaatCfg;
|
import com.nis.domain.maat.MaatCfg;
|
||||||
import com.nis.domain.maat.MaatCfg.DigestCfg;
|
import com.nis.domain.maat.MaatCfg.DigestCfg;
|
||||||
import com.nis.domain.maat.MaatCfg.GroupCfg;
|
import com.nis.domain.maat.MaatCfg.GroupCfg;
|
||||||
@@ -34,6 +37,8 @@ import com.nis.util.DictUtils;
|
|||||||
import com.nis.util.StringUtil;
|
import com.nis.util.StringUtil;
|
||||||
import com.nis.web.dao.configuration.AreaIpCfgDao;
|
import com.nis.web.dao.configuration.AreaIpCfgDao;
|
||||||
import com.nis.web.dao.configuration.IpCfgDao;
|
import com.nis.web.dao.configuration.IpCfgDao;
|
||||||
|
import com.nis.web.dao.configuration.StringCfgDao;
|
||||||
|
import com.nis.web.security.UserUtils;
|
||||||
import com.nis.web.service.CrudService;
|
import com.nis.web.service.CrudService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -46,6 +51,8 @@ public class IpCfgService extends CrudService<IpCfgDao,BaseIpCfg> {
|
|||||||
@Autowired
|
@Autowired
|
||||||
protected IpCfgDao ipCfgDao;
|
protected IpCfgDao ipCfgDao;
|
||||||
@Autowired
|
@Autowired
|
||||||
|
protected StringCfgDao stringCfgDao;
|
||||||
|
@Autowired
|
||||||
protected AreaIpCfgDao areaIpCfgDao;
|
protected AreaIpCfgDao areaIpCfgDao;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
@@ -89,6 +96,126 @@ public class IpCfgService extends CrudService<IpCfgDao,BaseIpCfg> {
|
|||||||
throw new MaatConvertException("<spring:message code=\"request_service_failed\"/>: compileId is 0");
|
throw new MaatConvertException("<spring:message code=\"request_service_failed\"/>: compileId is 0");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
@Transactional(readOnly=false,rollbackFor=RuntimeException.class)
|
||||||
|
public void saveIpCfg(CfgIndexInfo entity){
|
||||||
|
//设置区域运营商信息
|
||||||
|
setAreaEffectiveIds(entity);
|
||||||
|
|
||||||
|
entity.setIsValid(0);
|
||||||
|
entity.setIsAudit(0);
|
||||||
|
|
||||||
|
if(entity.getCfgId()==null){
|
||||||
|
Integer compileId = 0;
|
||||||
|
try {
|
||||||
|
List<Integer> idList = ConfigServiceUtil.getId(1, 1);
|
||||||
|
if(idList!=null && idList.size()>0){
|
||||||
|
compileId = idList.get(0);
|
||||||
|
}
|
||||||
|
} catch (MaatConvertException e) {
|
||||||
|
logger.info("获取编译ID出错");
|
||||||
|
throw new MaatConvertException("<spring:message code=\"request_service_failed\"/>");
|
||||||
|
}
|
||||||
|
entity.setCompileId(compileId);
|
||||||
|
entity.setCreateTime(new Date());
|
||||||
|
entity.setCreatorId(entity.getCurrentUser().getId());
|
||||||
|
ipCfgDao.saveCfgIndex(entity);
|
||||||
|
if(entity.getIpPortList()!=null){
|
||||||
|
for(IpPortCfg cfg:entity.getIpPortList()){
|
||||||
|
BeanUtils.copyProperties(entity, cfg,new String[]{"cfgRegionCode","cfgType"});
|
||||||
|
ipCfgDao.saveIpPortCfg(cfg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(entity.getNtcSubscribeIdCfgList()!=null){
|
||||||
|
for(NtcSubscribeIdCfg cfg:entity.getNtcSubscribeIdCfgList()){
|
||||||
|
if(StringUtils.isNotBlank(cfg.getCfgKeywords())){
|
||||||
|
BeanUtils.copyProperties(entity, cfg,new String[]{"cfgRegionCode","cfgType"});
|
||||||
|
stringCfgDao.saveSubscribeIdCfg(cfg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//保存区域IP信息
|
||||||
|
if(entity.getAreaCfg()!=null){
|
||||||
|
for(AreaIpCfg cfg:entity.getAreaCfg()){
|
||||||
|
cfg.initDefaultValue();
|
||||||
|
BeanUtils.copyProperties(entity, cfg,new String[]{"cfgRegionCode","cfgType"});
|
||||||
|
areaIpCfgDao.saveAreaIpCfg(cfg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}else{
|
||||||
|
entity.setEditTime(new Date());
|
||||||
|
entity.setEditorId(entity.getCurrentUser().getId());
|
||||||
|
ipCfgDao.updateCfgIndex(entity);
|
||||||
|
//无效子配置后,再新增子配置
|
||||||
|
ipCfgDao.deleteIpCfg(entity);
|
||||||
|
stringCfgDao.deleteSubscribeIdCfgByCfgIndexInfo(entity);
|
||||||
|
AreaIpCfg area = new AreaIpCfg();
|
||||||
|
area.setCompileId(entity.getCompileId());
|
||||||
|
area.setFunctionId(entity.getFunctionId());
|
||||||
|
areaIpCfgDao.deleteAreaIpCfg(area);
|
||||||
|
entity.setCreateTime(new Date());
|
||||||
|
entity.setCreatorId(entity.getCurrentUser().getId());
|
||||||
|
if(entity.getIpPortList()!=null){
|
||||||
|
for(IpPortCfg cfg:entity.getIpPortList()){
|
||||||
|
BeanUtils.copyProperties(entity, cfg,new String[]{"cfgRegionCode","cfgType"});
|
||||||
|
ipCfgDao.saveIpPortCfg(cfg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(entity.getNtcSubscribeIdCfgList()!=null){
|
||||||
|
for(NtcSubscribeIdCfg cfg:entity.getNtcSubscribeIdCfgList()){
|
||||||
|
if(StringUtils.isNotBlank(cfg.getCfgKeywords())){
|
||||||
|
BeanUtils.copyProperties(entity, cfg,new String[]{"cfgRegionCode","cfgType"});
|
||||||
|
stringCfgDao.saveSubscribeIdCfg(cfg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//保存区域IP信息
|
||||||
|
if(entity.getAreaCfg()!=null){
|
||||||
|
for(AreaIpCfg cfg:entity.getAreaCfg()){
|
||||||
|
cfg.initDefaultValue();
|
||||||
|
BeanUtils.copyProperties(entity, cfg,new String[]{"cfgDesc","cfgRegionCode","cfgType"});
|
||||||
|
areaIpCfgDao.saveAreaIpCfg(cfg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public void updateIpCfgValid(Integer isValid,String ids,Integer functionId){
|
||||||
|
CfgIndexInfo entity = new CfgIndexInfo();
|
||||||
|
String[] idArray = ids.split(",");
|
||||||
|
for(String id :idArray){
|
||||||
|
entity.setCfgId(Long.parseLong(id));
|
||||||
|
entity.setIsValid(isValid);
|
||||||
|
entity.setEditorId(UserUtils.getUser().getId());
|
||||||
|
entity.setEditTime(new Date());
|
||||||
|
entity.setTableName(CfgIndexInfo.getTablename());
|
||||||
|
entity.setFunctionId(functionId);
|
||||||
|
ipCfgDao.updateCfgValid(entity);
|
||||||
|
//查询子配置
|
||||||
|
entity = this.getIpPortCfg(Long.parseLong(id));
|
||||||
|
if(entity.getIpPortList()!=null && entity.getIpPortList().size()>0){
|
||||||
|
IpPortCfg cfg = new IpPortCfg();
|
||||||
|
BeanUtils.copyProperties(entity, cfg, new String[]{"cfgId"});
|
||||||
|
cfg.setTableName(IpPortCfg.getTablename());
|
||||||
|
ipCfgDao.updateCfgValid(cfg);
|
||||||
|
}
|
||||||
|
if(entity.getNtcSubscribeIdCfgList()!=null && entity.getNtcSubscribeIdCfgList().size()>0)
|
||||||
|
{
|
||||||
|
NtcSubscribeIdCfg cfg = new NtcSubscribeIdCfg();
|
||||||
|
BeanUtils.copyProperties(entity, cfg, new String[]{"cfgId"});
|
||||||
|
cfg.setTableName(NtcSubscribeIdCfg.getTablename());
|
||||||
|
ipCfgDao.updateCfgValid(cfg);
|
||||||
|
}
|
||||||
|
//保存区域IP信息
|
||||||
|
if(entity.getAreaCfg()!=null && entity.getAreaCfg().size()>0){
|
||||||
|
AreaIpCfg cfg = new AreaIpCfg();
|
||||||
|
BeanUtils.copyProperties(entity, cfg, new String[]{"cfgId"});
|
||||||
|
cfg.setTableName(AreaIpCfg.getTablename());
|
||||||
|
ipCfgDao.updateCfgValid(cfg);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
@@ -369,7 +496,166 @@ public class IpCfgService extends CrudService<IpCfgDao,BaseIpCfg> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
public void auditIpCfg(CfgIndexInfo entity,Integer isAudit) throws MaatConvertException{
|
||||||
|
Properties props=this.getMsgProp();
|
||||||
|
//修改数据库审核状态信息
|
||||||
|
entity.setTableName(CfgIndexInfo.getTablename());
|
||||||
|
ipCfgDao.auditCfg(entity);
|
||||||
|
ToMaatBean maatBean = new ToMaatBean();
|
||||||
|
MaatCfg maatCfg = new MaatCfg();
|
||||||
|
List<MaatCfg> configCompileList = new ArrayList();
|
||||||
|
List<GroupCfg> groupRelationList = new ArrayList();
|
||||||
|
List<IpCfg> ipRegionList = new ArrayList();
|
||||||
|
List<StringCfg> strRegionList = new ArrayList();
|
||||||
|
List<NumBoundaryCfg> numRegionList = new ArrayList();
|
||||||
|
List<DigestCfg> digestRegionList = new ArrayList();
|
||||||
|
List<IpCfg> areaIpRegionList = new ArrayList();
|
||||||
|
//获取region
|
||||||
|
List<FunctionRegionDict> dictList = DictUtils.getFunctionRegionDictList(entity.getFunctionId());
|
||||||
|
int maatType=0;
|
||||||
|
//查询子配置并修改审核状态
|
||||||
|
entity = this.getIpPortCfg(entity.getCfgId());
|
||||||
|
if(entity.getIpPortList()!=null && entity.getIpPortList().size()>0){
|
||||||
|
//判断下发类型是走maat还是callback
|
||||||
|
String regionValue=entity.getIpPortList().get(0).getCfgType();
|
||||||
|
if(regionValue!=null) {
|
||||||
|
for(FunctionRegionDict region:dictList) {
|
||||||
|
if(regionValue.equals(region.getConfigRegionValue())) {
|
||||||
|
maatType=region.getIsMaat();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
IpPortCfg cfg = new IpPortCfg();
|
||||||
|
BeanUtils.copyProperties(entity, cfg, new String[]{"cfgId"});
|
||||||
|
cfg.setTableName(IpPortCfg.getTablename());
|
||||||
|
ipCfgDao.auditCfg(cfg);
|
||||||
|
if(isAudit==1){
|
||||||
|
Map<String,List> map = cfgConvert(ipRegionList,entity.getIpPortList(),1,entity,groupRelationList);
|
||||||
|
groupRelationList=map.get("groupList");
|
||||||
|
ipRegionList=map.get("dstList");
|
||||||
|
if(map.get("numRegionList")!=null){
|
||||||
|
numRegionList.addAll(map.get("numRegionList"));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(entity.getNtcSubscribeIdCfgList()!=null && entity.getNtcSubscribeIdCfgList().size()>0){
|
||||||
|
NtcSubscribeIdCfg cfg = new NtcSubscribeIdCfg();
|
||||||
|
BeanUtils.copyProperties(entity, cfg, new String[]{"cfgId"});
|
||||||
|
cfg.setTableName(NtcSubscribeIdCfg.getTablename());
|
||||||
|
ipCfgDao.auditCfg(cfg);
|
||||||
|
if(isAudit==1){
|
||||||
|
Map<String,List> map = cfgConvert(strRegionList,entity.getNtcSubscribeIdCfgList(),2,entity,groupRelationList);
|
||||||
|
groupRelationList=map.get("groupList");
|
||||||
|
strRegionList=map.get("dstList");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//保存区域IP信息
|
||||||
|
List<AreaIpCfg> areaIpCfgList=areaIpCfgDao.getByCompileId(entity.getCompileId());
|
||||||
|
if(!StringUtil.isEmpty(areaIpCfgList)){
|
||||||
|
AreaIpCfg cfg = new AreaIpCfg();
|
||||||
|
BeanUtils.copyProperties(entity, cfg, new String[]{"cfgId"});
|
||||||
|
cfg.setTableName(AreaIpCfg.getTablename());
|
||||||
|
ipCfgDao.auditCfg(cfg);
|
||||||
|
if(isAudit==1){
|
||||||
|
Map<String,List> map = cfgConvert(areaIpRegionList,areaIpCfgList,1,entity,groupRelationList);
|
||||||
|
groupRelationList=map.get("groupList");
|
||||||
|
areaIpRegionList=map.get("dstList");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//构造提交综合服务参数格式,一条配置提交一次综合服务
|
||||||
|
if(isAudit==1){
|
||||||
|
if(maatType==Constants.CALLBACK_TYPE){
|
||||||
|
List<InlineIp> ipList=new ArrayList<>();
|
||||||
|
for(IpPortCfg cfg :entity.getIpPortList()) {
|
||||||
|
BeanUtils.copyProperties(entity, cfg, new String[]{"cfgId"});
|
||||||
|
InlineIp ip=convertCallBackIp(cfg,null);
|
||||||
|
ipList.add(ip);
|
||||||
|
}
|
||||||
|
//调用服务接口下发配置数据
|
||||||
|
String json=gsonToJson(ipList);
|
||||||
|
logger.info("IP配置下发配置参数:"+json);
|
||||||
|
//调用服务接口下发配置
|
||||||
|
try {
|
||||||
|
ToMaatResult result = ConfigServiceUtil.postCallbackCfg(json);
|
||||||
|
if(result!=null){
|
||||||
|
logger.info("IP配置配置下发响应信息:"+result.getMsg());
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.error("IP配置配置下发失败",e);
|
||||||
|
throw e;
|
||||||
|
}
|
||||||
|
}else if(maatType==Constants.MAAT_TYPE){
|
||||||
|
maatCfg.initDefaultValue();
|
||||||
|
BeanUtils.copyProperties(entity, maatCfg);
|
||||||
|
maatCfg.setAction(entity.getAction());
|
||||||
|
maatCfg.setAuditTime(entity.getAuditTime());
|
||||||
|
maatCfg.setIpRegionList(ipRegionList);
|
||||||
|
maatCfg.setStrRegionList(strRegionList);
|
||||||
|
maatCfg.setNumRegionList(numRegionList);
|
||||||
|
maatCfg.setDigestRegionList(digestRegionList);
|
||||||
|
maatCfg.setGroupRelationList(groupRelationList);
|
||||||
|
maatCfg.setGroupNum(groupRelationList.size());
|
||||||
|
maatCfg.setAreaIpRegionList(areaIpRegionList);
|
||||||
|
maatCfg.setIsValid(entity.getIsValid());
|
||||||
|
|
||||||
|
configCompileList.add(maatCfg);
|
||||||
|
maatBean.setConfigCompileList(configCompileList);
|
||||||
|
maatBean.setAuditTime(entity.getAuditTime());
|
||||||
|
maatBean.setCreatorName(entity.getCurrentUser().getName());
|
||||||
|
maatBean.setVersion(Constants.MAAT_VERSION);
|
||||||
|
maatBean.setOpAction(Constants.INSERT_ACTION);
|
||||||
|
//调用服务接口下发配置数据
|
||||||
|
String json=gsonToJson(maatBean);
|
||||||
|
logger.info("ip配置下发配置参数:"+json);
|
||||||
|
//调用服务接口下发配置
|
||||||
|
ToMaatResult result = ConfigServiceUtil.postMaatCfg(json);
|
||||||
|
logger.info("ip配置下发响应信息:"+result.getMsg());
|
||||||
|
}else {
|
||||||
|
throw new RuntimeException("<spring:message code=\"request_service_failed\"/>:"+props.getProperty("unknown_cfg_type"));
|
||||||
|
}
|
||||||
|
}else if(isAudit==3){
|
||||||
|
if(maatType==Constants.CALLBACK_TYPE){
|
||||||
|
List<InlineIp> ipList=new ArrayList<>();
|
||||||
|
for(IpPortCfg cfg :entity.getIpPortList()) {
|
||||||
|
BeanUtils.copyProperties(entity, cfg, new String[]{"cfgId"});
|
||||||
|
InlineIp ip=convertCallBackIp(cfg,null);
|
||||||
|
ipList.add(ip);
|
||||||
|
}
|
||||||
|
//调用服务接口下发配置数据
|
||||||
|
String json=gsonToJson(ipList);
|
||||||
|
logger.info("IP配置下发配置参数:"+json);
|
||||||
|
//调用服务接口下发配置
|
||||||
|
try {
|
||||||
|
ToMaatResult result = ConfigServiceUtil.put(json, 2);
|
||||||
|
if(result!=null){
|
||||||
|
logger.info("IP配置配置下发响应信息:"+result.getMsg());
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.error("IP配置配置下发失败",e);
|
||||||
|
throw e;
|
||||||
|
}
|
||||||
|
}else if(maatType==Constants.MAAT_TYPE){
|
||||||
|
maatCfg.setCompileId(entity.getCompileId());
|
||||||
|
maatCfg.setServiceId(entity.getServiceId());
|
||||||
|
maatCfg.setIsValid(0);//无效
|
||||||
|
configCompileList.add(maatCfg);
|
||||||
|
maatBean.setConfigCompileList(configCompileList);
|
||||||
|
maatBean.setAuditTime(entity.getAuditTime());
|
||||||
|
maatBean.setCreatorName(entity.getCurrentUser().getName());
|
||||||
|
maatBean.setVersion(Constants.MAAT_VERSION);
|
||||||
|
maatBean.setOpAction(Constants.UPDATE_ACTION);
|
||||||
|
//调用服务接口取消配置
|
||||||
|
String json=gsonToJson(maatBean);
|
||||||
|
logger.info("ip配置下发配置参数:"+json);
|
||||||
|
//调用服务接口下发配置
|
||||||
|
ToMaatResult result = ConfigServiceUtil.put(json,1);
|
||||||
|
logger.info("ip配置取消配置响应信息:"+result.getMsg());
|
||||||
|
}else {
|
||||||
|
throw new RuntimeException("<spring:message code=\"request_service_failed\"/>:"+props.getProperty("unknown_cfg_type"));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@Transactional(readOnly=false,rollbackFor=RuntimeException.class)
|
@Transactional(readOnly=false,rollbackFor=RuntimeException.class)
|
||||||
public void deleteIp(String ids,String compileIds,int functionId){
|
public void deleteIp(String ids,String compileIds,int functionId){
|
||||||
if(StringUtils.isNotBlank(compileIds)){
|
if(StringUtils.isNotBlank(compileIds)){
|
||||||
@@ -431,6 +717,14 @@ public class IpCfgService extends CrudService<IpCfgDao,BaseIpCfg> {
|
|||||||
public BaseIpCfg getIpCfgById(BaseIpCfg baseIpCfg){
|
public BaseIpCfg getIpCfgById(BaseIpCfg baseIpCfg){
|
||||||
return ipCfgDao.getById(baseIpCfg.getTableName(), baseIpCfg.getCfgId());
|
return ipCfgDao.getById(baseIpCfg.getTableName(), baseIpCfg.getCfgId());
|
||||||
}
|
}
|
||||||
|
public CfgIndexInfo getIpPortCfg(Long cfgId){
|
||||||
|
CfgIndexInfo entity = ipCfgDao.getCfgIndexInfo(cfgId);
|
||||||
|
List<IpPortCfg> ipPortList = ipCfgDao.getIpPortList(entity);
|
||||||
|
List<NtcSubscribeIdCfg> subscribeIdList = stringCfgDao.findSubscribeIdCfgListByCfgIndexInfo(entity);
|
||||||
|
entity.setIpPortList(ipPortList);
|
||||||
|
entity.setNtcSubscribeIdCfgList(subscribeIdList);
|
||||||
|
return entity;
|
||||||
|
}
|
||||||
public BaseIpCfg getIpCfgById(String tableName,long id){
|
public BaseIpCfg getIpCfgById(String tableName,long id){
|
||||||
return ipCfgDao.getById(tableName, id);
|
return ipCfgDao.getById(tableName, id);
|
||||||
}
|
}
|
||||||
@@ -507,4 +801,11 @@ public class IpCfgService extends CrudService<IpCfgDao,BaseIpCfg> {
|
|||||||
}
|
}
|
||||||
return msgProp;
|
return msgProp;
|
||||||
}
|
}
|
||||||
|
public Page<CfgIndexInfo> getIpCfgList(Page<CfgIndexInfo> page, CfgIndexInfo entity) {
|
||||||
|
entity.getSqlMap().put("dsf", configScopeFilter(entity.getCurrentUser(),"a"));
|
||||||
|
entity.setPage(page);
|
||||||
|
List<CfgIndexInfo> list = ipCfgDao.getIpCfgList(entity);
|
||||||
|
page.setList(list);
|
||||||
|
return page;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1096,8 +1096,8 @@ APP_SUBSCRIBE_ID=Certification Mark Configuration
|
|||||||
reply_file=Reply File
|
reply_file=Reply File
|
||||||
app_topic_domain_cfg=Topic Website
|
app_topic_domain_cfg=Topic Website
|
||||||
#=====================about app Tcp=================================
|
#=====================about app Tcp=================================
|
||||||
min_tcp=Minimum Session Number
|
min_tcp=Minimum Session Size
|
||||||
max_tcp=Maximum Session Number
|
max_tcp=Maximum Session Size
|
||||||
tcp_unit=Unit / byte
|
tcp_unit=Unit / byte
|
||||||
app_tcp_config=APP TCP Session Feature
|
app_tcp_config=APP TCP Session Feature
|
||||||
app_tcp_max_min=Maximum Session Should Not Exceed 4294967295
|
app_tcp_max_min=Maximum Session Should Not Exceed 4294967295
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ updatePwd=\u0418\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u043F\u0430\u0440\u0
|
|||||||
show=\u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C
|
show=\u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C
|
||||||
edit= \u0440\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C
|
edit= \u0440\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C
|
||||||
hi=\u041F\u0440\u0438\u0432\u0435\u0442
|
hi=\u041F\u0440\u0438\u0432\u0435\u0442
|
||||||
Exit=\u0412\u044B\u0445\u043E\u0434
|
exit=\u0412\u044B\u0445\u043E\u0434
|
||||||
choose=\u0412\u044B\u0431\u0440\u0430\u0442\u044C
|
choose=\u0412\u044B\u0431\u0440\u0430\u0442\u044C
|
||||||
onloading=\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 ...
|
onloading=\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 ...
|
||||||
#==========menu begin=====================
|
#==========menu begin=====================
|
||||||
@@ -98,7 +98,7 @@ service_manage=\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u04
|
|||||||
system_service_manage=\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u0431\u0438\u0437\u043D\u0435\u0441-\u0442\u0438\u043F\u043E\u043C \u0441\u0438\u0441\u0442\u0435\u043C\u044B
|
system_service_manage=\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u0431\u0438\u0437\u043D\u0435\u0441-\u0442\u0438\u043F\u043E\u043C \u0441\u0438\u0441\u0442\u0435\u043C\u044B
|
||||||
features_area=\u0417\u043E\u043D\u0430 \u0441\u043F\u0435\u0446\u0438\u0444\u0438\u043A\u0438
|
features_area=\u0417\u043E\u043D\u0430 \u0441\u043F\u0435\u0446\u0438\u0444\u0438\u043A\u0438
|
||||||
attribute_manage=\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u0441\u0432\u043E\u0439\u0441\u0442\u0432\u0430\u043C\u0438
|
attribute_manage=\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u0441\u0432\u043E\u0439\u0441\u0442\u0432\u0430\u043C\u0438
|
||||||
Isp_manage=\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u043E\u043F\u0435\u0440\u0430\u0442\u043E\u0440\u043E\u043C
|
isp_manage=\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u043E\u043F\u0435\u0440\u0430\u0442\u043E\u0440\u043E\u043C
|
||||||
ip_multiple_control=IP \u043C\u043D\u043E\u0433\u043E\u0434\u043E\u043C\u0435\u043D\u043D\u043E\u0435 \u0443\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435
|
ip_multiple_control=IP \u043C\u043D\u043E\u0433\u043E\u0434\u043E\u043C\u0435\u043D\u043D\u043E\u0435 \u0443\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435
|
||||||
ip_port_control=\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 IP + \u043F\u043E\u0440\u0442\u0430\u043C\u0438
|
ip_port_control=\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 IP + \u043F\u043E\u0440\u0442\u0430\u043C\u0438
|
||||||
website_multiple_control=\u041C\u043D\u043E\u0433\u043E\u0434\u043E\u043C\u0435\u043D\u043D\u043E\u0435 \u0443\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u0432\u0435\u0431-\u0441\u0430\u0439\u0442\u043E\u043C
|
website_multiple_control=\u041C\u043D\u043E\u0433\u043E\u0434\u043E\u043C\u0435\u043D\u043D\u043E\u0435 \u0443\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u0432\u0435\u0431-\u0441\u0430\u0439\u0442\u043E\u043C
|
||||||
@@ -1024,7 +1024,6 @@ MM_AV_URL=\u0410\u0443\u0434\u0438\u043E \u0438 \u0432\u0435\u0434\u0438\u043E U
|
|||||||
MM_VOIP_IP=VoIP IP
|
MM_VOIP_IP=VoIP IP
|
||||||
MM_VOIP_ACCOUNT=\u0421\u0447\u0435\u0442 VoIP
|
MM_VOIP_ACCOUNT=\u0421\u0447\u0435\u0442 VoIP
|
||||||
#=======================for import ip configuration=================
|
#=======================for import ip configuration=================
|
||||||
<<<<<<< HEAD
|
|
||||||
drop_ip=\u041E\u0442\u0431\u0440\u0430\u0441\u044B\u0432\u0430\u043D\u0438\u0435IP
|
drop_ip=\u041E\u0442\u0431\u0440\u0430\u0441\u044B\u0432\u0430\u043D\u0438\u0435IP
|
||||||
loop_ip=\u0420\u0435\u0444\u043B\u044E\u043A\u0441 IP
|
loop_ip=\u0420\u0435\u0444\u043B\u044E\u043A\u0441 IP
|
||||||
drop_or_loop_ip=\u041E\u0442\u0431\u0440\u0430\u0441\u044B\u0432\u0430\u043D\u0438\u0435/\u0420\u0435\u0444\u043B\u044E\u043A\u0441 IP
|
drop_or_loop_ip=\u041E\u0442\u0431\u0440\u0430\u0441\u044B\u0432\u0430\u043D\u0438\u0435/\u0420\u0435\u0444\u043B\u044E\u043A\u0441 IP
|
||||||
@@ -1040,7 +1039,6 @@ tunnel_code=\u0421\u0435\u0440\u0438\u0439\u043D\u044B\u0439 \u043D\u043E\u043C\
|
|||||||
tunnel_name=\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435 \u0437\u0430\u0448\u0438\u0444\u0440\u043E\u0432\u0430\u043D\u043D\u043E\u0433\u043E \u0442\u0443\u043D\u043D\u0435\u043B\u044C\u043D\u043E\u0433\u043E \u043F\u043E\u0432\u0435\u0434\u0435\u043D\u0438\u044F
|
tunnel_name=\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435 \u0437\u0430\u0448\u0438\u0444\u0440\u043E\u0432\u0430\u043D\u043D\u043E\u0433\u043E \u0442\u0443\u043D\u043D\u0435\u043B\u044C\u043D\u043E\u0433\u043E \u043F\u043E\u0432\u0435\u0434\u0435\u043D\u0438\u044F
|
||||||
tunnel_desc= \u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435 \u0437\u0430\u0448\u0438\u0444\u0440\u043E\u0432\u0430\u043D\u043D\u043E\u0433\u043E \u0442\u0443\u043D\u043D\u0435\u043B\u044C\u043D\u043E\u0433\u043E \u043F\u043E\u0432\u0435\u0434\u0435\u043D\u0438\u044F
|
tunnel_desc= \u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435 \u0437\u0430\u0448\u0438\u0444\u0440\u043E\u0432\u0430\u043D\u043D\u043E\u0433\u043E \u0442\u0443\u043D\u043D\u0435\u043B\u044C\u043D\u043E\u0433\u043E \u043F\u043E\u0432\u0435\u0434\u0435\u043D\u0438\u044F
|
||||||
call_external_procedures_failed=\u041E\u0448\u0438\u0431\u043A\u0430 \u0432\u044B\u0437\u043E\u0432\u0430 \u0432\u043D\u0435\u0448\u043D\u0435\u0439 \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u044B
|
call_external_procedures_failed=\u041E\u0448\u0438\u0431\u043A\u0430 \u0432\u044B\u0437\u043E\u0432\u0430 \u0432\u043D\u0435\u0448\u043D\u0435\u0439 \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u044B
|
||||||
=======
|
|
||||||
drop_ip=IP Drop
|
drop_ip=IP Drop
|
||||||
loop_ip=IP Loop
|
loop_ip=IP Loop
|
||||||
drop_or_loop_ip=IP Drop Or Loop
|
drop_or_loop_ip=IP Drop Or Loop
|
||||||
@@ -1050,4 +1048,3 @@ file_desc=File Desc
|
|||||||
content_type=Content Type
|
content_type=Content Type
|
||||||
content_length=Content Length
|
content_length=Content Length
|
||||||
response_file=Response File
|
response_file=Response File
|
||||||
>>>>>>> branch 'develop' of http://10.0.6.99/gwall/gwall.git
|
|
||||||
|
|||||||
10
src/main/resources/sql/alter_ratelimit_varchar.sql
Normal file
10
src/main/resources/sql/alter_ratelimit_varchar.sql
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
ALTER TABLE app_byte_cfg MODIFY ratelimit VARCHAR(10) NULL COMMENT '限速比例,0到1之间';
|
||||||
|
ALTER TABLE app_domain_cfg MODIFY ratelimit VARCHAR(10) NULL COMMENT '限速比例,0到1之间';
|
||||||
|
ALTER TABLE app_http_cfg MODIFY ratelimit VARCHAR(10) NULL COMMENT '限速比例,0到1之间';
|
||||||
|
ALTER TABLE app_layer_header_cfg MODIFY ratelimit VARCHAR(10) NULL COMMENT '限速比例,0到1之间';
|
||||||
|
ALTER TABLE app_policy_cfg MODIFY ratelimit VARCHAR(10) NULL COMMENT '限速比例,0到1之间';
|
||||||
|
ALTER TABLE app_ssl_cert_cfg MODIFY ratelimit VARCHAR(10) NULL COMMENT '限速比例,0到1之间';
|
||||||
|
ALTER TABLE area_ip_cfg MODIFY ratelimit VARCHAR(10) NULL COMMENT '限速比例,0到1之间';
|
||||||
|
ALTER TABLE dns_domain_cfg MODIFY ratelimit VARCHAR(10) NULL COMMENT '限速比例,0到1之间';
|
||||||
|
ALTER TABLE http_url_cfg MODIFY ratelimit VARCHAR(10) NULL COMMENT '限速比例,0到1之间';
|
||||||
|
ALTER TABLE ip_port_cfg MODIFY ratelimit VARCHAR(10) NULL COMMENT '限速比例,0到1之间';
|
||||||
@@ -1,2 +1,7 @@
|
|||||||
alter table cfg_index_info add do_log int(11) COMMENT 'do_log:0不需要1记录所有日志2只记录结构化日志。默认是2'
|
alter table cfg_index_info add do_log int(11) COMMENT 'do_log:0不需要1记录所有日志2只记录结构化日志。默认是2'
|
||||||
alter table app_policy_cfg add do_log int(11) COMMENT 'do_log:0不需要1记录所有日志2只记录结构化日志。默认是2'
|
alter table app_policy_cfg add do_log int(11) COMMENT 'do_log:0不需要1记录所有日志2只记录结构化日志。默认是2'
|
||||||
|
alter table av_cont_ip_cfg add do_log int(11) COMMENT 'do_log:0不需要1记录所有日志2只记录结构化日志。默认是2'
|
||||||
|
alter table av_cont_url_cfg add do_log int(11) COMMENT 'do_log:0不需要1记录所有日志2只记录结构化日志。默认是2'
|
||||||
|
alter table av_pic_ip_cfg add do_log int(11) COMMENT 'do_log:0不需要1记录所有日志2只记录结构化日志。默认是2'
|
||||||
|
alter table av_pic_url_cfg add do_log int(11) COMMENT 'do_log:0不需要1记录所有日志2只记录结构化日志。默认是2'
|
||||||
|
alter table av_sign_sample_cfg add do_log int(11) COMMENT 'do_log:0不需要1记录所有日志2只记录结构化日志。默认是2'
|
||||||
@@ -1,6 +1,20 @@
|
|||||||
|
#ip地址白名单
|
||||||
|
INSERT INTO function_region_dict (config_service_type,config_multi_keywords,config_expr_type,config_hex,config_match_method
|
||||||
|
,function_id,config_region_code,config_region_value,config_desc,is_valid,is_maat,region_type,config_region_sort)
|
||||||
|
VALUES('subscribe_id',0,'0,1','0,1,2','0,1,2,3',3,2,'WHITE_LIST_SUBSCRIBE_ID','全局IP白名单SUBSCRIBE配置',1,1,2,2);
|
||||||
|
UPDATE function_service_dict SET region_code='1,2' WHERE function_id=3 AND ACTION=128
|
||||||
|
UPDATE function_region_dict SET config_ip_port_show='1,2' ,config_ip_type='4,6',config_ip_pattern='1,2,3',config_port_pattern='1,2',config_direction='0',config_protocol='0' WHERE dict_id=7;
|
||||||
|
#域名白名单
|
||||||
|
INSERT INTO function_region_dict (config_service_type,config_multi_keywords,config_expr_type,config_hex,config_match_method
|
||||||
|
,function_id,config_region_code,config_region_value,config_desc,is_valid,is_maat,region_type,config_region_sort)
|
||||||
|
VALUES('subscribe_id',0,'0,1','0,1,2','0,1,2,3',4,2,'WHITE_LIST_SUBSCRIBE_ID','全局域名白名单SUBSCRIBE配置',1,1,2,2);
|
||||||
|
UPDATE function_service_dict SET region_code='1,2' WHERE function_id=4 AND ACTION=128
|
||||||
#ip地址
|
#ip地址
|
||||||
UPDATE function_service_dict SET region_code=1 WHERE function_id=5 AND ACTION IN(16,1);
|
INSERT INTO function_region_dict (config_service_type,config_multi_keywords,config_expr_type,config_hex,config_match_method
|
||||||
UPDATE function_service_dict SET region_code=2 WHERE function_id=5 AND ACTION IN(32,96);
|
,function_id,config_region_code,config_region_value,config_desc,is_valid,is_maat,region_type,config_region_sort)
|
||||||
|
VALUES('subscribe_id',0,'0,1','0,1,2','0,1,2,3',5,3,'NTC_SUBSCRIBE_ID','IP地址SUBSCRIBE配置',1,1,2,2);
|
||||||
|
UPDATE function_service_dict SET region_code='1,3' WHERE function_id=5 AND ACTION IN(16,1);
|
||||||
|
UPDATE function_service_dict SET region_code='2,3' WHERE function_id=5 AND ACTION IN(32,96);
|
||||||
UPDATE function_region_dict SET config_ip_port_show='1,2' ,config_ip_type='4,6,46,64,10',config_ip_pattern='1,2,3',config_port_pattern='1,2',config_direction='0,1',config_protocol='0,6,17' WHERE dict_id=27;
|
UPDATE function_region_dict SET config_ip_port_show='1,2' ,config_ip_type='4,6,46,64,10',config_ip_pattern='1,2,3',config_port_pattern='1,2',config_direction='0,1',config_protocol='0,6,17' WHERE dict_id=27;
|
||||||
UPDATE function_region_dict SET config_service_type='ipaddr',config_ip_port_show='1,2' ,config_ip_type='4,6,46,64,10',config_ip_pattern='1,2,3',config_port_pattern='1,2',config_direction='0,1',config_protocol='0,6,17,1' WHERE dict_id=35;
|
UPDATE function_region_dict SET config_service_type='ipaddr',config_ip_port_show='1,2' ,config_ip_type='4,6,46,64,10',config_ip_pattern='1,2,3',config_port_pattern='1,2',config_direction='0,1',config_protocol='0,6,17,1' WHERE dict_id=35;
|
||||||
#ip限流
|
#ip限流
|
||||||
@@ -21,9 +35,6 @@ UPDATE function_region_dict SET config_ip_port_show='1,2' ,config_ip_type='4,6,4
|
|||||||
#APP IP
|
#APP IP
|
||||||
UPDATE function_service_dict SET region_code=1 WHERE function_id=405 AND ACTION IN(1);
|
UPDATE function_service_dict SET region_code=1 WHERE function_id=405 AND ACTION IN(1);
|
||||||
UPDATE function_region_dict SET config_ip_port_show='1,2' ,config_ip_type='4,6',config_ip_pattern='1,2,3',config_port_pattern='1,2',config_direction='0',config_protocol='0,6,17' WHERE dict_id=62;
|
UPDATE function_region_dict SET config_ip_port_show='1,2' ,config_ip_type='4,6',config_ip_pattern='1,2,3',config_port_pattern='1,2',config_direction='0',config_protocol='0,6,17' WHERE dict_id=62;
|
||||||
#IP白名单
|
|
||||||
UPDATE function_service_dict SET region_code=1 WHERE function_id=3 AND ACTION IN(128);
|
|
||||||
UPDATE function_region_dict SET config_ip_port_show='1,2' ,config_ip_type='4,6',config_ip_pattern='1,2,3',config_port_pattern='1,2',config_direction='0',config_protocol='0,6,17' WHERE dict_id=7;
|
|
||||||
#http ip
|
#http ip
|
||||||
UPDATE function_service_dict SET region_code='1,2,3,4,5,6' WHERE function_id=8 AND ACTION IN(16,1);
|
UPDATE function_service_dict SET region_code='1,2,3,4,5,6' WHERE function_id=8 AND ACTION IN(16,1);
|
||||||
UPDATE function_region_dict SET config_ip_port_show='1,2' ,config_ip_type='4,6,46,64,10',config_ip_pattern='1,2,3',config_port_pattern='1,2',config_direction='0,1',config_protocol='0,6,17' WHERE dict_id=14;
|
UPDATE function_region_dict SET config_ip_port_show='1,2' ,config_ip_type='4,6,46,64,10',config_ip_pattern='1,2,3',config_port_pattern='1,2',config_direction='0,1',config_protocol='0,6,17' WHERE dict_id=14;
|
||||||
|
|||||||
@@ -123,7 +123,7 @@ $(function(){
|
|||||||
</c:forEach>
|
</c:forEach>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="hidden" id="areaIp">
|
<%-- <div class="hidden" id="areaIp">
|
||||||
<h4 class="form-section"><spring:message code="area"/> ip<small><span class="glyphicon glyphicon-plus" title="add"></span></small></h4>
|
<h4 class="form-section"><spring:message code="area"/> ip<small><span class="glyphicon glyphicon-plus" title="add"></span></small></h4>
|
||||||
<div class="container-fluid hidden row">
|
<div class="container-fluid hidden row">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@@ -376,4 +376,4 @@ $(function(){
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</c:forEach>
|
</c:forEach>
|
||||||
</div>
|
</div> --%>
|
||||||
|
|||||||
@@ -32,6 +32,9 @@
|
|||||||
<mapping path="/nis/encryptedtunnelbehav/ajax*" exclue="true"/>
|
<mapping path="/nis/encryptedtunnelbehav/ajax*" exclue="true"/>
|
||||||
<mapping path="/nis/ntc/av/ajax*" exclue="true"/>
|
<mapping path="/nis/ntc/av/ajax*" exclue="true"/>
|
||||||
<mapping path="/nis/proxy/intercept/ajax*" exclue="true"/>
|
<mapping path="/nis/proxy/intercept/ajax*" exclue="true"/>
|
||||||
|
<mapping path="/nis/ntc/whitelist/ip/ajax*" exclue="true"/>
|
||||||
|
<mapping path="/nis/ntc/whitelist/domain/ajax*" exclue="true"/>
|
||||||
|
<mapping path="/nis/ntc/iplist/ajax*" exclue="true"/>
|
||||||
<!-- 对同一路径,启用多个装饰器 -->
|
<!-- 对同一路径,启用多个装饰器 -->
|
||||||
<mapping>
|
<mapping>
|
||||||
<path>/articles/*</path>
|
<path>/articles/*</path>
|
||||||
|
|||||||
@@ -58,7 +58,6 @@
|
|||||||
}
|
}
|
||||||
//wx提示,c:if标签前加了//注释,c:if标签的判断条件仍会生效
|
//wx提示,c:if标签前加了//注释,c:if标签的判断条件仍会生效
|
||||||
for(var i=0; i<nodes.length; i++) {
|
for(var i=0; i<nodes.length; i++) {
|
||||||
console.log(nodes[i]);
|
|
||||||
//<c:if test="${checked && notAllowSelectParent}">
|
//<c:if test="${checked && notAllowSelectParent}">
|
||||||
if (nodes[i].isParent && "${checkedPS}"!=''){
|
if (nodes[i].isParent && "${checkedPS}"!=''){
|
||||||
continue; // 如果为复选框选择,并且父子节点有关联,则过滤掉父节点
|
continue; // 如果为复选框选择,并且父子节点有关联,则过滤掉父节点
|
||||||
|
|||||||
@@ -5,9 +5,6 @@
|
|||||||
<title><spring:message code="${cfgName}"></spring:message></title>
|
<title><spring:message code="${cfgName}"></spring:message></title>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function(){
|
$(function(){
|
||||||
$("#cancel").on("click",function(){
|
|
||||||
window.history.back();
|
|
||||||
});
|
|
||||||
$(".action").on("change", function() {
|
$(".action").on("change", function() {
|
||||||
$("#serviceId").val($(this).attr("serviceId"));
|
$("#serviceId").val($(this).attr("serviceId"));
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -61,7 +61,6 @@
|
|||||||
|
|
||||||
<h3 class="page-title">
|
<h3 class="page-title">
|
||||||
<spring:message code="policy_group_manage"/>
|
<spring:message code="policy_group_manage"/>
|
||||||
<small><spring:message code="date_list"/></small>
|
|
||||||
</h3>
|
</h3>
|
||||||
<h5 class="page-header"></h5>
|
<h5 class="page-header"></h5>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|||||||
@@ -123,7 +123,6 @@
|
|||||||
<c:forEach items="${fns:getItemTypeByNo('SERVICE_DICT_ITM_TYPE',intArr)}" var="shows">
|
<c:forEach items="${fns:getItemTypeByNo('SERVICE_DICT_ITM_TYPE',intArr)}" var="shows">
|
||||||
<spring:message code="${shows}" />
|
<spring:message code="${shows}" />
|
||||||
</c:forEach>
|
</c:forEach>
|
||||||
<small><spring:message code="date_list"/></small>
|
|
||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
<h5 class="page-header"></h5>
|
<h5 class="page-header"></h5>
|
||||||
|
|||||||
@@ -147,7 +147,6 @@
|
|||||||
<c:forEach items="${fns:getItemTypeByNo('SYS_DICT_ITM_TYPE',intArr)}" var="shows">
|
<c:forEach items="${fns:getItemTypeByNo('SYS_DICT_ITM_TYPE',intArr)}" var="shows">
|
||||||
<spring:message code="${shows}" />
|
<spring:message code="${shows}" />
|
||||||
</c:forEach>
|
</c:forEach>
|
||||||
<small><spring:message code="date_list"/></small>
|
|
||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
<h5 class="page-header"></h5>
|
<h5 class="page-header"></h5>
|
||||||
|
|||||||
@@ -40,7 +40,6 @@
|
|||||||
</shiro:hasPermission>
|
</shiro:hasPermission>
|
||||||
<h3 class="page-title">
|
<h3 class="page-title">
|
||||||
<spring:message code="special_task"></spring:message>
|
<spring:message code="special_task"></spring:message>
|
||||||
<small><spring:message code="date_list"/></small>
|
|
||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
<h5 class="page-header"></h5>
|
<h5 class="page-header"></h5>
|
||||||
|
|||||||
@@ -44,9 +44,6 @@ $(function(){
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="page-content">
|
<div class="page-content">
|
||||||
<c:forEach items="${fns:getDictList('SPECIFIC_SERVICE_CFG_TYPE') }" var="dict">
|
|
||||||
<c:if test="${dict.itemValue eq 'social_app'}"><c:set var="app" value="${dict.itemCode}"/></c:if>
|
|
||||||
</c:forEach>
|
|
||||||
<span id="keywordError" style="display:none"><spring:message code="required"></spring:message></span>
|
<span id="keywordError" style="display:none"><spring:message code="required"></spring:message></span>
|
||||||
<span id="tagsinputTip" style="display:none"><spring:message code="multiple_keywords_tip"></spring:message></span>
|
<span id="tagsinputTip" style="display:none"><spring:message code="multiple_keywords_tip"></spring:message></span>
|
||||||
<h3 class="page-title">
|
<h3 class="page-title">
|
||||||
@@ -84,7 +81,7 @@ $(function(){
|
|||||||
<sys:treeselect id="specServiceId" name="specServiceId" value="${_cfg.specServiceId}"
|
<sys:treeselect id="specServiceId" name="specServiceId" value="${_cfg.specServiceId}"
|
||||||
labelName="parent.specServiceName" notAllowSelectRoot="true" notAllowSelectParent="true" enableAddBtn="true"
|
labelName="parent.specServiceName" notAllowSelectRoot="true" notAllowSelectParent="true" enableAddBtn="true"
|
||||||
labelValue="${empty _cfg.specServiceId?spec_service_id:fns:getBySpecServiceId(_cfg.specServiceId).specServiceName}"
|
labelValue="${empty _cfg.specServiceId?spec_service_id:fns:getBySpecServiceId(_cfg.specServiceId).specServiceName}"
|
||||||
title="${spec_service_id}" url="/specific/specificServiceCfg/treeData?isLeafShow=false&cfgType=${app}" extId=""
|
title="${spec_service_id}" url="/specific/specificServiceCfg/treeData?isLeafShow=false&cfgType=1" extId=""
|
||||||
cssClass="form-control required"/>
|
cssClass="form-control required"/>
|
||||||
</div>
|
</div>
|
||||||
<div for="parent.specServiceName"></div>
|
<div for="parent.specServiceName"></div>
|
||||||
|
|||||||
@@ -43,9 +43,6 @@
|
|||||||
<body>
|
<body>
|
||||||
|
|
||||||
<div class="page-content">
|
<div class="page-content">
|
||||||
<c:forEach items="${fns:getDictList('SPECIFIC_SERVICE_CFG_TYPE') }" var="dict">
|
|
||||||
<c:if test="${dict.itemValue eq 'social_app'}"><c:set var="app" value="${dict.itemCode}"/></c:if>
|
|
||||||
</c:forEach>
|
|
||||||
<div class="theme-panel hidden-xs hidden-sm">
|
<div class="theme-panel hidden-xs hidden-sm">
|
||||||
<shiro:hasPermission name="app:byte:config">
|
<shiro:hasPermission name="app:byte:config">
|
||||||
<button type="button" class="btn btn-primary"
|
<button type="button" class="btn btn-primary"
|
||||||
@@ -57,7 +54,6 @@
|
|||||||
|
|
||||||
<h3 class="page-title">
|
<h3 class="page-title">
|
||||||
<spring:message code="app_byte_config"></spring:message>
|
<spring:message code="app_byte_config"></spring:message>
|
||||||
<small><spring:message code="date_list"/></small>
|
|
||||||
</h3>
|
</h3>
|
||||||
<h5 class="page-header"></h5>
|
<h5 class="page-header"></h5>
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
@@ -92,7 +88,7 @@
|
|||||||
<sys:treeselect id="specServiceId" name="specServiceId" value="${cfg.specServiceId}"
|
<sys:treeselect id="specServiceId" name="specServiceId" value="${cfg.specServiceId}"
|
||||||
labelName="parent.specServiceName" notAllowSelectRoot="true" notAllowSelectParent="true"
|
labelName="parent.specServiceName" notAllowSelectRoot="true" notAllowSelectParent="true"
|
||||||
labelValue="${empty cfg.specServiceId?spec_service_id:fns:getBySpecServiceId(cfg.specServiceId).specServiceName}"
|
labelValue="${empty cfg.specServiceId?spec_service_id:fns:getBySpecServiceId(cfg.specServiceId).specServiceName}"
|
||||||
title="${spec_service_id}" url="/specific/specificServiceCfg/treeData?isLeafShow=false&cfgType=${app}" extId=""
|
title="${spec_service_id}" url="/specific/specificServiceCfg/treeData?isLeafShow=false&cfgType=1" extId=""
|
||||||
cssClass="form-control input-small"/>
|
cssClass="form-control input-small"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="pull-left">
|
<div class="pull-left">
|
||||||
@@ -276,7 +272,6 @@
|
|||||||
<th><spring:message code="whether_hexbinary"/></th>
|
<th><spring:message code="whether_hexbinary"/></th>
|
||||||
<th><spring:message code="expression_type"/></th>
|
<th><spring:message code="expression_type"/></th>
|
||||||
<th><spring:message code="match_method"/></th>
|
<th><spring:message code="match_method"/></th>
|
||||||
<th><spring:message code="do_log"/></th>
|
|
||||||
<%-- <th><spring:message code="block_type"/></th>
|
<%-- <th><spring:message code="block_type"/></th>
|
||||||
<th><spring:message code="whether_area_block"/></th>
|
<th><spring:message code="whether_area_block"/></th>
|
||||||
<th><spring:message code="letter"/></th>
|
<th><spring:message code="letter"/></th>
|
||||||
@@ -315,11 +310,6 @@
|
|||||||
<td>
|
<td>
|
||||||
<c:forEach items="${fns:getDictList('MATCH_METHOD')}" var="matchMethodC">
|
<c:forEach items="${fns:getDictList('MATCH_METHOD')}" var="matchMethodC">
|
||||||
<c:if test="${cfg.matchMethod==matchMethodC.itemCode }"><spring:message code="${matchMethodC.itemValue}"/></c:if>
|
<c:if test="${cfg.matchMethod==matchMethodC.itemCode }"><spring:message code="${matchMethodC.itemValue}"/></c:if>
|
||||||
</c:forEach>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<c:forEach items="${fns:getDictList('DO_LOG')}" var="dict">
|
|
||||||
<c:if test="${cfg.doLog==dict.itemCode }"><spring:message code="${dict.itemValue}"/></c:if>
|
|
||||||
</c:forEach>
|
</c:forEach>
|
||||||
</td>
|
</td>
|
||||||
<%-- <td>
|
<%-- <td>
|
||||||
@@ -409,7 +399,7 @@
|
|||||||
<c:when test="${cfg.isAudit eq '3'}"><span class="label label-warning"><spring:message code="cancel_approved"></spring:message></span></c:when>
|
<c:when test="${cfg.isAudit eq '3'}"><span class="label label-warning"><spring:message code="cancel_approved"></spring:message></span></c:when>
|
||||||
</c:choose>
|
</c:choose>
|
||||||
</td>
|
</td>
|
||||||
<td functionId="${cfg.functionId}" compileId="${cfg.compileId}" action="${cfg.action}"><div class="loading-total"></div></td>
|
<td audit="${cfg.isAudit}" functionId="${cfg.functionId}" compileId="${cfg.compileId}" action="${cfg.action}"><div class="loading-total"></div></td>
|
||||||
<td>${cfg.creatorName }</td>
|
<td>${cfg.creatorName }</td>
|
||||||
<td><fmt:formatDate value="${cfg.createTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
|
<td><fmt:formatDate value="${cfg.createTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
|
||||||
<td>${cfg.editorName }</td>
|
<td>${cfg.editorName }</td>
|
||||||
|
|||||||
@@ -45,9 +45,6 @@ $(function(){
|
|||||||
<body>
|
<body>
|
||||||
|
|
||||||
<div class="page-content">
|
<div class="page-content">
|
||||||
<c:forEach items="${fns:getDictList('SPECIFIC_SERVICE_CFG_TYPE') }" var="dict">
|
|
||||||
<c:if test="${dict.itemValue eq 'social_app'}"><c:set var="app" value="${dict.itemCode}"/></c:if>
|
|
||||||
</c:forEach>
|
|
||||||
<span id="keywordError" style="display:none"><spring:message code="required"></spring:message></span>
|
<span id="keywordError" style="display:none"><spring:message code="required"></spring:message></span>
|
||||||
<span id="tagsinputTip" style="display:none"><spring:message code="multiple_keywords_tip"></spring:message></span>
|
<span id="tagsinputTip" style="display:none"><spring:message code="multiple_keywords_tip"></spring:message></span>
|
||||||
<h3 class="page-title">
|
<h3 class="page-title">
|
||||||
@@ -81,9 +78,9 @@ $(function(){
|
|||||||
<label class="control-label col-md-3"><font color="red">*</font><spring:message code="social_app"/></label>
|
<label class="control-label col-md-3"><font color="red">*</font><spring:message code="social_app"/></label>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<sys:treeselect id="specServiceId" name="specServiceId" value="${_cfg.specServiceId}"
|
<sys:treeselect id="specServiceId" name="specServiceId" value="${_cfg.specServiceId}"
|
||||||
labelName="parent.specServiceName" notAllowSelectRoot="true" notAllowSelectParent="true"
|
labelName="parent.specServiceName" notAllowSelectRoot="true" notAllowSelectParent="true" enableAddBtn="true"
|
||||||
labelValue="${empty _cfg.specServiceId?spec_service_id:fns:getBySpecServiceId(_cfg.specServiceId).specServiceName}"
|
labelValue="${empty _cfg.specServiceId?spec_service_id:fns:getBySpecServiceId(_cfg.specServiceId).specServiceName}"
|
||||||
title="${spec_service_id}" url="/specific/specificServiceCfg/treeData?isLeafShow=false&cfgType=${app}" extId=""
|
title="${spec_service_id}" url="/specific/specificServiceCfg/treeData?isLeafShow=false&cfgType=1" extId=""
|
||||||
cssClass="form-control required"/>
|
cssClass="form-control required"/>
|
||||||
</div>
|
</div>
|
||||||
<div for="parent.specServiceName"></div>
|
<div for="parent.specServiceName"></div>
|
||||||
|
|||||||
@@ -43,9 +43,6 @@
|
|||||||
<body>
|
<body>
|
||||||
|
|
||||||
<div class="page-content">
|
<div class="page-content">
|
||||||
<c:forEach items="${fns:getDictList('SPECIFIC_SERVICE_CFG_TYPE') }" var="dict">
|
|
||||||
<c:if test="${dict.itemValue eq 'social_app'}"><c:set var="app" value="${dict.itemCode}"/></c:if>
|
|
||||||
</c:forEach>
|
|
||||||
<div class="theme-panel hidden-xs hidden-sm">
|
<div class="theme-panel hidden-xs hidden-sm">
|
||||||
<shiro:hasPermission name="app:domain:config">
|
<shiro:hasPermission name="app:domain:config">
|
||||||
<button type="button" class="btn btn-primary"
|
<button type="button" class="btn btn-primary"
|
||||||
@@ -57,7 +54,6 @@
|
|||||||
|
|
||||||
<h3 class="page-title">
|
<h3 class="page-title">
|
||||||
<spring:message code="app_domain_config"></spring:message>
|
<spring:message code="app_domain_config"></spring:message>
|
||||||
<small><spring:message code="date_list"/></small>
|
|
||||||
</h3>
|
</h3>
|
||||||
<h5 class="page-header"></h5>
|
<h5 class="page-header"></h5>
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
@@ -92,7 +88,7 @@
|
|||||||
<sys:treeselect id="specServiceId" name="specServiceId" value="${cfg.specServiceId}"
|
<sys:treeselect id="specServiceId" name="specServiceId" value="${cfg.specServiceId}"
|
||||||
labelName="parent.specServiceName" notAllowSelectRoot="true" notAllowSelectParent="true"
|
labelName="parent.specServiceName" notAllowSelectRoot="true" notAllowSelectParent="true"
|
||||||
labelValue="${empty cfg.specServiceId?spec_service_id:fns:getBySpecServiceId(cfg.specServiceId).specServiceName}"
|
labelValue="${empty cfg.specServiceId?spec_service_id:fns:getBySpecServiceId(cfg.specServiceId).specServiceName}"
|
||||||
title="${spec_service_id}" url="/specific/specificServiceCfg/treeData?isLeafShow=false&cfgType=${app}" extId=""
|
title="${spec_service_id}" url="/specific/specificServiceCfg/treeData?isLeafShow=false&cfgType=1" extId=""
|
||||||
cssClass="form-control input-small"/>
|
cssClass="form-control input-small"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="pull-left">
|
<div class="pull-left">
|
||||||
@@ -276,7 +272,6 @@
|
|||||||
<th><spring:message code="whether_hexbinary"/></th>
|
<th><spring:message code="whether_hexbinary"/></th>
|
||||||
<th><spring:message code="expression_type"/></th>
|
<th><spring:message code="expression_type"/></th>
|
||||||
<th><spring:message code="match_method"/></th>
|
<th><spring:message code="match_method"/></th>
|
||||||
<th><spring:message code="do_log"/></th>
|
|
||||||
<%-- <th><spring:message code="block_type"/></th>
|
<%-- <th><spring:message code="block_type"/></th>
|
||||||
<th><spring:message code="whether_area_block"/></th>
|
<th><spring:message code="whether_area_block"/></th>
|
||||||
<th><spring:message code="letter"/></th>
|
<th><spring:message code="letter"/></th>
|
||||||
@@ -315,11 +310,6 @@
|
|||||||
<td>
|
<td>
|
||||||
<c:forEach items="${fns:getDictList('MATCH_METHOD')}" var="matchMethodC">
|
<c:forEach items="${fns:getDictList('MATCH_METHOD')}" var="matchMethodC">
|
||||||
<c:if test="${cfg.matchMethod==matchMethodC.itemCode }"><spring:message code="${matchMethodC.itemValue}"/></c:if>
|
<c:if test="${cfg.matchMethod==matchMethodC.itemCode }"><spring:message code="${matchMethodC.itemValue}"/></c:if>
|
||||||
</c:forEach>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<c:forEach items="${fns:getDictList('DO_LOG')}" var="dict">
|
|
||||||
<c:if test="${cfg.doLog==dict.itemCode }"><spring:message code="${dict.itemValue}"/></c:if>
|
|
||||||
</c:forEach>
|
</c:forEach>
|
||||||
</td>
|
</td>
|
||||||
<%-- <td>
|
<%-- <td>
|
||||||
@@ -409,7 +399,7 @@
|
|||||||
<c:when test="${cfg.isAudit eq '3'}"><span class="label label-warning"><spring:message code="cancel_approved"></spring:message></span></c:when>
|
<c:when test="${cfg.isAudit eq '3'}"><span class="label label-warning"><spring:message code="cancel_approved"></spring:message></span></c:when>
|
||||||
</c:choose>
|
</c:choose>
|
||||||
</td>
|
</td>
|
||||||
<td functionId="${cfg.functionId}" compileId="${cfg.compileId}" action="${cfg.action}"><div class="loading-total"></div></td>
|
<td audit="${cfg.isAudit}" functionId="${cfg.functionId}" compileId="${cfg.compileId}" action="${cfg.action}"><div class="loading-total"></div></td>
|
||||||
<td>${cfg.creatorName }</td>
|
<td>${cfg.creatorName }</td>
|
||||||
<td><fmt:formatDate value="${cfg.createTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
|
<td><fmt:formatDate value="${cfg.createTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
|
||||||
<td>${cfg.editorName }</td>
|
<td>${cfg.editorName }</td>
|
||||||
|
|||||||
@@ -59,9 +59,6 @@ $(function(){
|
|||||||
<span id="keywordError" style="display:none"><spring:message code="required"></spring:message></span>
|
<span id="keywordError" style="display:none"><spring:message code="required"></spring:message></span>
|
||||||
<span id="tagsinputTip" style="display:none"><spring:message code="multiple_keywords_tip"></spring:message></span>
|
<span id="tagsinputTip" style="display:none"><spring:message code="multiple_keywords_tip"></spring:message></span>
|
||||||
<div class="page-content">
|
<div class="page-content">
|
||||||
<c:forEach items="${fns:getDictList('SPECIFIC_SERVICE_CFG_TYPE') }" var="dict">
|
|
||||||
<c:if test="${dict.itemValue eq 'social_app'}"><c:set var="app" value="${dict.itemCode}"/></c:if>
|
|
||||||
</c:forEach>
|
|
||||||
<span id="keywordError" style="display:none"><spring:message code="required"></spring:message></span>
|
<span id="keywordError" style="display:none"><spring:message code="required"></spring:message></span>
|
||||||
<span id="tagsinputTip" style="display:none"><spring:message code="multiple_keywords_tip"></spring:message></span>
|
<span id="tagsinputTip" style="display:none"><spring:message code="multiple_keywords_tip"></spring:message></span>
|
||||||
<h3 class="page-title">
|
<h3 class="page-title">
|
||||||
@@ -96,9 +93,9 @@ $(function(){
|
|||||||
<label class="control-label col-md-3"><font color="red">*</font><spring:message code="social_app"/></label>
|
<label class="control-label col-md-3"><font color="red">*</font><spring:message code="social_app"/></label>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<sys:treeselect id="specServiceId" name="specServiceId" value="${_cfg.specServiceId}"
|
<sys:treeselect id="specServiceId" name="specServiceId" value="${_cfg.specServiceId}"
|
||||||
labelName="parent.specServiceName" notAllowSelectRoot="true" notAllowSelectParent="true"
|
labelName="parent.specServiceName" notAllowSelectRoot="true" notAllowSelectParent="true" enableAddBtn="true"
|
||||||
labelValue="${empty _cfg.specServiceId?spec_service_id:fns:getBySpecServiceId(_cfg.specServiceId).specServiceName}"
|
labelValue="${empty _cfg.specServiceId?spec_service_id:fns:getBySpecServiceId(_cfg.specServiceId).specServiceName}"
|
||||||
title="${spec_service_id}" url="/specific/specificServiceCfg/treeData?isLeafShow=false&cfgType=${app}" extId=""
|
title="${spec_service_id}" url="/specific/specificServiceCfg/treeData?isLeafShow=false&cfgType=1" extId=""
|
||||||
cssClass="form-control required"/>
|
cssClass="form-control required"/>
|
||||||
</div>
|
</div>
|
||||||
<div for="parent.specServiceName"></div>
|
<div for="parent.specServiceName"></div>
|
||||||
|
|||||||
@@ -43,9 +43,6 @@
|
|||||||
<body>
|
<body>
|
||||||
|
|
||||||
<div class="page-content">
|
<div class="page-content">
|
||||||
<c:forEach items="${fns:getDictList('SPECIFIC_SERVICE_CFG_TYPE') }" var="dict">
|
|
||||||
<c:if test="${dict.itemValue eq 'social_app'}"><c:set var="app" value="${dict.itemCode}"/></c:if>
|
|
||||||
</c:forEach>
|
|
||||||
<div class="theme-panel hidden-xs hidden-sm">
|
<div class="theme-panel hidden-xs hidden-sm">
|
||||||
<shiro:hasPermission name="app:http:config">
|
<shiro:hasPermission name="app:http:config">
|
||||||
<button type="button" class="btn btn-primary"
|
<button type="button" class="btn btn-primary"
|
||||||
@@ -57,7 +54,6 @@
|
|||||||
|
|
||||||
<h3 class="page-title">
|
<h3 class="page-title">
|
||||||
<spring:message code="app_header_config"></spring:message>
|
<spring:message code="app_header_config"></spring:message>
|
||||||
<small><spring:message code="date_list"/></small>
|
|
||||||
</h3>
|
</h3>
|
||||||
<h5 class="page-header"></h5>
|
<h5 class="page-header"></h5>
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
@@ -92,7 +88,7 @@
|
|||||||
<sys:treeselect id="specServiceId" name="specServiceId" value="${cfg.specServiceId}"
|
<sys:treeselect id="specServiceId" name="specServiceId" value="${cfg.specServiceId}"
|
||||||
labelName="parent.specServiceName" notAllowSelectRoot="true" notAllowSelectParent="true"
|
labelName="parent.specServiceName" notAllowSelectRoot="true" notAllowSelectParent="true"
|
||||||
labelValue="${empty cfg.specServiceId?spec_service_id:fns:getBySpecServiceId(cfg.specServiceId).specServiceName}"
|
labelValue="${empty cfg.specServiceId?spec_service_id:fns:getBySpecServiceId(cfg.specServiceId).specServiceName}"
|
||||||
title="${spec_service_id}" url="/specific/specificServiceCfg/treeData?isLeafShow=false&cfgType=${app}" extId=""
|
title="${spec_service_id}" url="/specific/specificServiceCfg/treeData?isLeafShow=false&cfgType=1" extId=""
|
||||||
cssClass="form-control input-small"/>
|
cssClass="form-control input-small"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="pull-left">
|
<div class="pull-left">
|
||||||
@@ -272,12 +268,11 @@
|
|||||||
<th><input type="checkbox" class="i-checks" id="checkAll"></th>
|
<th><input type="checkbox" class="i-checks" id="checkAll"></th>
|
||||||
<th class="cfgDesc"><spring:message code="config_describe"/></th>
|
<th class="cfgDesc"><spring:message code="config_describe"/></th>
|
||||||
<th><spring:message code="social_app"/></th>
|
<th><spring:message code="social_app"/></th>
|
||||||
<th><spring:message code="district"/></th>
|
<th><spring:message code="layer"/></th>
|
||||||
<th><spring:message code="keywords"/></th>
|
<th><spring:message code="header"/></th>
|
||||||
<th><spring:message code="whether_hexbinary"/></th>
|
<th><spring:message code="whether_hexbinary"/></th>
|
||||||
<th><spring:message code="expression_type"/></th>
|
<th><spring:message code="expression_type"/></th>
|
||||||
<th><spring:message code="match_method"/></th>
|
<th><spring:message code="match_method"/></th>
|
||||||
<th><spring:message code="do_log"/></th>
|
|
||||||
<%-- <th><spring:message code="block_type"/></th>
|
<%-- <th><spring:message code="block_type"/></th>
|
||||||
<th><spring:message code="whether_area_block"/></th>
|
<th><spring:message code="whether_area_block"/></th>
|
||||||
<th><spring:message code="letter"/></th>
|
<th><spring:message code="letter"/></th>
|
||||||
@@ -322,11 +317,6 @@
|
|||||||
<td>
|
<td>
|
||||||
<c:forEach items="${fns:getDictList('MATCH_METHOD')}" var="matchMethodC">
|
<c:forEach items="${fns:getDictList('MATCH_METHOD')}" var="matchMethodC">
|
||||||
<c:if test="${cfg.matchMethod==matchMethodC.itemCode }"><spring:message code="${matchMethodC.itemValue}"/></c:if>
|
<c:if test="${cfg.matchMethod==matchMethodC.itemCode }"><spring:message code="${matchMethodC.itemValue}"/></c:if>
|
||||||
</c:forEach>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<c:forEach items="${fns:getDictList('DO_LOG')}" var="dict">
|
|
||||||
<c:if test="${cfg.doLog==dict.itemCode }"><spring:message code="${dict.itemValue}"/></c:if>
|
|
||||||
</c:forEach>
|
</c:forEach>
|
||||||
</td>
|
</td>
|
||||||
<%-- <td>
|
<%-- <td>
|
||||||
@@ -416,7 +406,7 @@
|
|||||||
<c:when test="${cfg.isAudit eq '3'}"><span class="label label-warning"><spring:message code="cancel_approved"></spring:message></span></c:when>
|
<c:when test="${cfg.isAudit eq '3'}"><span class="label label-warning"><spring:message code="cancel_approved"></spring:message></span></c:when>
|
||||||
</c:choose>
|
</c:choose>
|
||||||
</td>
|
</td>
|
||||||
<td functionId="${cfg.functionId}" compileId="${cfg.compileId}" action="${cfg.action}"><div class="loading-total"></div></td>
|
<td audit="${cfg.isAudit}" functionId="${cfg.functionId}" compileId="${cfg.compileId}" action="${cfg.action}"><div class="loading-total"></div></td>
|
||||||
<td>${cfg.creatorName }</td>
|
<td>${cfg.creatorName }</td>
|
||||||
<td><fmt:formatDate value="${cfg.createTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
|
<td><fmt:formatDate value="${cfg.createTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
|
||||||
<td>${cfg.editorName }</td>
|
<td>${cfg.editorName }</td>
|
||||||
|
|||||||
@@ -59,9 +59,6 @@ $(function(){
|
|||||||
<span id="keywordError" style="display:none"><spring:message code="required"></spring:message></span>
|
<span id="keywordError" style="display:none"><spring:message code="required"></spring:message></span>
|
||||||
<span id="tagsinputTip" style="display:none"><spring:message code="multiple_keywords_tip"></spring:message></span>
|
<span id="tagsinputTip" style="display:none"><spring:message code="multiple_keywords_tip"></spring:message></span>
|
||||||
<div class="page-content">
|
<div class="page-content">
|
||||||
<c:forEach items="${fns:getDictList('SPECIFIC_SERVICE_CFG_TYPE') }" var="dict">
|
|
||||||
<c:if test="${dict.itemValue eq 'social_app'}"><c:set var="app" value="${dict.itemCode}"/></c:if>
|
|
||||||
</c:forEach>
|
|
||||||
<span id="keywordError" style="display:none"><spring:message code="required"></spring:message></span>
|
<span id="keywordError" style="display:none"><spring:message code="required"></spring:message></span>
|
||||||
<span id="tagsinputTip" style="display:none"><spring:message code="multiple_keywords_tip"></spring:message></span>
|
<span id="tagsinputTip" style="display:none"><spring:message code="multiple_keywords_tip"></spring:message></span>
|
||||||
<h3 class="page-title">
|
<h3 class="page-title">
|
||||||
@@ -96,9 +93,9 @@ $(function(){
|
|||||||
<label class="control-label col-md-3"><font color="red">*</font><spring:message code="social_app"/></label>
|
<label class="control-label col-md-3"><font color="red">*</font><spring:message code="social_app"/></label>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<sys:treeselect id="specServiceId" name="specServiceId" value="${_cfg.specServiceId}"
|
<sys:treeselect id="specServiceId" name="specServiceId" value="${_cfg.specServiceId}"
|
||||||
labelName="parent.specServiceName" notAllowSelectRoot="true" notAllowSelectParent="true"
|
labelName="parent.specServiceName" notAllowSelectRoot="true" notAllowSelectParent="true" enableAddBtn="true"
|
||||||
labelValue="${empty _cfg.specServiceId?spec_service_id:fns:getBySpecServiceId(_cfg.specServiceId).specServiceName}"
|
labelValue="${empty _cfg.specServiceId?spec_service_id:fns:getBySpecServiceId(_cfg.specServiceId).specServiceName}"
|
||||||
title="${spec_service_id}" url="/specific/specificServiceCfg/treeData?isLeafShow=false&cfgType=${app}" extId=""
|
title="${spec_service_id}" url="/specific/specificServiceCfg/treeData?isLeafShow=false&cfgType=1" extId=""
|
||||||
cssClass="form-control required"/>
|
cssClass="form-control required"/>
|
||||||
</div>
|
</div>
|
||||||
<div for="parent.specServiceName"></div>
|
<div for="parent.specServiceName"></div>
|
||||||
|
|||||||
@@ -43,9 +43,6 @@
|
|||||||
<body>
|
<body>
|
||||||
|
|
||||||
<div class="page-content">
|
<div class="page-content">
|
||||||
<c:forEach items="${fns:getDictList('SPECIFIC_SERVICE_CFG_TYPE') }" var="dict">
|
|
||||||
<c:if test="${dict.itemValue eq 'social_app'}"><c:set var="app" value="${dict.itemCode}"/></c:if>
|
|
||||||
</c:forEach>
|
|
||||||
<div class="theme-panel hidden-xs hidden-sm">
|
<div class="theme-panel hidden-xs hidden-sm">
|
||||||
<shiro:hasPermission name="app:http:config">
|
<shiro:hasPermission name="app:http:config">
|
||||||
<button type="button" class="btn btn-primary"
|
<button type="button" class="btn btn-primary"
|
||||||
@@ -57,7 +54,6 @@
|
|||||||
|
|
||||||
<h3 class="page-title">
|
<h3 class="page-title">
|
||||||
<spring:message code="app_http_config"></spring:message>
|
<spring:message code="app_http_config"></spring:message>
|
||||||
<small><spring:message code="date_list"/></small>
|
|
||||||
</h3>
|
</h3>
|
||||||
<h5 class="page-header"></h5>
|
<h5 class="page-header"></h5>
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
@@ -92,7 +88,7 @@
|
|||||||
<sys:treeselect id="specServiceId" name="specServiceId" value="${cfg.specServiceId}"
|
<sys:treeselect id="specServiceId" name="specServiceId" value="${cfg.specServiceId}"
|
||||||
labelName="parent.specServiceName" notAllowSelectRoot="true" notAllowSelectParent="true"
|
labelName="parent.specServiceName" notAllowSelectRoot="true" notAllowSelectParent="true"
|
||||||
labelValue="${empty cfg.specServiceId?spec_service_id:fns:getBySpecServiceId(cfg.specServiceId).specServiceName}"
|
labelValue="${empty cfg.specServiceId?spec_service_id:fns:getBySpecServiceId(cfg.specServiceId).specServiceName}"
|
||||||
title="${spec_service_id}" url="/specific/specificServiceCfg/treeData?isLeafShow=false&cfgType=${app}" extId=""
|
title="${spec_service_id}" url="/specific/specificServiceCfg/treeData?isLeafShow=false&cfgType=1" extId=""
|
||||||
cssClass="form-control input-small"/>
|
cssClass="form-control input-small"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="pull-left">
|
<div class="pull-left">
|
||||||
@@ -278,7 +274,6 @@
|
|||||||
<th><spring:message code="whether_hexbinary"/></th>
|
<th><spring:message code="whether_hexbinary"/></th>
|
||||||
<th><spring:message code="expression_type"/></th>
|
<th><spring:message code="expression_type"/></th>
|
||||||
<th><spring:message code="match_method"/></th>
|
<th><spring:message code="match_method"/></th>
|
||||||
<th><spring:message code="do_log"/></th>
|
|
||||||
<%-- <th><spring:message code="block_type"/></th>
|
<%-- <th><spring:message code="block_type"/></th>
|
||||||
<th><spring:message code="whether_area_block"/></th>
|
<th><spring:message code="whether_area_block"/></th>
|
||||||
<th><spring:message code="letter"/></th>
|
<th><spring:message code="letter"/></th>
|
||||||
@@ -323,11 +318,6 @@
|
|||||||
<td>
|
<td>
|
||||||
<c:forEach items="${fns:getDictList('MATCH_METHOD')}" var="matchMethodC">
|
<c:forEach items="${fns:getDictList('MATCH_METHOD')}" var="matchMethodC">
|
||||||
<c:if test="${cfg.matchMethod==matchMethodC.itemCode }"><spring:message code="${matchMethodC.itemValue}"/></c:if>
|
<c:if test="${cfg.matchMethod==matchMethodC.itemCode }"><spring:message code="${matchMethodC.itemValue}"/></c:if>
|
||||||
</c:forEach>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<c:forEach items="${fns:getDictList('DO_LOG')}" var="dict">
|
|
||||||
<c:if test="${cfg.doLog==dict.itemCode }"><spring:message code="${dict.itemValue}"/></c:if>
|
|
||||||
</c:forEach>
|
</c:forEach>
|
||||||
</td>
|
</td>
|
||||||
<%-- <td>
|
<%-- <td>
|
||||||
@@ -417,7 +407,7 @@
|
|||||||
<c:when test="${cfg.isAudit eq '3'}"><span class="label label-warning"><spring:message code="cancel_approved"></spring:message></span></c:when>
|
<c:when test="${cfg.isAudit eq '3'}"><span class="label label-warning"><spring:message code="cancel_approved"></spring:message></span></c:when>
|
||||||
</c:choose>
|
</c:choose>
|
||||||
</td>
|
</td>
|
||||||
<td functionId="${cfg.functionId}" compileId="${cfg.compileId}" action="${cfg.action}"><div class="loading-total"></div></td>
|
<td audit="${cfg.isAudit}" functionId="${cfg.functionId}" compileId="${cfg.compileId}" action="${cfg.action}"><div class="loading-total"></div></td>
|
||||||
<td>${cfg.creatorName }</td>
|
<td>${cfg.creatorName }</td>
|
||||||
<td><fmt:formatDate value="${cfg.createTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
|
<td><fmt:formatDate value="${cfg.createTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
|
||||||
<td>${cfg.editorName }</td>
|
<td>${cfg.editorName }</td>
|
||||||
|
|||||||
@@ -27,9 +27,6 @@ $(function(){
|
|||||||
<body>
|
<body>
|
||||||
|
|
||||||
<div class="page-content">
|
<div class="page-content">
|
||||||
<c:forEach items="${fns:getDictList('SPECIFIC_SERVICE_CFG_TYPE') }" var="dict">
|
|
||||||
<c:if test="${dict.itemValue eq 'social_app'}"><c:set var="app" value="${dict.itemCode}"/></c:if>
|
|
||||||
</c:forEach>
|
|
||||||
<h3 class="page-title">
|
<h3 class="page-title">
|
||||||
<spring:message code="app_ip_config"></spring:message>
|
<spring:message code="app_ip_config"></spring:message>
|
||||||
</h3>
|
</h3>
|
||||||
@@ -80,7 +77,7 @@ $(function(){
|
|||||||
<sys:treeselect id="specServiceId" name="specServiceId" value="${_cfg.specServiceId}"
|
<sys:treeselect id="specServiceId" name="specServiceId" value="${_cfg.specServiceId}"
|
||||||
labelName="parent.specServiceName" notAllowSelectRoot="true" notAllowSelectParent="true" enableAddBtn="true"
|
labelName="parent.specServiceName" notAllowSelectRoot="true" notAllowSelectParent="true" enableAddBtn="true"
|
||||||
labelValue="${empty _cfg.specServiceId?spec_service_id:fns:getBySpecServiceId(_cfg.specServiceId).specServiceName}"
|
labelValue="${empty _cfg.specServiceId?spec_service_id:fns:getBySpecServiceId(_cfg.specServiceId).specServiceName}"
|
||||||
title="${spec_service_id}" url="/specific/specificServiceCfg/treeData?isLeafShow=false&cfgType=${app}" extId=""
|
title="${spec_service_id}" url="/specific/specificServiceCfg/treeData?isLeafShow=false&cfgType=1" extId=""
|
||||||
cssClass="form-control required"/>
|
cssClass="form-control required"/>
|
||||||
</div>
|
</div>
|
||||||
<div for="parent.specServiceName"></div>
|
<div for="parent.specServiceName"></div>
|
||||||
|
|||||||
@@ -46,9 +46,6 @@
|
|||||||
<body>
|
<body>
|
||||||
|
|
||||||
<div class="page-content">
|
<div class="page-content">
|
||||||
<c:forEach items="${fns:getDictList('SPECIFIC_SERVICE_CFG_TYPE') }" var="dict">
|
|
||||||
<c:if test="${dict.itemValue eq 'social_app'}"><c:set var="app" value="${dict.itemCode}"/></c:if>
|
|
||||||
</c:forEach>
|
|
||||||
<div class="theme-panel hidden-xs hidden-sm">
|
<div class="theme-panel hidden-xs hidden-sm">
|
||||||
<shiro:hasPermission name="app:ip:config">
|
<shiro:hasPermission name="app:ip:config">
|
||||||
<button type="button" class="btn btn-primary"
|
<button type="button" class="btn btn-primary"
|
||||||
@@ -60,7 +57,6 @@
|
|||||||
|
|
||||||
<h3 class="page-title">
|
<h3 class="page-title">
|
||||||
<spring:message code="app_ip_config"></spring:message>
|
<spring:message code="app_ip_config"></spring:message>
|
||||||
<small><spring:message code="date_list"/></small>
|
|
||||||
</h3>
|
</h3>
|
||||||
<h5 class="page-header"></h5>
|
<h5 class="page-header"></h5>
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
@@ -95,7 +91,7 @@
|
|||||||
<sys:treeselect id="specServiceId" name="specServiceId" value="${cfg.specServiceId}"
|
<sys:treeselect id="specServiceId" name="specServiceId" value="${cfg.specServiceId}"
|
||||||
labelName="parent.specServiceName" notAllowSelectRoot="true" notAllowSelectParent="true"
|
labelName="parent.specServiceName" notAllowSelectRoot="true" notAllowSelectParent="true"
|
||||||
labelValue="${empty cfg.specServiceId?spec_service_id:fns:getBySpecServiceId(cfg.specServiceId).specServiceName}"
|
labelValue="${empty cfg.specServiceId?spec_service_id:fns:getBySpecServiceId(cfg.specServiceId).specServiceName}"
|
||||||
title="${spec_service_id}" url="/specific/specificServiceCfg/treeData?isLeafShow=false&cfgType=${app}" extId=""
|
title="${spec_service_id}" url="/specific/specificServiceCfg/treeData?isLeafShow=false&cfgType=1" extId=""
|
||||||
cssClass="form-control input-small"/>
|
cssClass="form-control input-small"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="pull-left">
|
<div class="pull-left">
|
||||||
@@ -283,7 +279,6 @@
|
|||||||
<th><spring:message code="server_ip"/></th>
|
<th><spring:message code="server_ip"/></th>
|
||||||
<th><spring:message code="server_port"/></th>
|
<th><spring:message code="server_port"/></th>
|
||||||
<th><spring:message code="protocol"/></th>
|
<th><spring:message code="protocol"/></th>
|
||||||
<th><spring:message code="do_log"/></th>
|
|
||||||
<%-- <th><spring:message code="block_type"/></th> --%>
|
<%-- <th><spring:message code="block_type"/></th> --%>
|
||||||
<%-- <th><spring:message code="whether_area_block"/></th> --%>
|
<%-- <th><spring:message code="whether_area_block"/></th> --%>
|
||||||
<%-- <th><spring:message code="letter"/></th>
|
<%-- <th><spring:message code="letter"/></th>
|
||||||
@@ -323,13 +318,6 @@
|
|||||||
</c:if>
|
</c:if>
|
||||||
</c:forEach>
|
</c:forEach>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
|
||||||
<c:forEach items="${fns:getDictList('DO_LOG') }" var="dict">
|
|
||||||
<c:if test="${dict.itemCode eq cfg.doLog }">
|
|
||||||
<spring:message code="${dict.itemValue }"/>
|
|
||||||
</c:if>
|
|
||||||
</c:forEach>
|
|
||||||
</td>
|
|
||||||
<%-- <td>
|
<%-- <td>
|
||||||
<c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict">
|
<c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict">
|
||||||
<c:if test="${dict.itemCode eq cfg.action }">
|
<c:if test="${dict.itemCode eq cfg.action }">
|
||||||
@@ -417,7 +405,7 @@
|
|||||||
<c:when test="${cfg.isAudit eq '3'}"><span class="label label-warning"><spring:message code="cancel_approved"></spring:message></span></c:when>
|
<c:when test="${cfg.isAudit eq '3'}"><span class="label label-warning"><spring:message code="cancel_approved"></spring:message></span></c:when>
|
||||||
</c:choose>
|
</c:choose>
|
||||||
</td>
|
</td>
|
||||||
<td functionId="${cfg.functionId}" compileId="${cfg.compileId}" action="${cfg.action}"><div class="loading-total"></div></td>
|
<td audit="${cfg.isAudit}" functionId="${cfg.functionId}" compileId="${cfg.compileId}" action="${cfg.action}"><div class="loading-total"></div></td>
|
||||||
<td>${cfg.creatorName }</td>
|
<td>${cfg.creatorName }</td>
|
||||||
<td><fmt:formatDate value="${cfg.createTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
|
<td><fmt:formatDate value="${cfg.createTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
|
||||||
<td>${cfg.editorName }</td>
|
<td>${cfg.editorName }</td>
|
||||||
|
|||||||
@@ -158,11 +158,8 @@ var delContent = function(contentClassName, addBtnClassName) {
|
|||||||
<span id="keywordError" style="display:none"><spring:message code="required"></spring:message></span>
|
<span id="keywordError" style="display:none"><spring:message code="required"></spring:message></span>
|
||||||
<span id="tagsinputTip" style="display:none"><spring:message code="multiple_keywords_tip"></spring:message></span>
|
<span id="tagsinputTip" style="display:none"><spring:message code="multiple_keywords_tip"></spring:message></span>
|
||||||
<div class="page-content">
|
<div class="page-content">
|
||||||
<c:forEach items="${fns:getDictList('SPECIFIC_SERVICE_CFG_TYPE') }" var="dict">
|
|
||||||
<c:if test="${dict.itemValue eq 'social_app'}"><c:set var="app" value="${dict.itemCode}"/></c:if>
|
|
||||||
</c:forEach>
|
|
||||||
<h3 class="page-title">
|
<h3 class="page-title">
|
||||||
<spring:message code="app_policy_config"></spring:message>
|
<spring:message code="social_app_control"></spring:message>
|
||||||
</h3>
|
</h3>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
@@ -230,7 +227,7 @@ var delContent = function(contentClassName, addBtnClassName) {
|
|||||||
<sys:treeselect id="specServiceId" name="specServiceId" value="${_cfg.specServiceId}"
|
<sys:treeselect id="specServiceId" name="specServiceId" value="${_cfg.specServiceId}"
|
||||||
labelName="parent.specServiceName" notAllowSelectParent="true"
|
labelName="parent.specServiceName" notAllowSelectParent="true"
|
||||||
labelValue="${empty _cfg.specServiceId?spec_service_id:fns:getBySpecServiceId(_cfg.specServiceId).specServiceName}"
|
labelValue="${empty _cfg.specServiceId?spec_service_id:fns:getBySpecServiceId(_cfg.specServiceId).specServiceName}"
|
||||||
title="${spec_service_id}" url="/specific/specificServiceCfg/treeData?isLeafShow=false&cfgType=${app}" extId="0"
|
title="${spec_service_id}" url="/specific/specificServiceCfg/treeData?isLeafShow=false&cfgType=1" extId="0"
|
||||||
notAllowSelectRoot="true" cssClass="form-control required"/>
|
notAllowSelectRoot="true" cssClass="form-control required"/>
|
||||||
</div>
|
</div>
|
||||||
<div for="parent.specServiceName"></div>
|
<div for="parent.specServiceName"></div>
|
||||||
|
|||||||
@@ -86,9 +86,6 @@
|
|||||||
<body>
|
<body>
|
||||||
|
|
||||||
<div class="page-content">
|
<div class="page-content">
|
||||||
<c:forEach items="${fns:getDictList('SPECIFIC_SERVICE_CFG_TYPE') }" var="dict">
|
|
||||||
<c:if test="${dict.itemValue eq 'social_app'}"><c:set var="app" value="${dict.itemCode}"/></c:if>
|
|
||||||
</c:forEach>
|
|
||||||
<div class="theme-panel hidden-xs hidden-sm">
|
<div class="theme-panel hidden-xs hidden-sm">
|
||||||
<shiro:hasPermission name="app:policy:config">
|
<shiro:hasPermission name="app:policy:config">
|
||||||
<button type="button" class="btn btn-primary"
|
<button type="button" class="btn btn-primary"
|
||||||
@@ -99,8 +96,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h3 class="page-title">
|
<h3 class="page-title">
|
||||||
<spring:message code="app_policy_config"></spring:message>
|
<spring:message code="social_app_control"></spring:message>
|
||||||
<small><spring:message code="date_list"/></small>
|
|
||||||
</h3>
|
</h3>
|
||||||
<h5 class="page-header"></h5>
|
<h5 class="page-header"></h5>
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
@@ -135,7 +131,7 @@
|
|||||||
<sys:treeselect id="specServiceId" name="specServiceId" value="${cfg.specServiceId}"
|
<sys:treeselect id="specServiceId" name="specServiceId" value="${cfg.specServiceId}"
|
||||||
labelName="parent.specServiceName" notAllowSelectRoot="true" notAllowSelectParent="true"
|
labelName="parent.specServiceName" notAllowSelectRoot="true" notAllowSelectParent="true"
|
||||||
labelValue="${empty cfg.specServiceId?spec_service_id:fns:getBySpecServiceId(cfg.specServiceId).specServiceName}"
|
labelValue="${empty cfg.specServiceId?spec_service_id:fns:getBySpecServiceId(cfg.specServiceId).specServiceName}"
|
||||||
title="${spec_service_id}" url="/specific/specificServiceCfg/treeData?isLeafShow=false&cfgType=${app}" extId=""
|
title="${spec_service_id}" url="/specific/specificServiceCfg/treeData?isLeafShow=false&cfgType=1" extId=""
|
||||||
cssClass="form-control input-small"/>
|
cssClass="form-control input-small"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="pull-left">
|
<div class="pull-left">
|
||||||
@@ -441,7 +437,7 @@
|
|||||||
<c:when test="${cfg.isAudit eq '3'}"><span class="label label-warning"><spring:message code="cancel_approved"></spring:message></span></c:when>
|
<c:when test="${cfg.isAudit eq '3'}"><span class="label label-warning"><spring:message code="cancel_approved"></spring:message></span></c:when>
|
||||||
</c:choose>
|
</c:choose>
|
||||||
</td>
|
</td>
|
||||||
<td functionId="${cfg.functionId}" compileId="${cfg.compileId}" action="${cfg.action}"><div class="loading-total"></div></td>
|
<td audit="${cfg.isAudit}" functionId="${cfg.functionId}" compileId="${cfg.compileId}" action="${cfg.action}"><div class="loading-total"></div></td>
|
||||||
<td>${cfg.creatorName }</td>
|
<td>${cfg.creatorName }</td>
|
||||||
<td><fmt:formatDate value="${cfg.createTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
|
<td><fmt:formatDate value="${cfg.createTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
|
||||||
<td>${cfg.editorName }</td>
|
<td>${cfg.editorName }</td>
|
||||||
|
|||||||
@@ -59,9 +59,6 @@ $(function(){
|
|||||||
<span id="keywordError" style="display:none"><spring:message code="required"></spring:message></span>
|
<span id="keywordError" style="display:none"><spring:message code="required"></spring:message></span>
|
||||||
<span id="tagsinputTip" style="display:none"><spring:message code="multiple_keywords_tip"></spring:message></span>
|
<span id="tagsinputTip" style="display:none"><spring:message code="multiple_keywords_tip"></spring:message></span>
|
||||||
<div class="page-content">
|
<div class="page-content">
|
||||||
<c:forEach items="${fns:getDictList('SPECIFIC_SERVICE_CFG_TYPE') }" var="dict">
|
|
||||||
<c:if test="${dict.itemValue eq 'social_app'}"><c:set var="app" value="${dict.itemCode}"/></c:if>
|
|
||||||
</c:forEach>
|
|
||||||
<span id="keywordError" style="display:none"><spring:message code="required"></spring:message></span>
|
<span id="keywordError" style="display:none"><spring:message code="required"></spring:message></span>
|
||||||
<span id="tagsinputTip" style="display:none"><spring:message code="multiple_keywords_tip"></spring:message></span>
|
<span id="tagsinputTip" style="display:none"><spring:message code="multiple_keywords_tip"></spring:message></span>
|
||||||
<h3 class="page-title">
|
<h3 class="page-title">
|
||||||
@@ -96,9 +93,9 @@ $(function(){
|
|||||||
<label class="control-label col-md-3"><font color="red">*</font><spring:message code="social_app"/></label>
|
<label class="control-label col-md-3"><font color="red">*</font><spring:message code="social_app"/></label>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<sys:treeselect id="specServiceId" name="specServiceId" value="${_cfg.specServiceId}"
|
<sys:treeselect id="specServiceId" name="specServiceId" value="${_cfg.specServiceId}"
|
||||||
labelName="parent.specServiceName" notAllowSelectRoot="true" notAllowSelectParent="true"
|
labelName="parent.specServiceName" notAllowSelectRoot="true" notAllowSelectParent="true" enableAddBtn="true"
|
||||||
labelValue="${empty _cfg.specServiceId?spec_service_id:fns:getBySpecServiceId(_cfg.specServiceId).specServiceName}"
|
labelValue="${empty _cfg.specServiceId?spec_service_id:fns:getBySpecServiceId(_cfg.specServiceId).specServiceName}"
|
||||||
title="${spec_service_id}" url="/specific/specificServiceCfg/treeData?isLeafShow=false&cfgType=${app}" extId=""
|
title="${spec_service_id}" url="/specific/specificServiceCfg/treeData?isLeafShow=false&cfgType=1" extId=""
|
||||||
cssClass="form-control required"/>
|
cssClass="form-control required"/>
|
||||||
</div>
|
</div>
|
||||||
<div for="parent.specServiceName"></div>
|
<div for="parent.specServiceName"></div>
|
||||||
|
|||||||
@@ -43,9 +43,6 @@
|
|||||||
<body>
|
<body>
|
||||||
|
|
||||||
<div class="page-content">
|
<div class="page-content">
|
||||||
<c:forEach items="${fns:getDictList('SPECIFIC_SERVICE_CFG_TYPE') }" var="dict">
|
|
||||||
<c:if test="${dict.itemValue eq 'social_app'}"><c:set var="app" value="${dict.itemCode}"/></c:if>
|
|
||||||
</c:forEach>
|
|
||||||
<div class="theme-panel hidden-xs hidden-sm">
|
<div class="theme-panel hidden-xs hidden-sm">
|
||||||
<shiro:hasPermission name="app:http:config">
|
<shiro:hasPermission name="app:http:config">
|
||||||
<button type="button" class="btn btn-primary"
|
<button type="button" class="btn btn-primary"
|
||||||
@@ -57,7 +54,6 @@
|
|||||||
|
|
||||||
<h3 class="page-title">
|
<h3 class="page-title">
|
||||||
<spring:message code="app_ssl_config"></spring:message>
|
<spring:message code="app_ssl_config"></spring:message>
|
||||||
<small><spring:message code="date_list"/></small>
|
|
||||||
</h3>
|
</h3>
|
||||||
<h5 class="page-header"></h5>
|
<h5 class="page-header"></h5>
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
@@ -92,7 +88,7 @@
|
|||||||
<sys:treeselect id="specServiceId" name="specServiceId" value="${cfg.specServiceId}"
|
<sys:treeselect id="specServiceId" name="specServiceId" value="${cfg.specServiceId}"
|
||||||
labelName="parent.specServiceName" notAllowSelectRoot="true" notAllowSelectParent="true"
|
labelName="parent.specServiceName" notAllowSelectRoot="true" notAllowSelectParent="true"
|
||||||
labelValue="${empty cfg.specServiceId?spec_service_id:fns:getBySpecServiceId(cfg.specServiceId).specServiceName}"
|
labelValue="${empty cfg.specServiceId?spec_service_id:fns:getBySpecServiceId(cfg.specServiceId).specServiceName}"
|
||||||
title="${spec_service_id}" url="/specific/specificServiceCfg/treeData?isLeafShow=false&cfgType=${app}" extId=""
|
title="${spec_service_id}" url="/specific/specificServiceCfg/treeData?isLeafShow=false&cfgType=1" extId=""
|
||||||
cssClass="form-control input-small"/>
|
cssClass="form-control input-small"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="pull-left">
|
<div class="pull-left">
|
||||||
@@ -277,7 +273,6 @@
|
|||||||
<th><spring:message code="whether_hexbinary"/></th>
|
<th><spring:message code="whether_hexbinary"/></th>
|
||||||
<th><spring:message code="expression_type"/></th>
|
<th><spring:message code="expression_type"/></th>
|
||||||
<th><spring:message code="match_method"/></th>
|
<th><spring:message code="match_method"/></th>
|
||||||
<th><spring:message code="do_log"/></th>
|
|
||||||
<%-- <th><spring:message code="block_type"/></th>
|
<%-- <th><spring:message code="block_type"/></th>
|
||||||
<th><spring:message code="whether_area_block"/></th>
|
<th><spring:message code="whether_area_block"/></th>
|
||||||
<th><spring:message code="letter"/></th>
|
<th><spring:message code="letter"/></th>
|
||||||
@@ -322,11 +317,6 @@
|
|||||||
<td>
|
<td>
|
||||||
<c:forEach items="${fns:getDictList('MATCH_METHOD')}" var="matchMethodC">
|
<c:forEach items="${fns:getDictList('MATCH_METHOD')}" var="matchMethodC">
|
||||||
<c:if test="${cfg.matchMethod==matchMethodC.itemCode }"><spring:message code="${matchMethodC.itemValue}"/></c:if>
|
<c:if test="${cfg.matchMethod==matchMethodC.itemCode }"><spring:message code="${matchMethodC.itemValue}"/></c:if>
|
||||||
</c:forEach>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<c:forEach items="${fns:getDictList('DO_LOG')}" var="dict">
|
|
||||||
<c:if test="${cfg.doLog==dict.itemCode }"><spring:message code="${dict.itemValue}"/></c:if>
|
|
||||||
</c:forEach>
|
</c:forEach>
|
||||||
</td>
|
</td>
|
||||||
<%-- <td>
|
<%-- <td>
|
||||||
@@ -416,7 +406,7 @@
|
|||||||
<c:when test="${cfg.isAudit eq '3'}"><span class="label label-warning"><spring:message code="cancel_approved"></spring:message></span></c:when>
|
<c:when test="${cfg.isAudit eq '3'}"><span class="label label-warning"><spring:message code="cancel_approved"></spring:message></span></c:when>
|
||||||
</c:choose>
|
</c:choose>
|
||||||
</td>
|
</td>
|
||||||
<td functionId="${cfg.functionId}" compileId="${cfg.compileId}" action="${cfg.action}"><div class="loading-total"></div></td>
|
<td audit="${cfg.isAudit}" functionId="${cfg.functionId}" compileId="${cfg.compileId}" action="${cfg.action}"><div class="loading-total"></div></td>
|
||||||
<td>${cfg.creatorName }</td>
|
<td>${cfg.creatorName }</td>
|
||||||
<td><fmt:formatDate value="${cfg.createTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
|
<td><fmt:formatDate value="${cfg.createTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
|
||||||
<td>${cfg.editorName }</td>
|
<td>${cfg.editorName }</td>
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ $(function(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(flag){
|
if(flag){
|
||||||
$("input[name$='exprType']").attr("disabled",false);
|
|
||||||
$("#appCode").val($("#specServiceIdId").val());
|
$("#appCode").val($("#specServiceIdId").val());
|
||||||
loading('onloading...');
|
loading('onloading...');
|
||||||
form.submit();
|
form.submit();
|
||||||
@@ -54,9 +53,6 @@ $(function(){
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="page-content">
|
<div class="page-content">
|
||||||
<c:forEach items="${fns:getDictList('SPECIFIC_SERVICE_CFG_TYPE') }" var="dict">
|
|
||||||
<c:if test="${dict.itemValue eq 'social_app'}"><c:set var="app" value="${dict.itemCode}"/></c:if>
|
|
||||||
</c:forEach>
|
|
||||||
<span id="keywordError" style="display:none"><spring:message code="required"></spring:message></span>
|
<span id="keywordError" style="display:none"><spring:message code="required"></spring:message></span>
|
||||||
<span id="tagsinputTip" style="display:none"><spring:message code="multiple_keywords_tip"></spring:message></span>
|
<span id="tagsinputTip" style="display:none"><spring:message code="multiple_keywords_tip"></spring:message></span>
|
||||||
<h3 class="page-title">
|
<h3 class="page-title">
|
||||||
@@ -92,9 +88,9 @@ $(function(){
|
|||||||
<label class="control-label col-md-3"><font color="red">*</font><spring:message code="social_app"/></label>
|
<label class="control-label col-md-3"><font color="red">*</font><spring:message code="social_app"/></label>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<sys:treeselect id="specServiceId" name="specServiceId" value="${_cfg.specServiceId}"
|
<sys:treeselect id="specServiceId" name="specServiceId" value="${_cfg.specServiceId}"
|
||||||
labelName="parent.specServiceName" notAllowSelectRoot="true" notAllowSelectParent="true"
|
labelName="parent.specServiceName" notAllowSelectRoot="true" notAllowSelectParent="true" enableAddBtn="true"
|
||||||
labelValue="${empty _cfg.specServiceId?spec_service_id:fns:getBySpecServiceId(_cfg.specServiceId).specServiceName}"
|
labelValue="${empty _cfg.specServiceId?spec_service_id:fns:getBySpecServiceId(_cfg.specServiceId).specServiceName}"
|
||||||
title="${spec_service_id}" url="/specific/specificServiceCfg/treeData?isLeafShow=false&cfgType=${app}" extId=""
|
title="${spec_service_id}" url="/specific/specificServiceCfg/treeData?isLeafShow=false&cfgType=1" extId=""
|
||||||
cssClass="form-control required"/>
|
cssClass="form-control required"/>
|
||||||
</div>
|
</div>
|
||||||
<div for="parent.specServiceName"></div>
|
<div for="parent.specServiceName"></div>
|
||||||
@@ -140,6 +136,7 @@ $(function(){
|
|||||||
<div for="action"></div>
|
<div for="action"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@@ -160,20 +157,21 @@ $(function(){
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row doLog" style="display: none;">
|
<!-- dolog begin-->
|
||||||
<div class="col-md-6">
|
<div class="row " >
|
||||||
|
<div class="col-md-6" hidden="true">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="control-label col-md-3"><spring:message code="do_log" /></label>
|
<label class="control-label col-md-3"><spring:message code="do_log" /></label>
|
||||||
<c:forEach items="${fns:getDictList('DO_LOG') }" var="dict">
|
<c:forEach items="${fns:getDictList('DO_LOG') }" var="dict">
|
||||||
<c:choose>
|
<c:choose>
|
||||||
<c:when test="${dict.itemCode eq _cfg.doLog}">
|
<c:when test="${dict.itemCode eq _cfg.doLog}">
|
||||||
<label class="radio-inline">
|
<label class="radio-inline">
|
||||||
<input type="radio" name="doLog" value="${dict.itemCode}" ><spring:message code="${dict.itemValue}"/>
|
<input type="radio" name="doLog" checked value="0" ><spring:message code="${dict.itemValue}"/>
|
||||||
</label>
|
</label>
|
||||||
</c:when>
|
</c:when>
|
||||||
<c:otherwise>
|
<c:otherwise>
|
||||||
<label class="radio-inline">
|
<label class="radio-inline">
|
||||||
<input type="radio" name="doLog" value="${dict.itemCode}" ><spring:message code="${dict.itemValue}"/>
|
<input type="radio" name="doLog" value="0" ><spring:message code="${dict.itemValue}"/>
|
||||||
</label>
|
</label>
|
||||||
</c:otherwise>
|
</c:otherwise>
|
||||||
</c:choose>
|
</c:choose>
|
||||||
@@ -181,198 +179,16 @@ $(function(){
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- dolog end-->
|
||||||
|
|
||||||
<c:forEach items="${regionList}" var="region">
|
<c:forEach items="${regionList}" var="region">
|
||||||
<c:if test="${_cfg.functionId eq region.functionId}">
|
<c:if test="${_cfg.functionId eq region.functionId}">
|
||||||
<input type="hidden" name="cfgType" value="${region.configRegionValue}">
|
<input type="hidden" name="cfgType" value="${region.configRegionValue}">
|
||||||
<input type="hidden" name="cfgRegionCode" value="${region.configRegionCode}">
|
<input type="hidden" name="cfgRegionCode" value="${region.configRegionCode}">
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-6">
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="control-label col-md-3"><font color="red">*</font>
|
|
||||||
<spring:message code="expression_type" /></label>
|
|
||||||
<div class="col-md-6">
|
|
||||||
<c:if test="${!empty region.configExprType}">
|
|
||||||
<c:forEach var="exprType" items="${fn:split(region.configExprType,',')}">
|
|
||||||
<c:forEach items="${fns:getDictList('EXPRESSION_TYPE')}" var="exprTypeC">
|
|
||||||
<c:if test="${exprTypeC.itemCode eq exprType}">
|
|
||||||
<label class="radio-inline">
|
|
||||||
<input type="radio"
|
|
||||||
name="exprType" value="${exprType }"
|
|
||||||
class="required"
|
|
||||||
<c:if test="${_cfg.exprType eq exprType || (empty _cfg.exprType && exprType eq 0)}">
|
|
||||||
checked
|
|
||||||
</c:if>
|
|
||||||
>
|
|
||||||
<spring:message code="${exprTypeC.itemValue }" />
|
|
||||||
</label>
|
|
||||||
</c:if>
|
|
||||||
</c:forEach>
|
|
||||||
</c:forEach>
|
|
||||||
</c:if>
|
|
||||||
<c:if test="${empty region.configExprType}">
|
|
||||||
<c:forEach items="${fns:getDictList('EXPRESSION_TYPE')}" var="exprTypeC">
|
|
||||||
<c:if test="${exprTypeC.itemCode eq 0}">
|
|
||||||
<label class="radio-inline">
|
|
||||||
<input type="radio"
|
|
||||||
name="exprType" value="${exprTypeC.itemCode }"
|
|
||||||
class="required" checked >
|
|
||||||
<spring:message code="${exprTypeC.itemValue }" />
|
|
||||||
</label>
|
|
||||||
</c:if>
|
|
||||||
</c:forEach>
|
|
||||||
</c:if>
|
|
||||||
</div>
|
|
||||||
<div for="exprType"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-md-6">
|
|
||||||
<div class="form-group ">
|
|
||||||
<label class="control-label col-md-3"><font color="red">*</font>
|
|
||||||
<spring:message code="match_method" /></label>
|
|
||||||
<div class="col-md-6">
|
|
||||||
<select name="matchMethod"
|
|
||||||
class="selectpicker select2 form-control required">
|
|
||||||
<c:if test="${!empty region.configMatchMethod}">
|
|
||||||
<c:forEach var="matchMethod" items="${fn:split(region.configMatchMethod,',')}">
|
|
||||||
<c:forEach items="${fns:getDictList('MATCH_METHOD')}" var="matchMethodC">
|
|
||||||
<c:if test="${matchMethodC.itemCode eq matchMethod}">
|
|
||||||
<option value="${matchMethodC.itemCode}"
|
|
||||||
<c:if test="${_cfg.matchMethod eq matchMethod || (empty _cfg.matchMethod && matchMethod eq 0)}">
|
|
||||||
selected
|
|
||||||
</c:if>
|
|
||||||
>
|
|
||||||
<spring:message code="${matchMethodC.itemValue}"/>
|
|
||||||
</option>
|
|
||||||
</c:if>
|
|
||||||
|
|
||||||
</c:forEach>
|
|
||||||
</c:forEach>
|
|
||||||
</c:if>
|
|
||||||
<c:if test="${empty region.configMatchMethod}">
|
|
||||||
<c:forEach items="${fns:getDictList('MATCH_METHOD')}" var="matchMethodC">
|
|
||||||
<c:if test="${matchMethodC.itemCode eq 0}">
|
|
||||||
<option value="${matchMethodC.itemCode}"
|
|
||||||
selected
|
|
||||||
>
|
|
||||||
<spring:message code="${matchMethodC.itemValue}"/>
|
|
||||||
</option>
|
|
||||||
</c:if>
|
|
||||||
|
|
||||||
</c:forEach>
|
|
||||||
</c:if>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
<div for="matchMethod"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<c:if test="${!empty region.configHex}">
|
|
||||||
<div class="col-md-6">
|
|
||||||
<div class="form-group ">
|
|
||||||
<label class="control-label col-md-3"><font color="red">*</font><spring:message code="is_hex"/></label>
|
|
||||||
<div class="col-md-6">
|
|
||||||
<label class="radio-inline">
|
|
||||||
<input type="radio" name="isHex" value="1" class="required"
|
|
||||||
><spring:message code="hex"/>
|
|
||||||
</label>
|
|
||||||
<label class="radio-inline">
|
|
||||||
<input type="radio" name="isHex" value="0" class="required"
|
|
||||||
><spring:message code="not_hex"/>
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
<div for="isHex"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-6">
|
|
||||||
<div class="form-group ">
|
|
||||||
<label class="control-label col-md-3"><font color="red">*</font><spring:message code="is_case_insenstive"/></label>
|
|
||||||
<div class="col-md-6">
|
|
||||||
<label class="radio-inline">
|
|
||||||
<input type="radio" name="isCaseSenstive" value="1" class="required"
|
|
||||||
><spring:message code="case_senstive"/>
|
|
||||||
</label>
|
|
||||||
<label class="radio-inline">
|
|
||||||
<input type="radio" name="isCaseSenstive" value="0" class="required"
|
|
||||||
><spring:message code="case_insenstive"/>
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
<div for="isCaseInsenstive"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</c:if>
|
|
||||||
<c:if test="${empty region.configHex}">
|
|
||||||
<div class="col-md-6">
|
|
||||||
<div class="form-group ">
|
|
||||||
<label class="control-label col-md-3"><font color="red">*</font><spring:message code="is_hex"/></label>
|
|
||||||
<div class="col-md-6">
|
|
||||||
<label class="radio-inline">
|
|
||||||
<input type="radio" name="isHex" value="0" class="required" checked
|
|
||||||
><spring:message code="not_hex"/>
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
<div for="isHex"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-6">
|
|
||||||
<div class="form-group ">
|
|
||||||
<label class="control-label col-md-3"><font color="red">*</font><spring:message code="is_case_insenstive"/></label>
|
|
||||||
<div class="col-md-6">
|
|
||||||
<label class="radio-inline">
|
|
||||||
<input type="radio" name="isCaseSenstive" value="0" class="required"
|
|
||||||
checked
|
|
||||||
><spring:message code="case_insenstive"/>
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
<div for="isCaseInsenstive"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</c:if>
|
|
||||||
</div>
|
|
||||||
<div class="row hidden">
|
|
||||||
<div class="col-md-6">
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="control-label col-md-3"><font color="red">*</font>
|
|
||||||
<spring:message code="whether_hexbinary" /></label>
|
|
||||||
<div class="col-md-6">
|
|
||||||
<select name="isHexbin"
|
|
||||||
class="selectpicker select2 form-control required">
|
|
||||||
<c:if test="${!empty region.configHex}">
|
|
||||||
<c:forEach var="isHexbin" items="${fn:split(region.configHex,',')}">
|
|
||||||
<c:forEach items="${fns:getDictList('WHETHER_HEXBINARY')}" var="isHexbinC">
|
|
||||||
<c:if test="${isHexbinC.itemCode eq isHexbin}">
|
|
||||||
<option value="${isHexbinC.itemCode}"
|
|
||||||
<c:if test="${_cfg.isHexbin eq isHexbin || (empty _cfg.isHexbin && isHexbin eq 0)}">
|
|
||||||
selected
|
|
||||||
</c:if>
|
|
||||||
>
|
|
||||||
<spring:message code="${isHexbinC.itemValue}"/>
|
|
||||||
</option>
|
|
||||||
</c:if>
|
|
||||||
|
|
||||||
</c:forEach>
|
|
||||||
</c:forEach>
|
|
||||||
</c:if>
|
|
||||||
<c:if test="${empty region.configHex}">
|
|
||||||
|
|
||||||
<c:forEach items="${fns:getDictList('WHETHER_HEXBINARY')}" var="isHexbinC">
|
|
||||||
<c:if test="${isHexbinC.itemCode eq 0}">
|
|
||||||
<option value="${isHexbinC.itemCode}" selected >
|
|
||||||
<spring:message code="${isHexbinC.itemValue}"/>
|
|
||||||
</option>
|
|
||||||
</c:if>
|
|
||||||
</c:forEach>
|
|
||||||
|
|
||||||
</c:if>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
<div for="isHexbin"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</c:if>
|
</c:if>
|
||||||
|
<input type="hidden" name="exprType" value="0">
|
||||||
|
<input type="hidden" name="matchMethod" value="0">
|
||||||
|
<input type="hidden" name="isHexbin" value="0">
|
||||||
</c:forEach>
|
</c:forEach>
|
||||||
</div>
|
</div>
|
||||||
<input name="isAreaEffective" type="hidden" value="0">
|
<input name="isAreaEffective" type="hidden" value="0">
|
||||||
|
|||||||
@@ -41,9 +41,6 @@
|
|||||||
<body>
|
<body>
|
||||||
|
|
||||||
<div class="page-content">
|
<div class="page-content">
|
||||||
<c:forEach items="${fns:getDictList('SPECIFIC_SERVICE_CFG_TYPE') }" var="dict">
|
|
||||||
<c:if test="${dict.itemValue eq 'social_app'}"><c:set var="app" value="${dict.itemCode}"/></c:if>
|
|
||||||
</c:forEach>
|
|
||||||
<div class="theme-panel hidden-xs hidden-sm">
|
<div class="theme-panel hidden-xs hidden-sm">
|
||||||
<shiro:hasPermission name="app:tcp:config">
|
<shiro:hasPermission name="app:tcp:config">
|
||||||
<button type="button" class="btn btn-primary"
|
<button type="button" class="btn btn-primary"
|
||||||
@@ -55,7 +52,6 @@
|
|||||||
|
|
||||||
<h3 class="page-title">
|
<h3 class="page-title">
|
||||||
<spring:message code="app_tcp_config"></spring:message>
|
<spring:message code="app_tcp_config"></spring:message>
|
||||||
<small><spring:message code="date_list"/></small>
|
|
||||||
</h3>
|
</h3>
|
||||||
<h5 class="page-header"></h5>
|
<h5 class="page-header"></h5>
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
@@ -90,7 +86,7 @@
|
|||||||
<sys:treeselect id="specServiceId" name="specServiceId" value="${cfg.specServiceId}"
|
<sys:treeselect id="specServiceId" name="specServiceId" value="${cfg.specServiceId}"
|
||||||
labelName="parent.specServiceName" notAllowSelectRoot="true" notAllowSelectParent="true"
|
labelName="parent.specServiceName" notAllowSelectRoot="true" notAllowSelectParent="true"
|
||||||
labelValue="${empty cfg.specServiceId?spec_service_id:fns:getBySpecServiceId(cfg.specServiceId).specServiceName}"
|
labelValue="${empty cfg.specServiceId?spec_service_id:fns:getBySpecServiceId(cfg.specServiceId).specServiceName}"
|
||||||
title="${spec_service_id}" url="/specific/specificServiceCfg/treeData?isLeafShow=false&cfgType=${app}" extId=""
|
title="${spec_service_id}" url="/specific/specificServiceCfg/treeData?isLeafShow=false&cfgType=1" extId=""
|
||||||
cssClass="form-control input-small"/>
|
cssClass="form-control input-small"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="pull-left">
|
<div class="pull-left">
|
||||||
@@ -270,10 +266,12 @@
|
|||||||
<th><input type="checkbox" class="i-checks" id="checkAll"></th>
|
<th><input type="checkbox" class="i-checks" id="checkAll"></th>
|
||||||
<th class="cfgDesc"><spring:message code="config_describe"/></th>
|
<th class="cfgDesc"><spring:message code="config_describe"/></th>
|
||||||
<th><spring:message code="social_app"/></th>
|
<th><spring:message code="social_app"/></th>
|
||||||
<th><spring:message code="whether_hexbinary"/></th>
|
<th><spring:message code="min_tcp"/></th>
|
||||||
|
<th><spring:message code="max_tcp"/></th>
|
||||||
|
<%-- <th><spring:message code="whether_hexbinary"/></th>
|
||||||
<th><spring:message code="expression_type"/></th>
|
<th><spring:message code="expression_type"/></th>
|
||||||
<th><spring:message code="match_method"/></th>
|
<th><spring:message code="match_method"/></th>
|
||||||
<th><spring:message code="do_log"/></th>
|
<th><spring:message code="do_log"/></th> --%>
|
||||||
<%-- <th><spring:message code="block_type"/></th>
|
<%-- <th><spring:message code="block_type"/></th>
|
||||||
<th><spring:message code="whether_area_block"/></th>
|
<th><spring:message code="whether_area_block"/></th>
|
||||||
<th><spring:message code="letter"/></th>
|
<th><spring:message code="letter"/></th>
|
||||||
@@ -282,8 +280,8 @@
|
|||||||
<th><spring:message code="label"/></th> --%>
|
<th><spring:message code="label"/></th> --%>
|
||||||
<th><spring:message code="valid_identifier"/></th>
|
<th><spring:message code="valid_identifier"/></th>
|
||||||
<th><spring:message code="is_audit"/></th>
|
<th><spring:message code="is_audit"/></th>
|
||||||
<th><spring:message code="log_total"/></th>
|
<%-- <th><spring:message code="log_total"/></th>
|
||||||
<th><spring:message code="creator"/></th>
|
--%> <th><spring:message code="creator"/></th>
|
||||||
<th class="sort-column r.create_time"><spring:message code="config_time"/></th>
|
<th class="sort-column r.create_time"><spring:message code="config_time"/></th>
|
||||||
<th><spring:message code="editor"/></th>
|
<th><spring:message code="editor"/></th>
|
||||||
<th class="sort-column r.edit_time"><spring:message code="edit_time"/></th>
|
<th class="sort-column r.edit_time"><spring:message code="edit_time"/></th>
|
||||||
@@ -299,25 +297,8 @@
|
|||||||
</td>
|
</td>
|
||||||
<td>${cfg.cfgDesc }</td>
|
<td>${cfg.cfgDesc }</td>
|
||||||
<td>${cfg.appName }</td>
|
<td>${cfg.appName }</td>
|
||||||
<td>
|
<td>${cfg.lowBoundary }</td>
|
||||||
<c:forEach items="${fns:getDictList('WHETHER_HEXBINARY')}" var="isHexbinC">
|
<td>${cfg.upBoundary }</td>
|
||||||
<c:if test="${cfg.isHexbin==isHexbinC.itemCode }"><spring:message code="${isHexbinC.itemValue}"/></c:if>
|
|
||||||
</c:forEach>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<c:if test="${cfg.exprType==1}"><spring:message code="and_expression"/></c:if>
|
|
||||||
<c:if test="${cfg.exprType==0}"><spring:message code="null_expression"/></c:if>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<c:forEach items="${fns:getDictList('MATCH_METHOD')}" var="matchMethodC">
|
|
||||||
<c:if test="${cfg.matchMethod==matchMethodC.itemCode }"><spring:message code="${matchMethodC.itemValue}"/></c:if>
|
|
||||||
</c:forEach>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<c:forEach items="${fns:getDictList('DO_LOG')}" var="dict">
|
|
||||||
<c:if test="${cfg.doLog==dict.itemCode }"><spring:message code="${dict.itemValue}"/></c:if>
|
|
||||||
</c:forEach>
|
|
||||||
</td>
|
|
||||||
<td>
|
<td>
|
||||||
<c:if test="${cfg.isValid==0}"><spring:message code="no"/></c:if>
|
<c:if test="${cfg.isValid==0}"><spring:message code="no"/></c:if>
|
||||||
<c:if test="${cfg.isValid==1}"><spring:message code="yes"/></c:if>
|
<c:if test="${cfg.isValid==1}"><spring:message code="yes"/></c:if>
|
||||||
@@ -331,8 +312,8 @@
|
|||||||
<c:when test="${cfg.isAudit eq '3'}"><span class="label label-warning"><spring:message code="cancel_approved"></spring:message></span></c:when>
|
<c:when test="${cfg.isAudit eq '3'}"><span class="label label-warning"><spring:message code="cancel_approved"></spring:message></span></c:when>
|
||||||
</c:choose>
|
</c:choose>
|
||||||
</td>
|
</td>
|
||||||
<td functionId="${cfg.functionId}" compileId="${cfg.compileId}" action="${cfg.action}"><div class="loading-total"></div></td>
|
<%-- <td audit="${cfg.isAudit}" functionId="${cfg.functionId}" compileId="${cfg.compileId}" action="${cfg.action}"><div class="loading-total"></div></td>
|
||||||
<td>${cfg.creatorName }</td>
|
--%> <td>${cfg.creatorName }</td>
|
||||||
<td><fmt:formatDate value="${cfg.createTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
|
<td><fmt:formatDate value="${cfg.createTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
|
||||||
<td>${cfg.editorName }</td>
|
<td>${cfg.editorName }</td>
|
||||||
<td><fmt:formatDate value="${cfg.editTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
|
<td><fmt:formatDate value="${cfg.editTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
|
||||||
|
|||||||
@@ -47,9 +47,6 @@ $(function(){
|
|||||||
<body>
|
<body>
|
||||||
|
|
||||||
<div class="page-content">
|
<div class="page-content">
|
||||||
<c:forEach items="${fns:getDictList('SPECIFIC_SERVICE_CFG_TYPE') }" var="dict">
|
|
||||||
<c:if test="${dict.itemValue eq 'social_app'}"><c:set var="app" value="${dict.itemCode}"/></c:if>
|
|
||||||
</c:forEach>
|
|
||||||
<span id="keywordError" style="display:none"><spring:message code="required"></spring:message></span>
|
<span id="keywordError" style="display:none"><spring:message code="required"></spring:message></span>
|
||||||
<span id="tagsinputTip" style="display:none"><spring:message code="multiple_keywords_tip"></spring:message></span>
|
<span id="tagsinputTip" style="display:none"><spring:message code="multiple_keywords_tip"></spring:message></span>
|
||||||
<h3 class="page-title">
|
<h3 class="page-title">
|
||||||
@@ -85,7 +82,7 @@ $(function(){
|
|||||||
<sys:treeselect id="specServiceId" name="specServiceId" value="${_cfg.specServiceId}"
|
<sys:treeselect id="specServiceId" name="specServiceId" value="${_cfg.specServiceId}"
|
||||||
labelName="parent.specServiceName" notAllowSelectRoot="true" notAllowSelectParent="true"
|
labelName="parent.specServiceName" notAllowSelectRoot="true" notAllowSelectParent="true"
|
||||||
labelValue="${empty _cfg.specServiceId?spec_service_id:fns:getBySpecServiceId(_cfg.specServiceId).specServiceName}"
|
labelValue="${empty _cfg.specServiceId?spec_service_id:fns:getBySpecServiceId(_cfg.specServiceId).specServiceName}"
|
||||||
title="${spec_service_id}" url="/specific/specificServiceCfg/treeData?isLeafShow=false&cfgType=${app}" extId=""
|
title="${spec_service_id}" url="/specific/specificServiceCfg/treeData?isLeafShow=false&cfgType=1" extId=""
|
||||||
cssClass="form-control required"/>
|
cssClass="form-control required"/>
|
||||||
</div>
|
</div>
|
||||||
<div for="parent.specServiceName"></div>
|
<div for="parent.specServiceName"></div>
|
||||||
|
|||||||
@@ -44,9 +44,6 @@
|
|||||||
<body>
|
<body>
|
||||||
|
|
||||||
<div class="page-content">
|
<div class="page-content">
|
||||||
<c:forEach items="${fns:getDictList('SPECIFIC_SERVICE_CFG_TYPE') }" var="dict">
|
|
||||||
<c:if test="${dict.itemValue eq 'social_app'}"><c:set var="app" value="${dict.itemCode}"/></c:if>
|
|
||||||
</c:forEach>
|
|
||||||
<div class="theme-panel hidden-xs hidden-sm">
|
<div class="theme-panel hidden-xs hidden-sm">
|
||||||
<shiro:hasPermission name="app:topic:config">
|
<shiro:hasPermission name="app:topic:config">
|
||||||
<button type="button" class="btn btn-primary"
|
<button type="button" class="btn btn-primary"
|
||||||
@@ -58,7 +55,6 @@
|
|||||||
|
|
||||||
<h3 class="page-title">
|
<h3 class="page-title">
|
||||||
<spring:message code="app_topic_domain_cfg"></spring:message>
|
<spring:message code="app_topic_domain_cfg"></spring:message>
|
||||||
<small><spring:message code="date_list"/></small>
|
|
||||||
</h3>
|
</h3>
|
||||||
<h5 class="page-header"></h5>
|
<h5 class="page-header"></h5>
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
@@ -93,7 +89,7 @@
|
|||||||
<sys:treeselect id="specServiceId" name="specServiceId" value="${cfg.specServiceId}"
|
<sys:treeselect id="specServiceId" name="specServiceId" value="${cfg.specServiceId}"
|
||||||
labelName="parent.specServiceName" notAllowSelectRoot="true" notAllowSelectParent="true"
|
labelName="parent.specServiceName" notAllowSelectRoot="true" notAllowSelectParent="true"
|
||||||
labelValue="${empty cfg.specServiceId?spec_service_id:fns:getBySpecServiceId(cfg.specServiceId).specServiceName}"
|
labelValue="${empty cfg.specServiceId?spec_service_id:fns:getBySpecServiceId(cfg.specServiceId).specServiceName}"
|
||||||
title="${spec_service_id}" url="/specific/specificServiceCfg/treeData?isLeafShow=false&cfgType=${app}" extId=""
|
title="${spec_service_id}" url="/specific/specificServiceCfg/treeData?isLeafShow=false&cfgType=1" extId=""
|
||||||
cssClass="form-control input-small"/>
|
cssClass="form-control input-small"/>
|
||||||
</div> --%>
|
</div> --%>
|
||||||
<div class="pull-left">
|
<div class="pull-left">
|
||||||
@@ -412,7 +408,7 @@
|
|||||||
<c:when test="${cfg.isAudit eq '3'}"><span class="label label-warning"><spring:message code="cancel_approved"></spring:message></span></c:when>
|
<c:when test="${cfg.isAudit eq '3'}"><span class="label label-warning"><spring:message code="cancel_approved"></spring:message></span></c:when>
|
||||||
</c:choose>
|
</c:choose>
|
||||||
</td>
|
</td>
|
||||||
<td functionId="${cfg.functionId}" compileId="${cfg.compileId}" action="${cfg.action}"><div class="loading-total"></div></td>
|
<td audit="${cfg.isAudit}" functionId="${cfg.functionId}" compileId="${cfg.compileId}" action="${cfg.action}"><div class="loading-total"></div></td>
|
||||||
<td>${cfg.creatorName }</td>
|
<td>${cfg.creatorName }</td>
|
||||||
<td><fmt:formatDate value="${cfg.createTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
|
<td><fmt:formatDate value="${cfg.createTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
|
||||||
<td>${cfg.editorName }</td>
|
<td>${cfg.editorName }</td>
|
||||||
|
|||||||
@@ -49,9 +49,6 @@ $(function(){
|
|||||||
$("#cfgFrom").attr("action","${ctx}/cfg/app/saveOrUpdateCfg");
|
$("#cfgFrom").attr("action","${ctx}/cfg/app/saveOrUpdateCfg");
|
||||||
$("#save").submit();
|
$("#save").submit();
|
||||||
});
|
});
|
||||||
$("#cancel").on("click",function(){
|
|
||||||
window.history.back();
|
|
||||||
});
|
|
||||||
$("#cfgFrom").validate({
|
$("#cfgFrom").validate({
|
||||||
submitHandler: function(form){
|
submitHandler: function(form){
|
||||||
//loading('onloading...');
|
//loading('onloading...');
|
||||||
|
|||||||
@@ -76,7 +76,6 @@
|
|||||||
|
|
||||||
<h3 class="page-title">
|
<h3 class="page-title">
|
||||||
<spring:message code="${cfgName}"></spring:message>
|
<spring:message code="${cfgName}"></spring:message>
|
||||||
<small><spring:message code="date_list"/></small>
|
|
||||||
</h3>
|
</h3>
|
||||||
<h5 class="page-header"></h5>
|
<h5 class="page-header"></h5>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|||||||
@@ -7,9 +7,6 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function(){
|
$(function(){
|
||||||
$("#cfgFrom").find("input,select,radio").attr("disabled",true);
|
$("#cfgFrom").find("input,select,radio").attr("disabled",true);
|
||||||
$("#cancel").on("click",function(){
|
|
||||||
window.history.back();
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -106,6 +106,27 @@ $(function(){
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="row doLog">
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="control-label col-md-3"><spring:message code="do_log" /></label>
|
||||||
|
<c:forEach items="${fns:getDictList('DO_LOG') }" var="dict">
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${dict.itemCode eq _cfg.doLog}">
|
||||||
|
<label class="radio-inline">
|
||||||
|
<input type="radio" name="doLog" checked value="${dict.itemCode}" ><spring:message code="${dict.itemValue}"/>
|
||||||
|
</label>
|
||||||
|
</c:when>
|
||||||
|
<c:otherwise>
|
||||||
|
<label class="radio-inline">
|
||||||
|
<input type="radio" name="doLog" value="${dict.itemCode}" ><spring:message code="${dict.itemValue}"/>
|
||||||
|
</label>
|
||||||
|
</c:otherwise>
|
||||||
|
</c:choose>
|
||||||
|
</c:forEach>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<!-- desc and action -->
|
<!-- desc and action -->
|
||||||
<%@include file="/WEB-INF/include/form/ipInfo.jsp" %>
|
<%@include file="/WEB-INF/include/form/ipInfo.jsp" %>
|
||||||
<%@include file="/WEB-INF/include/form/areaInfo.jsp" %>
|
<%@include file="/WEB-INF/include/form/areaInfo.jsp" %>
|
||||||
|
|||||||
@@ -8,6 +8,8 @@
|
|||||||
//搜索框提示语初始化
|
//搜索框提示语初始化
|
||||||
if("${cfg.cfgDesc}"){
|
if("${cfg.cfgDesc}"){
|
||||||
$("#intype").val("${cfg.cfgDesc}");
|
$("#intype").val("${cfg.cfgDesc}");
|
||||||
|
}else if("${cfg.compileId}"){
|
||||||
|
$("#intype").val("${cfg.compileId}");
|
||||||
}else if("${cfg.srcIpAddress}"){
|
}else if("${cfg.srcIpAddress}"){
|
||||||
$("#intype").val("${cfg.srcIpAddress}");
|
$("#intype").val("${cfg.srcIpAddress}");
|
||||||
}else if("${cfg.srcPort}"){
|
}else if("${cfg.srcPort}"){
|
||||||
@@ -33,6 +35,7 @@
|
|||||||
$(".Wdate").attr("value",'');
|
$(".Wdate").attr("value",'');
|
||||||
$("#description").attr("value",'');
|
$("#description").attr("value",'');
|
||||||
$("#searchForm")[0].reset();
|
$("#searchForm")[0].reset();
|
||||||
|
$("#intype").attr("placeholder","<spring:message code='input'/> "+$("#seltype").find("option:selected").text());
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
var edit=function(url){
|
var edit=function(url){
|
||||||
@@ -65,7 +68,6 @@
|
|||||||
|
|
||||||
<h3 class="page-title">
|
<h3 class="page-title">
|
||||||
<spring:message code="av_content_ip_control"></spring:message>
|
<spring:message code="av_content_ip_control"></spring:message>
|
||||||
<small><spring:message code="date_list"/></small>
|
|
||||||
</h3>
|
</h3>
|
||||||
<h5 class="page-header"></h5>
|
<h5 class="page-header"></h5>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@@ -102,6 +104,7 @@
|
|||||||
|
|
||||||
<form:select path="seltype" class="selectpicker select2 input-small" >
|
<form:select path="seltype" class="selectpicker select2 input-small" >
|
||||||
<form:option value="cfgDesc"><spring:message code="config_describe"></spring:message></form:option>
|
<form:option value="cfgDesc"><spring:message code="config_describe"></spring:message></form:option>
|
||||||
|
<form:option value="compileId"><spring:message code="cfg_id"></spring:message></form:option>
|
||||||
<form:option value="srcIpAddress"><spring:message code="client_ip"></spring:message></form:option>
|
<form:option value="srcIpAddress"><spring:message code="client_ip"></spring:message></form:option>
|
||||||
<form:option value="srcPort"><spring:message code="client_port"></spring:message></form:option>
|
<form:option value="srcPort"><spring:message code="client_port"></spring:message></form:option>
|
||||||
</form:select>
|
</form:select>
|
||||||
@@ -275,6 +278,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<th><input type="checkbox" class="i-checks" id="checkAll"></th>
|
<th><input type="checkbox" class="i-checks" id="checkAll"></th>
|
||||||
<%-- <th><spring:message code="seq"/></th> --%>
|
<%-- <th><spring:message code="seq"/></th> --%>
|
||||||
|
<th style="display: none"><spring:message code="cfg_id"/></th>
|
||||||
<th><spring:message code="config_describe"/></th>
|
<th><spring:message code="config_describe"/></th>
|
||||||
<th><spring:message code="ip_type"/></th>
|
<th><spring:message code="ip_type"/></th>
|
||||||
<th><spring:message code="client_ip"/></th>
|
<th><spring:message code="client_ip"/></th>
|
||||||
@@ -286,6 +290,7 @@
|
|||||||
<th><spring:message code="direction"/></th>
|
<th><spring:message code="direction"/></th>
|
||||||
<th><spring:message code="protocol"/></th>
|
<th><spring:message code="protocol"/></th>
|
||||||
<th><spring:message code="block_type"/></th>
|
<th><spring:message code="block_type"/></th>
|
||||||
|
<th><spring:message code="do_log"/></th>
|
||||||
<th><spring:message code="whether_area_block"/></th>
|
<th><spring:message code="whether_area_block"/></th>
|
||||||
<th><spring:message code="letter"/></th>
|
<th><spring:message code="letter"/></th>
|
||||||
<th><spring:message code="classification"/></th>
|
<th><spring:message code="classification"/></th>
|
||||||
@@ -307,6 +312,7 @@
|
|||||||
<c:forEach items="${page.list }" var="cfg" varStatus="status" step="1">
|
<c:forEach items="${page.list }" var="cfg" varStatus="status" step="1">
|
||||||
<tr>
|
<tr>
|
||||||
<td><input type="checkbox" class="i-checks" id="${cfg.cfgId}" compileId="${cfg.compileId}" value="${cfg.isAudit}"></td>
|
<td><input type="checkbox" class="i-checks" id="${cfg.cfgId}" compileId="${cfg.compileId}" value="${cfg.isAudit}"></td>
|
||||||
|
<td>${cfg.compileId }</td>
|
||||||
<td>${cfg.cfgDesc }</td>
|
<td>${cfg.cfgDesc }</td>
|
||||||
<td>
|
<td>
|
||||||
<c:forEach items="${fns:getDictList('IP_TYPE')}" var="ipTypeC">
|
<c:forEach items="${fns:getDictList('IP_TYPE')}" var="ipTypeC">
|
||||||
@@ -344,6 +350,13 @@
|
|||||||
</c:if>
|
</c:if>
|
||||||
</c:forEach>
|
</c:forEach>
|
||||||
</td>
|
</td>
|
||||||
|
<td>
|
||||||
|
<c:forEach items="${fns:getDictList('DO_LOG') }" var="dict">
|
||||||
|
<c:if test="${dict.itemCode eq cfg.doLog }">
|
||||||
|
<spring:message code="${dict.itemValue }"/>
|
||||||
|
</c:if>
|
||||||
|
</c:forEach>
|
||||||
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<c:if test="${cfg.isAreaEffective==0}"><spring:message code="no"/></c:if>
|
<c:if test="${cfg.isAreaEffective==0}"><spring:message code="no"/></c:if>
|
||||||
<c:if test="${cfg.isAreaEffective==1}">
|
<c:if test="${cfg.isAreaEffective==1}">
|
||||||
@@ -424,7 +437,7 @@
|
|||||||
<c:when test="${cfg.isAudit eq '3'}"><span class="label label-warning"><spring:message code="cancel_approved"></spring:message></span></c:when>
|
<c:when test="${cfg.isAudit eq '3'}"><span class="label label-warning"><spring:message code="cancel_approved"></spring:message></span></c:when>
|
||||||
</c:choose>
|
</c:choose>
|
||||||
</td>
|
</td>
|
||||||
<td functionId="${cfg.functionId}" compileId="${cfg.compileId}" action="${cfg.action}"><div class="loading-total"></div></td>
|
<td audit="${cfg.isAudit}" functionId="${cfg.functionId}" compileId="${cfg.compileId}" action="${cfg.action}"><div class="loading-total"></div></td>
|
||||||
<td>${cfg.creatorName }</td>
|
<td>${cfg.creatorName }</td>
|
||||||
<td><fmt:formatDate value="${cfg.createTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
|
<td><fmt:formatDate value="${cfg.createTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
|
||||||
<td>${cfg.editorName }</td>
|
<td>${cfg.editorName }</td>
|
||||||
|
|||||||
@@ -5,9 +5,6 @@
|
|||||||
<title><spring:message code="${cfgName}"></spring:message></title>
|
<title><spring:message code="${cfgName}"></spring:message></title>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function(){
|
$(function(){
|
||||||
$("#cancel").on("click",function(){
|
|
||||||
window.history.back();
|
|
||||||
});
|
|
||||||
$("input[name='cfgKeywords']").addClass("url");
|
$("input[name='cfgKeywords']").addClass("url");
|
||||||
$(".action").on("change", function() {
|
$(".action").on("change", function() {
|
||||||
$("#serviceId").val($(this).attr("serviceId"));
|
$("#serviceId").val($(this).attr("serviceId"));
|
||||||
@@ -129,6 +126,27 @@ $(function(){
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="row doLog">
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="control-label col-md-3"><spring:message code="do_log" /></label>
|
||||||
|
<c:forEach items="${fns:getDictList('DO_LOG') }" var="dict">
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${dict.itemCode eq _cfg.doLog}">
|
||||||
|
<label class="radio-inline">
|
||||||
|
<input type="radio" name="doLog" checked value="${dict.itemCode}" ><spring:message code="${dict.itemValue}"/>
|
||||||
|
</label>
|
||||||
|
</c:when>
|
||||||
|
<c:otherwise>
|
||||||
|
<label class="radio-inline">
|
||||||
|
<input type="radio" name="doLog" value="${dict.itemCode}" ><spring:message code="${dict.itemValue}"/>
|
||||||
|
</label>
|
||||||
|
</c:otherwise>
|
||||||
|
</c:choose>
|
||||||
|
</c:forEach>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<!-- desc and action -->
|
<!-- desc and action -->
|
||||||
<!-- 配置域类型 -->
|
<!-- 配置域类型 -->
|
||||||
<c:forEach items="${regionList}" var="region">
|
<c:forEach items="${regionList}" var="region">
|
||||||
|
|||||||
@@ -10,6 +10,8 @@
|
|||||||
$("#intype").val("${cfg.cfgDesc}");
|
$("#intype").val("${cfg.cfgDesc}");
|
||||||
}else if("${cfg.cfgKeywords}"){
|
}else if("${cfg.cfgKeywords}"){
|
||||||
$("#intype").val("${cfg.cfgKeywords}");
|
$("#intype").val("${cfg.cfgKeywords}");
|
||||||
|
}else if("${cfg.compileId}"){
|
||||||
|
$("#intype").val("${cfg.compileId}");
|
||||||
}else{
|
}else{
|
||||||
$("#intype").attr("placeholder","<spring:message code='input'/> "+$("#seltype").find("option:selected").text());
|
$("#intype").attr("placeholder","<spring:message code='input'/> "+$("#seltype").find("option:selected").text());
|
||||||
}
|
}
|
||||||
@@ -31,6 +33,7 @@
|
|||||||
$(".Wdate").attr("value",'');
|
$(".Wdate").attr("value",'');
|
||||||
$("#description").attr("value",'');
|
$("#description").attr("value",'');
|
||||||
$("#searchForm")[0].reset();
|
$("#searchForm")[0].reset();
|
||||||
|
$("#intype").attr("placeholder","<spring:message code='input'/> "+$("#seltype").find("option:selected").text());
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
var edit=function(url){
|
var edit=function(url){
|
||||||
@@ -63,7 +66,6 @@
|
|||||||
|
|
||||||
<h3 class="page-title">
|
<h3 class="page-title">
|
||||||
<spring:message code="av_content_url_control"></spring:message>
|
<spring:message code="av_content_url_control"></spring:message>
|
||||||
<small><spring:message code="date_list"/></small>
|
|
||||||
</h3>
|
</h3>
|
||||||
<h5 class="page-header"></h5>
|
<h5 class="page-header"></h5>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@@ -100,6 +102,7 @@
|
|||||||
|
|
||||||
<form:select path="seltype" class="selectpicker select2 input-small" >
|
<form:select path="seltype" class="selectpicker select2 input-small" >
|
||||||
<form:option value="cfgDesc"><spring:message code="config_describe"></spring:message></form:option>
|
<form:option value="cfgDesc"><spring:message code="config_describe"></spring:message></form:option>
|
||||||
|
<form:option value="compileId"><spring:message code="cfg_id"></spring:message></form:option>
|
||||||
<form:option value="cfgKeywords"><spring:message code="key_word"></spring:message></form:option>
|
<form:option value="cfgKeywords"><spring:message code="key_word"></spring:message></form:option>
|
||||||
</form:select>
|
</form:select>
|
||||||
|
|
||||||
@@ -271,12 +274,14 @@
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th><input type="checkbox" class="i-checks" id="checkAll"></th>
|
<th><input type="checkbox" class="i-checks" id="checkAll"></th>
|
||||||
|
<th style="display: none"><spring:message code="cfg_id"/></th>
|
||||||
<th><spring:message code="config_describe"/></th>
|
<th><spring:message code="config_describe"/></th>
|
||||||
<th><spring:message code="key_word"/></th>
|
<th><spring:message code="key_word"/></th>
|
||||||
<th><spring:message code="whether_hexbinary"/></th>
|
<th><spring:message code="whether_hexbinary"/></th>
|
||||||
<th><spring:message code="expression_type"/></th>
|
<th><spring:message code="expression_type"/></th>
|
||||||
<th><spring:message code="match_method"/></th>
|
<th><spring:message code="match_method"/></th>
|
||||||
<th><spring:message code="block_type"/></th>
|
<th><spring:message code="block_type"/></th>
|
||||||
|
<th><spring:message code="do_log"/></th>
|
||||||
<th><spring:message code="is_audit"/></th>
|
<th><spring:message code="is_audit"/></th>
|
||||||
<th><spring:message code="log_total"/></th>
|
<th><spring:message code="log_total"/></th>
|
||||||
<th><spring:message code="whether_area_block"/></th>
|
<th><spring:message code="whether_area_block"/></th>
|
||||||
@@ -297,6 +302,7 @@
|
|||||||
<c:forEach items="${page.list }" var="cfg" varStatus="status" step="1">
|
<c:forEach items="${page.list }" var="cfg" varStatus="status" step="1">
|
||||||
<tr>
|
<tr>
|
||||||
<td><input type="checkbox" class="i-checks" id="${cfg.cfgId}" compileId="${cfg.compileId}" value="${cfg.isAudit}"></td>
|
<td><input type="checkbox" class="i-checks" id="${cfg.cfgId}" compileId="${cfg.compileId}" value="${cfg.isAudit}"></td>
|
||||||
|
<td>${cfg.compileId }</td>
|
||||||
<td>${cfg.cfgDesc }</td>
|
<td>${cfg.cfgDesc }</td>
|
||||||
<td>
|
<td>
|
||||||
<a href="javascript:;" data-original-title="${fn:replace(cfg.cfgKeywords, '***and***', ' ')}"
|
<a href="javascript:;" data-original-title="${fn:replace(cfg.cfgKeywords, '***and***', ' ')}"
|
||||||
@@ -325,6 +331,13 @@
|
|||||||
</c:if>
|
</c:if>
|
||||||
</c:forEach>
|
</c:forEach>
|
||||||
</td>
|
</td>
|
||||||
|
<td>
|
||||||
|
<c:forEach items="${fns:getDictList('DO_LOG') }" var="dict">
|
||||||
|
<c:if test="${dict.itemCode eq cfg.doLog }">
|
||||||
|
<spring:message code="${dict.itemValue }"/>
|
||||||
|
</c:if>
|
||||||
|
</c:forEach>
|
||||||
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<c:choose>
|
<c:choose>
|
||||||
<c:when test="${cfg.isAudit eq '0'}"><span class="label label-danger"><spring:message code="created"></spring:message></span></c:when>
|
<c:when test="${cfg.isAudit eq '0'}"><span class="label label-danger"><spring:message code="created"></spring:message></span></c:when>
|
||||||
@@ -333,7 +346,7 @@
|
|||||||
<c:when test="${cfg.isAudit eq '3'}"><span class="label label-warning"><spring:message code="cancel_approved"></spring:message></span></c:when>
|
<c:when test="${cfg.isAudit eq '3'}"><span class="label label-warning"><spring:message code="cancel_approved"></spring:message></span></c:when>
|
||||||
</c:choose>
|
</c:choose>
|
||||||
</td>
|
</td>
|
||||||
<td functionId="${cfg.functionId}" compileId="${cfg.compileId}" action="${cfg.action}"><div class="loading-total"></div></td>
|
<td audit="${cfg.isAudit}" functionId="${cfg.functionId}" compileId="${cfg.compileId}" action="${cfg.action}"><div class="loading-total"></div></td>
|
||||||
<td>
|
<td>
|
||||||
<c:if test="${cfg.isAreaEffective==0}"><spring:message code="no"/></c:if>
|
<c:if test="${cfg.isAreaEffective==0}"><spring:message code="no"/></c:if>
|
||||||
<c:if test="${cfg.isAreaEffective==1}">
|
<c:if test="${cfg.isAreaEffective==1}">
|
||||||
|
|||||||
@@ -52,9 +52,6 @@ $(function(){
|
|||||||
$("#areaIp").addClass("hidden");
|
$("#areaIp").addClass("hidden");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
$("#cancel").on("click",function(){
|
|
||||||
window.history.back();
|
|
||||||
});
|
|
||||||
$(".action").on("change",function(){
|
$(".action").on("change",function(){
|
||||||
$("#serviceId").val($(this).attr("serviceId"));
|
$("#serviceId").val($(this).attr("serviceId"));
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -60,7 +60,6 @@
|
|||||||
|
|
||||||
<h3 class="page-title">
|
<h3 class="page-title">
|
||||||
<spring:message code="${regionValue}"></spring:message>
|
<spring:message code="${regionValue}"></spring:message>
|
||||||
<small><spring:message code="date_list"/></small>
|
|
||||||
</h3>
|
</h3>
|
||||||
<h5 class="page-header"></h5>
|
<h5 class="page-header"></h5>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@@ -385,7 +384,7 @@
|
|||||||
<c:when test="${cfg.isAudit eq '3'}"><span class="label label-warning"><spring:message code="cancel_approved"></spring:message></span></c:when>
|
<c:when test="${cfg.isAudit eq '3'}"><span class="label label-warning"><spring:message code="cancel_approved"></spring:message></span></c:when>
|
||||||
</c:choose>
|
</c:choose>
|
||||||
</td>
|
</td>
|
||||||
<td functionId="${cfg.functionId}" compileId="${cfg.compileId}" action="${cfg.action}"><div class="loading-total"></div></td>
|
<td audit="${cfg.isAudit}" functionId="${cfg.functionId}" compileId="${cfg.compileId}" action="${cfg.action}"><div class="loading-total"></div></td>
|
||||||
<td>${cfg.creatorName }</td>
|
<td>${cfg.creatorName }</td>
|
||||||
<td><fmt:formatDate value="${cfg.createTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
|
<td><fmt:formatDate value="${cfg.createTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
|
||||||
<td>${cfg.editorName }</td>
|
<td>${cfg.editorName }</td>
|
||||||
|
|||||||
@@ -107,6 +107,27 @@ $(function(){
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="row doLog">
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="control-label col-md-3"><spring:message code="do_log" /></label>
|
||||||
|
<c:forEach items="${fns:getDictList('DO_LOG') }" var="dict">
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${dict.itemCode eq _cfg.doLog}">
|
||||||
|
<label class="radio-inline">
|
||||||
|
<input type="radio" name="doLog" checked value="${dict.itemCode}" ><spring:message code="${dict.itemValue}"/>
|
||||||
|
</label>
|
||||||
|
</c:when>
|
||||||
|
<c:otherwise>
|
||||||
|
<label class="radio-inline">
|
||||||
|
<input type="radio" name="doLog" value="${dict.itemCode}" ><spring:message code="${dict.itemValue}"/>
|
||||||
|
</label>
|
||||||
|
</c:otherwise>
|
||||||
|
</c:choose>
|
||||||
|
</c:forEach>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<!-- desc and action -->
|
<!-- desc and action -->
|
||||||
<%@include file="/WEB-INF/include/form/ipInfo.jsp" %>
|
<%@include file="/WEB-INF/include/form/ipInfo.jsp" %>
|
||||||
<%@include file="/WEB-INF/include/form/areaInfo.jsp" %>
|
<%@include file="/WEB-INF/include/form/areaInfo.jsp" %>
|
||||||
|
|||||||
@@ -8,6 +8,8 @@
|
|||||||
//搜索框提示语初始化
|
//搜索框提示语初始化
|
||||||
if("${cfg.cfgDesc}"){
|
if("${cfg.cfgDesc}"){
|
||||||
$("#intype").val("${cfg.cfgDesc}");
|
$("#intype").val("${cfg.cfgDesc}");
|
||||||
|
}else if("${cfg.compileId}"){
|
||||||
|
$("#intype").val("${cfg.compileId}");
|
||||||
}else if("${cfg.srcIpAddress}"){
|
}else if("${cfg.srcIpAddress}"){
|
||||||
$("#intype").val("${cfg.srcIpAddress}");
|
$("#intype").val("${cfg.srcIpAddress}");
|
||||||
}else if("${cfg.srcPort}"){
|
}else if("${cfg.srcPort}"){
|
||||||
@@ -33,6 +35,7 @@
|
|||||||
$(".Wdate").attr("value",'');
|
$(".Wdate").attr("value",'');
|
||||||
$("#description").attr("value",'');
|
$("#description").attr("value",'');
|
||||||
$("#searchForm")[0].reset();
|
$("#searchForm")[0].reset();
|
||||||
|
$("#intype").attr("placeholder","<spring:message code='input'/> "+$("#seltype").find("option:selected").text());
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
var edit=function(url){
|
var edit=function(url){
|
||||||
@@ -65,7 +68,6 @@
|
|||||||
|
|
||||||
<h3 class="page-title">
|
<h3 class="page-title">
|
||||||
<spring:message code="av_picture_ip_control"></spring:message>
|
<spring:message code="av_picture_ip_control"></spring:message>
|
||||||
<small><spring:message code="date_list"/></small>
|
|
||||||
</h3>
|
</h3>
|
||||||
<h5 class="page-header"></h5>
|
<h5 class="page-header"></h5>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@@ -102,6 +104,7 @@
|
|||||||
|
|
||||||
<form:select path="seltype" class="selectpicker select2 input-small" >
|
<form:select path="seltype" class="selectpicker select2 input-small" >
|
||||||
<form:option value="cfgDesc"><spring:message code="config_describe"></spring:message></form:option>
|
<form:option value="cfgDesc"><spring:message code="config_describe"></spring:message></form:option>
|
||||||
|
<form:option value="compileId"><spring:message code="cfg_id"></spring:message></form:option>
|
||||||
<form:option value="srcIpAddress"><spring:message code="client_ip"></spring:message></form:option>
|
<form:option value="srcIpAddress"><spring:message code="client_ip"></spring:message></form:option>
|
||||||
<form:option value="srcPort"><spring:message code="client_port"></spring:message></form:option>
|
<form:option value="srcPort"><spring:message code="client_port"></spring:message></form:option>
|
||||||
</form:select>
|
</form:select>
|
||||||
@@ -275,6 +278,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<th><input type="checkbox" class="i-checks" id="checkAll"></th>
|
<th><input type="checkbox" class="i-checks" id="checkAll"></th>
|
||||||
<%-- <th><spring:message code="seq"/></th> --%>
|
<%-- <th><spring:message code="seq"/></th> --%>
|
||||||
|
<th style="display: none"><spring:message code="cfg_id"/></th>
|
||||||
<th><spring:message code="config_describe"/></th>
|
<th><spring:message code="config_describe"/></th>
|
||||||
<th><spring:message code="ip_type"/></th>
|
<th><spring:message code="ip_type"/></th>
|
||||||
<th><spring:message code="client_ip"/></th>
|
<th><spring:message code="client_ip"/></th>
|
||||||
@@ -286,6 +290,7 @@
|
|||||||
<th><spring:message code="direction"/></th>
|
<th><spring:message code="direction"/></th>
|
||||||
<th><spring:message code="protocol"/></th>
|
<th><spring:message code="protocol"/></th>
|
||||||
<th><spring:message code="block_type"/></th>
|
<th><spring:message code="block_type"/></th>
|
||||||
|
<th><spring:message code="do_log"/></th>
|
||||||
<th><spring:message code="whether_area_block"/></th>
|
<th><spring:message code="whether_area_block"/></th>
|
||||||
<th><spring:message code="letter"/></th>
|
<th><spring:message code="letter"/></th>
|
||||||
<th><spring:message code="classification"/></th>
|
<th><spring:message code="classification"/></th>
|
||||||
@@ -307,6 +312,7 @@
|
|||||||
<c:forEach items="${page.list }" var="cfg" varStatus="status" step="1">
|
<c:forEach items="${page.list }" var="cfg" varStatus="status" step="1">
|
||||||
<tr>
|
<tr>
|
||||||
<td><input type="checkbox" class="i-checks" id="${cfg.cfgId}" compileId="${cfg.compileId}" value="${cfg.isAudit}"></td>
|
<td><input type="checkbox" class="i-checks" id="${cfg.cfgId}" compileId="${cfg.compileId}" value="${cfg.isAudit}"></td>
|
||||||
|
<td>${cfg.compileId }</td>
|
||||||
<td>${cfg.cfgDesc }</td>
|
<td>${cfg.cfgDesc }</td>
|
||||||
<td>
|
<td>
|
||||||
<c:forEach items="${fns:getDictList('IP_TYPE')}" var="ipTypeC">
|
<c:forEach items="${fns:getDictList('IP_TYPE')}" var="ipTypeC">
|
||||||
@@ -344,6 +350,13 @@
|
|||||||
</c:if>
|
</c:if>
|
||||||
</c:forEach>
|
</c:forEach>
|
||||||
</td>
|
</td>
|
||||||
|
<td>
|
||||||
|
<c:forEach items="${fns:getDictList('DO_LOG') }" var="dict">
|
||||||
|
<c:if test="${dict.itemCode eq cfg.doLog }">
|
||||||
|
<spring:message code="${dict.itemValue }"/>
|
||||||
|
</c:if>
|
||||||
|
</c:forEach>
|
||||||
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<c:if test="${cfg.isAreaEffective==0}"><spring:message code="no"/></c:if>
|
<c:if test="${cfg.isAreaEffective==0}"><spring:message code="no"/></c:if>
|
||||||
<c:if test="${cfg.isAreaEffective==1}">
|
<c:if test="${cfg.isAreaEffective==1}">
|
||||||
@@ -424,7 +437,7 @@
|
|||||||
<c:when test="${cfg.isAudit eq '3'}"><span class="label label-warning"><spring:message code="cancel_approved"></spring:message></span></c:when>
|
<c:when test="${cfg.isAudit eq '3'}"><span class="label label-warning"><spring:message code="cancel_approved"></spring:message></span></c:when>
|
||||||
</c:choose>
|
</c:choose>
|
||||||
</td>
|
</td>
|
||||||
<td functionId="${cfg.functionId}" compileId="${cfg.compileId}" action="${cfg.action}"><div class="loading-total"></div></td>
|
<td audit="${cfg.isAudit}" functionId="${cfg.functionId}" compileId="${cfg.compileId}" action="${cfg.action}"><div class="loading-total"></div></td>
|
||||||
<td>${cfg.creatorName }</td>
|
<td>${cfg.creatorName }</td>
|
||||||
<td><fmt:formatDate value="${cfg.createTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
|
<td><fmt:formatDate value="${cfg.createTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
|
||||||
<td>${cfg.editorName }</td>
|
<td>${cfg.editorName }</td>
|
||||||
|
|||||||
@@ -5,9 +5,6 @@
|
|||||||
<title><spring:message code="${cfgName}"></spring:message></title>
|
<title><spring:message code="${cfgName}"></spring:message></title>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function(){
|
$(function(){
|
||||||
$("#cancel").on("click",function(){
|
|
||||||
window.history.back();
|
|
||||||
});
|
|
||||||
$(".action").on("change", function() {
|
$(".action").on("change", function() {
|
||||||
$("#serviceId").val($(this).attr("serviceId"));
|
$("#serviceId").val($(this).attr("serviceId"));
|
||||||
});
|
});
|
||||||
@@ -120,6 +117,27 @@ $(function(){
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="row doLog">
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="control-label col-md-3"><spring:message code="do_log" /></label>
|
||||||
|
<c:forEach items="${fns:getDictList('DO_LOG') }" var="dict">
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${dict.itemCode eq _cfg.doLog}">
|
||||||
|
<label class="radio-inline">
|
||||||
|
<input type="radio" name="doLog" checked value="${dict.itemCode}" ><spring:message code="${dict.itemValue}"/>
|
||||||
|
</label>
|
||||||
|
</c:when>
|
||||||
|
<c:otherwise>
|
||||||
|
<label class="radio-inline">
|
||||||
|
<input type="radio" name="doLog" value="${dict.itemCode}" ><spring:message code="${dict.itemValue}"/>
|
||||||
|
</label>
|
||||||
|
</c:otherwise>
|
||||||
|
</c:choose>
|
||||||
|
</c:forEach>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<!-- desc and action -->
|
<!-- desc and action -->
|
||||||
<c:forEach items="${regionList}" var="region">
|
<c:forEach items="${regionList}" var="region">
|
||||||
<c:if test="${_cfg.functionId eq region.functionId}">
|
<c:if test="${_cfg.functionId eq region.functionId}">
|
||||||
|
|||||||
@@ -8,6 +8,8 @@
|
|||||||
//搜索框提示语初始化
|
//搜索框提示语初始化
|
||||||
if("${cfg.cfgDesc}"){
|
if("${cfg.cfgDesc}"){
|
||||||
$("#intype").val("${cfg.cfgDesc}");
|
$("#intype").val("${cfg.cfgDesc}");
|
||||||
|
}else if("${cfg.compileId}"){
|
||||||
|
$("#intype").val("${cfg.compileId}");
|
||||||
}else if("${cfg.cfgKeywords}"){
|
}else if("${cfg.cfgKeywords}"){
|
||||||
$("#intype").val("${cfg.cfgKeywords}");
|
$("#intype").val("${cfg.cfgKeywords}");
|
||||||
}else{
|
}else{
|
||||||
@@ -31,6 +33,8 @@
|
|||||||
$(".Wdate").attr("value",'');
|
$(".Wdate").attr("value",'');
|
||||||
$("#description").attr("value",'');
|
$("#description").attr("value",'');
|
||||||
$("#searchForm")[0].reset();
|
$("#searchForm")[0].reset();
|
||||||
|
$("#searchForm")[0].reset();
|
||||||
|
$("#intype").attr("placeholder","<spring:message code='input'/> "+$("#seltype").find("option:selected").text());
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
var edit=function(url){
|
var edit=function(url){
|
||||||
@@ -63,7 +67,6 @@
|
|||||||
|
|
||||||
<h3 class="page-title">
|
<h3 class="page-title">
|
||||||
<spring:message code="av_picture_url_control"/>
|
<spring:message code="av_picture_url_control"/>
|
||||||
<small><spring:message code="date_list"/></small>
|
|
||||||
</h3>
|
</h3>
|
||||||
<h5 class="page-header"></h5>
|
<h5 class="page-header"></h5>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@@ -100,6 +103,7 @@
|
|||||||
|
|
||||||
<form:select path="seltype" class="selectpicker select2 input-small" >
|
<form:select path="seltype" class="selectpicker select2 input-small" >
|
||||||
<form:option value="cfgDesc"><spring:message code="config_describe"></spring:message></form:option>
|
<form:option value="cfgDesc"><spring:message code="config_describe"></spring:message></form:option>
|
||||||
|
<form:option value="compileId"><spring:message code="cfg_id"></spring:message></form:option>
|
||||||
<form:option value="cfgKeywords"><spring:message code="key_word"></spring:message></form:option>
|
<form:option value="cfgKeywords"><spring:message code="key_word"></spring:message></form:option>
|
||||||
</form:select>
|
</form:select>
|
||||||
|
|
||||||
@@ -272,12 +276,14 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<th><input type="checkbox" class="i-checks" id="checkAll"></th>
|
<th><input type="checkbox" class="i-checks" id="checkAll"></th>
|
||||||
<%-- <th><spring:message code="seq"/></th> --%>
|
<%-- <th><spring:message code="seq"/></th> --%>
|
||||||
|
<th style="display: none"><spring:message code="cfg_id"/></th>
|
||||||
<th><spring:message code="config_describe"/></th>
|
<th><spring:message code="config_describe"/></th>
|
||||||
<th><spring:message code="key_word"/></th>
|
<th><spring:message code="key_word"/></th>
|
||||||
<th><spring:message code="whether_hexbinary"/></th>
|
<th><spring:message code="whether_hexbinary"/></th>
|
||||||
<th><spring:message code="expression_type"/></th>
|
<th><spring:message code="expression_type"/></th>
|
||||||
<th><spring:message code="match_method"/></th>
|
<th><spring:message code="match_method"/></th>
|
||||||
<th><spring:message code="block_type"/></th>
|
<th><spring:message code="block_type"/></th>
|
||||||
|
<th><spring:message code="do_log"/></th>
|
||||||
<th><spring:message code="is_audit"/></th>
|
<th><spring:message code="is_audit"/></th>
|
||||||
<th><spring:message code="log_total"/></th>
|
<th><spring:message code="log_total"/></th>
|
||||||
<th><spring:message code="whether_area_block"/></th>
|
<th><spring:message code="whether_area_block"/></th>
|
||||||
@@ -298,6 +304,7 @@
|
|||||||
<c:forEach items="${page.list }" var="cfg" varStatus="status" step="1">
|
<c:forEach items="${page.list }" var="cfg" varStatus="status" step="1">
|
||||||
<tr>
|
<tr>
|
||||||
<td><input type="checkbox" class="i-checks" id="${cfg.cfgId}" compileId="${cfg.compileId}" value="${cfg.isAudit}"></td>
|
<td><input type="checkbox" class="i-checks" id="${cfg.cfgId}" compileId="${cfg.compileId}" value="${cfg.isAudit}"></td>
|
||||||
|
<td>${cfg.compileId }</td>
|
||||||
<td>${cfg.cfgDesc }</td>
|
<td>${cfg.cfgDesc }</td>
|
||||||
<td>
|
<td>
|
||||||
<a href="javascript:;" data-original-title="${fn:replace(cfg.cfgKeywords, '***and***', ' ')}"
|
<a href="javascript:;" data-original-title="${fn:replace(cfg.cfgKeywords, '***and***', ' ')}"
|
||||||
@@ -326,6 +333,13 @@
|
|||||||
</c:if>
|
</c:if>
|
||||||
</c:forEach>
|
</c:forEach>
|
||||||
</td>
|
</td>
|
||||||
|
<td>
|
||||||
|
<c:forEach items="${fns:getDictList('DO_LOG') }" var="dict">
|
||||||
|
<c:if test="${dict.itemCode eq cfg.doLog }">
|
||||||
|
<spring:message code="${dict.itemValue }"/>
|
||||||
|
</c:if>
|
||||||
|
</c:forEach>
|
||||||
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<c:choose>
|
<c:choose>
|
||||||
<c:when test="${cfg.isAudit eq '0'}"><span class="label label-danger"><spring:message code="created"></spring:message></span></c:when>
|
<c:when test="${cfg.isAudit eq '0'}"><span class="label label-danger"><spring:message code="created"></spring:message></span></c:when>
|
||||||
@@ -334,7 +348,7 @@
|
|||||||
<c:when test="${cfg.isAudit eq '3'}"><span class="label label-warning"><spring:message code="cancel_approved"></spring:message></span></c:when>
|
<c:when test="${cfg.isAudit eq '3'}"><span class="label label-warning"><spring:message code="cancel_approved"></spring:message></span></c:when>
|
||||||
</c:choose>
|
</c:choose>
|
||||||
</td>
|
</td>
|
||||||
<td functionId="${cfg.functionId}" compileId="${cfg.compileId}" action="${cfg.action}"><div class="loading-total"></div></td>
|
<td audit="${cfg.isAudit}" functionId="${cfg.functionId}" compileId="${cfg.compileId}" action="${cfg.action}"><div class="loading-total"></div></td>
|
||||||
<td>
|
<td>
|
||||||
<c:if test="${cfg.isAreaEffective==0}"><spring:message code="no"/></c:if>
|
<c:if test="${cfg.isAreaEffective==0}"><spring:message code="no"/></c:if>
|
||||||
<c:if test="${cfg.isAreaEffective==1}">
|
<c:if test="${cfg.isAreaEffective==1}">
|
||||||
|
|||||||
@@ -42,9 +42,6 @@ $(function(){
|
|||||||
$("#areaIp").addClass("hidden");
|
$("#areaIp").addClass("hidden");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
$("#cancel").on("click",function(){
|
|
||||||
window.history.back();
|
|
||||||
});
|
|
||||||
$(".action").on("change",function(){
|
$(".action").on("change",function(){
|
||||||
$("#serviceId").val($(this).attr("serviceId"));
|
$("#serviceId").val($(this).attr("serviceId"));
|
||||||
});
|
});
|
||||||
@@ -152,6 +149,27 @@ $(function(){
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="row doLog">
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="control-label col-md-3"><spring:message code="do_log" /></label>
|
||||||
|
<c:forEach items="${fns:getDictList('DO_LOG') }" var="dict">
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${dict.itemCode eq _cfg.doLog}">
|
||||||
|
<label class="radio-inline">
|
||||||
|
<input type="radio" name="doLog" checked value="${dict.itemCode}" ><spring:message code="${dict.itemValue}"/>
|
||||||
|
</label>
|
||||||
|
</c:when>
|
||||||
|
<c:otherwise>
|
||||||
|
<label class="radio-inline">
|
||||||
|
<input type="radio" name="doLog" value="${dict.itemCode}" ><spring:message code="${dict.itemValue}"/>
|
||||||
|
</label>
|
||||||
|
</c:otherwise>
|
||||||
|
</c:choose>
|
||||||
|
</c:forEach>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<%-- <%@include file="/WEB-INF/include/form/areaInfo.jsp" %> --%>
|
<%-- <%@include file="/WEB-INF/include/form/areaInfo.jsp" %> --%>
|
||||||
<input type="hidden" name="isAreaEffective" value="0">
|
<input type="hidden" name="isAreaEffective" value="0">
|
||||||
<%@include file="/WEB-INF/include/form/basicInfo.jsp" %>
|
<%@include file="/WEB-INF/include/form/basicInfo.jsp" %>
|
||||||
|
|||||||
@@ -8,6 +8,8 @@
|
|||||||
//搜索框提示语初始化
|
//搜索框提示语初始化
|
||||||
if("${cfg.cfgDesc}"){
|
if("${cfg.cfgDesc}"){
|
||||||
$("#intype").val("${cfg.cfgDesc}");
|
$("#intype").val("${cfg.cfgDesc}");
|
||||||
|
}else if("${cfg.compileId}"){
|
||||||
|
$("#intype").val("${cfg.compileId}");
|
||||||
}else if("${cfg.description}"){
|
}else if("${cfg.description}"){
|
||||||
$("#intype").val("${cfg.description}");
|
$("#intype").val("${cfg.description}");
|
||||||
}else if("${cfg.level}"){
|
}else if("${cfg.level}"){
|
||||||
@@ -33,6 +35,7 @@
|
|||||||
$(".Wdate").attr("value",'');
|
$(".Wdate").attr("value",'');
|
||||||
$("#description").attr("value",'');
|
$("#description").attr("value",'');
|
||||||
$("#searchForm")[0].reset();
|
$("#searchForm")[0].reset();
|
||||||
|
$("#intype").attr("placeholder","<spring:message code='input'/> "+$("#seltype").find("option:selected").text());
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
var edit=function(url){
|
var edit=function(url){
|
||||||
@@ -65,7 +68,6 @@
|
|||||||
|
|
||||||
<h3 class="page-title">
|
<h3 class="page-title">
|
||||||
<spring:message code="${regionValue}"></spring:message>
|
<spring:message code="${regionValue}"></spring:message>
|
||||||
<small><spring:message code="date_list"/></small>
|
|
||||||
</h3>
|
</h3>
|
||||||
<h5 class="page-header"></h5>
|
<h5 class="page-header"></h5>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@@ -73,7 +75,7 @@
|
|||||||
<div class="portlet">
|
<div class="portlet">
|
||||||
<div class="portlet-body">
|
<div class="portlet-body">
|
||||||
<div class="row" >
|
<div class="row" >
|
||||||
<form:form id="searchForm" modelAttribute="cfg" action="${ctx}/ntc/av/sample/signSampleList?functionId=${cfg.functionId}" method="post" class="form-search">
|
<form:form id="searchForm" modelAttribute="cfg" action="${ctx}/ntc/av/sample/audioSignSampleList?functionId=${cfg.functionId}" method="post" class="form-search">
|
||||||
<input id="functionId" name="functionId" type="hidden" value="${cfg.functionId}"/>
|
<input id="functionId" name="functionId" type="hidden" value="${cfg.functionId}"/>
|
||||||
<input id="audit" name="audit" type="hidden" value="${audit}"/>
|
<input id="audit" name="audit" type="hidden" value="${audit}"/>
|
||||||
<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
|
<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
|
||||||
@@ -102,6 +104,7 @@
|
|||||||
|
|
||||||
<form:select path="seltype" class="selectpicker select2 input-small" >
|
<form:select path="seltype" class="selectpicker select2 input-small" >
|
||||||
<form:option value="cfgDesc"><spring:message code="config_describe"></spring:message></form:option>
|
<form:option value="cfgDesc"><spring:message code="config_describe"></spring:message></form:option>
|
||||||
|
<form:option value="compileId"><spring:message code="cfg_id"></spring:message></form:option>
|
||||||
<form:option value="description"><spring:message code="sample_sign"></spring:message></form:option>
|
<form:option value="description"><spring:message code="sample_sign"></spring:message></form:option>
|
||||||
<form:option value="level"><spring:message code="harm_level"></spring:message></form:option>
|
<form:option value="level"><spring:message code="harm_level"></spring:message></form:option>
|
||||||
</form:select>
|
</form:select>
|
||||||
@@ -275,10 +278,12 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<th><input type="checkbox" class="i-checks" id="checkAll"></th>
|
<th><input type="checkbox" class="i-checks" id="checkAll"></th>
|
||||||
<%-- <th><spring:message code="seq"/></th> --%>
|
<%-- <th><spring:message code="seq"/></th> --%>
|
||||||
|
<th style="display: none"><spring:message code="cfg_id"/></th>
|
||||||
<th><spring:message code="sample_sign"/></th>
|
<th><spring:message code="sample_sign"/></th>
|
||||||
<th><spring:message code="harm_level"/></th>
|
<th><spring:message code="harm_level"/></th>
|
||||||
<th><spring:message code="config_describe"/></th>
|
<th><spring:message code="config_describe"/></th>
|
||||||
<th><spring:message code="block_type"/></th>
|
<th><spring:message code="block_type"/></th>
|
||||||
|
<th><spring:message code="do_log"/></th>
|
||||||
<th><spring:message code="letter"/></th>
|
<th><spring:message code="letter"/></th>
|
||||||
<th><spring:message code="classification"/></th>
|
<th><spring:message code="classification"/></th>
|
||||||
<th><spring:message code="attribute"/></th>
|
<th><spring:message code="attribute"/></th>
|
||||||
@@ -299,6 +304,7 @@
|
|||||||
<c:forEach items="${page.list }" var="cfg" varStatus="status" step="1">
|
<c:forEach items="${page.list }" var="cfg" varStatus="status" step="1">
|
||||||
<tr>
|
<tr>
|
||||||
<td><input type="checkbox" class="i-checks" id="${cfg.cfgId}" value="${cfg.isAudit}"></td>
|
<td><input type="checkbox" class="i-checks" id="${cfg.cfgId}" value="${cfg.isAudit}"></td>
|
||||||
|
<td>${cfg.compileId }</td>
|
||||||
<td>
|
<td>
|
||||||
<a href="javascript:;" data-original-title="${cfg.description }"
|
<a href="javascript:;" data-original-title="${cfg.description }"
|
||||||
class="tooltips" data-flag="false" data-html="true" data-placement="top">
|
class="tooltips" data-flag="false" data-html="true" data-placement="top">
|
||||||
@@ -314,6 +320,13 @@
|
|||||||
</c:if>
|
</c:if>
|
||||||
</c:forEach>
|
</c:forEach>
|
||||||
</td>
|
</td>
|
||||||
|
<td>
|
||||||
|
<c:forEach items="${fns:getDictList('DO_LOG') }" var="dict">
|
||||||
|
<c:if test="${dict.itemCode eq cfg.doLog }">
|
||||||
|
<spring:message code="${dict.itemValue }"/>
|
||||||
|
</c:if>
|
||||||
|
</c:forEach>
|
||||||
|
</td>
|
||||||
<td>${cfg.requestName }</td>
|
<td>${cfg.requestName }</td>
|
||||||
<td>
|
<td>
|
||||||
<c:set var="classify"></c:set>
|
<c:set var="classify"></c:set>
|
||||||
@@ -387,7 +400,7 @@
|
|||||||
<c:when test="${cfg.isAudit eq '3'}"><span class="label label-warning"><spring:message code="cancel_approved"></spring:message></span></c:when>
|
<c:when test="${cfg.isAudit eq '3'}"><span class="label label-warning"><spring:message code="cancel_approved"></spring:message></span></c:when>
|
||||||
</c:choose>
|
</c:choose>
|
||||||
</td>
|
</td>
|
||||||
<td functionId="${cfg.functionId}" compileId="${cfg.compileId}" action="${cfg.action}"><div class="loading-total"></div></td>
|
<td audit="${cfg.isAudit}" functionId="${cfg.functionId}" compileId="${cfg.compileId}" action="${cfg.action}"><div class="loading-total"></div></td>
|
||||||
<td>${cfg.creatorName }</td>
|
<td>${cfg.creatorName }</td>
|
||||||
<td><fmt:formatDate value="${cfg.createTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
|
<td><fmt:formatDate value="${cfg.createTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
|
||||||
<td>${cfg.editorName }</td>
|
<td>${cfg.editorName }</td>
|
||||||
|
|||||||
@@ -25,9 +25,7 @@ $(function(){
|
|||||||
},
|
},
|
||||||
errorContainer: "#messageBox",
|
errorContainer: "#messageBox",
|
||||||
});
|
});
|
||||||
$("#cancel").on("click",function(){
|
|
||||||
window.history.back();
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
@@ -13,9 +13,6 @@
|
|||||||
$(document)
|
$(document)
|
||||||
.ready(
|
.ready(
|
||||||
function() {
|
function() {
|
||||||
$("#cancel").on("click", function() {
|
|
||||||
window.history.back();
|
|
||||||
});
|
|
||||||
$(".action").on("change", function() {
|
$(".action").on("change", function() {
|
||||||
$("#serviceId").val($(this).attr("serviceId"));
|
$("#serviceId").val($(this).attr("serviceId"));
|
||||||
$("#protocolId").val($(this).attr("protocolId"));
|
$("#protocolId").val($(this).attr("protocolId"));
|
||||||
|
|||||||
@@ -326,7 +326,6 @@
|
|||||||
|
|
||||||
<h3 class="page-title">
|
<h3 class="page-title">
|
||||||
<spring:message code="av_voip_account_control"/>
|
<spring:message code="av_voip_account_control"/>
|
||||||
<small><spring:message code="date_list"/></small>
|
|
||||||
</h3>
|
</h3>
|
||||||
<h5 class="page-header"></h5>
|
<h5 class="page-header"></h5>
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
@@ -658,7 +657,7 @@
|
|||||||
<c:when test="${indexCfg.isAudit eq '3'}"><span class="label label-warning"><spring:message code="cancel_approved"></spring:message></span></c:when>
|
<c:when test="${indexCfg.isAudit eq '3'}"><span class="label label-warning"><spring:message code="cancel_approved"></spring:message></span></c:when>
|
||||||
</c:choose>
|
</c:choose>
|
||||||
</td>
|
</td>
|
||||||
<td functionId="${indexCfg.functionId}" compileId="${indexCfg.compileId}" action="${indexCfg.action}"><div class="loading-total"></div></td>
|
<td audit="${indexCfg.isAudit}" functionId="${indexCfg.functionId}" compileId="${indexCfg.compileId}" action="${indexCfg.action}"><div class="loading-total"></div></td>
|
||||||
<td>${indexCfg.creatorName }</td>
|
<td>${indexCfg.creatorName }</td>
|
||||||
<td><fmt:formatDate value="${indexCfg.createTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
|
<td><fmt:formatDate value="${indexCfg.createTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
|
||||||
<td>${indexCfg.editorName }</td>
|
<td>${indexCfg.editorName }</td>
|
||||||
|
|||||||
@@ -392,7 +392,6 @@
|
|||||||
|
|
||||||
<h3 class="page-title">
|
<h3 class="page-title">
|
||||||
<spring:message code="av_voip_ip_control"/>
|
<spring:message code="av_voip_ip_control"/>
|
||||||
<small><spring:message code="date_list"/></small>
|
|
||||||
</h3>
|
</h3>
|
||||||
<h5 class="page-header"></h5>
|
<h5 class="page-header"></h5>
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
@@ -725,7 +724,7 @@
|
|||||||
<c:when test="${indexCfg.isAudit eq '3'}"><span class="label label-warning"><spring:message code="cancel_approved"></spring:message></span></c:when>
|
<c:when test="${indexCfg.isAudit eq '3'}"><span class="label label-warning"><spring:message code="cancel_approved"></spring:message></span></c:when>
|
||||||
</c:choose>
|
</c:choose>
|
||||||
</td>
|
</td>
|
||||||
<td functionId="${indexCfg.functionId}" compileId="${indexCfg.compileId}" action="${indexCfg.action}"><div class="loading-total"></div></td>
|
<td audit="${indexCfg.isAudit}" functionId="${indexCfg.functionId}" compileId="${indexCfg.compileId}" action="${indexCfg.action}"><div class="loading-total"></div></td>
|
||||||
<td>${indexCfg.creatorName }</td>
|
<td>${indexCfg.creatorName }</td>
|
||||||
<td><fmt:formatDate value="${indexCfg.createTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
|
<td><fmt:formatDate value="${indexCfg.createTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
|
||||||
<td>${indexCfg.editorName }</td>
|
<td>${indexCfg.editorName }</td>
|
||||||
|
|||||||
@@ -103,7 +103,6 @@
|
|||||||
|
|
||||||
<h3 class="page-title">
|
<h3 class="page-title">
|
||||||
<spring:message code="basic_protocol"></spring:message>
|
<spring:message code="basic_protocol"></spring:message>
|
||||||
<small><spring:message code="date_list"/></small>
|
|
||||||
</h3>
|
</h3>
|
||||||
<h5 class="page-header"></h5>
|
<h5 class="page-header"></h5>
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
@@ -447,7 +446,7 @@
|
|||||||
<c:when test="${cfg.isAudit eq '3'}"><span class="label label-warning"><spring:message code="cancel_approved"></spring:message></span></c:when>
|
<c:when test="${cfg.isAudit eq '3'}"><span class="label label-warning"><spring:message code="cancel_approved"></spring:message></span></c:when>
|
||||||
</c:choose>
|
</c:choose>
|
||||||
</td>
|
</td>
|
||||||
<td functionId="${cfg.functionId}" compileId="${cfg.compileId}" action="${cfg.action}"><div class="loading-total"></div></td>
|
<td audit="${cfg.isAudit}" functionId="${cfg.functionId}" compileId="${cfg.compileId}" action="${cfg.action}"><div class="loading-total"></div></td>
|
||||||
<td>${cfg.creatorName }</td>
|
<td>${cfg.creatorName }</td>
|
||||||
<td><fmt:formatDate value="${cfg.createTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
|
<td><fmt:formatDate value="${cfg.createTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
|
||||||
<td>${cfg.editorName }</td>
|
<td>${cfg.editorName }</td>
|
||||||
|
|||||||
@@ -13,9 +13,6 @@
|
|||||||
$("#cfgRegionCode").val($("#cfgRegionCodeMaat").val());
|
$("#cfgRegionCode").val($("#cfgRegionCodeMaat").val());
|
||||||
$("#cfgType").val($("#cfgTypeMaat").val());
|
$("#cfgType").val($("#cfgTypeMaat").val());
|
||||||
} */
|
} */
|
||||||
$("#cancel").on("click", function() {
|
|
||||||
window.history.back();
|
|
||||||
});
|
|
||||||
$(".action").on("change", function() {
|
$(".action").on("change", function() {
|
||||||
$("#serviceId").val($(this).attr("serviceId"));
|
$("#serviceId").val($(this).attr("serviceId"));
|
||||||
$("#protocolId").val($(this).attr("protocolId"));
|
$("#protocolId").val($(this).attr("protocolId"));
|
||||||
|
|||||||
@@ -67,7 +67,6 @@
|
|||||||
|
|
||||||
<h3 class="page-title">
|
<h3 class="page-title">
|
||||||
<spring:message code="${cfgName}"></spring:message>
|
<spring:message code="${cfgName}"></spring:message>
|
||||||
<small><spring:message code="date_list"/></small>
|
|
||||||
</h3>
|
</h3>
|
||||||
<h5 class="page-header"></h5>
|
<h5 class="page-header"></h5>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|||||||
@@ -9,6 +9,11 @@ $(function(){
|
|||||||
$("#serviceId").val($(".action:checked").attr("serviceId"));
|
$("#serviceId").val($(".action:checked").attr("serviceId"));
|
||||||
$("#protocolId").val($(".action:checked").attr("protocolId"));
|
$("#protocolId").val($(".action:checked").attr("protocolId"));
|
||||||
}
|
}
|
||||||
|
var action=$(".action:checked");
|
||||||
|
if(!action){
|
||||||
|
action=$("input[name='action']");
|
||||||
|
}
|
||||||
|
var regionCode=action.attr("regionCode");
|
||||||
//initCommIpVal();
|
//initCommIpVal();
|
||||||
var serviceType=$("input[name='cfgRegionCode']").attr("serviceType");
|
var serviceType=$("input[name='cfgRegionCode']").attr("serviceType");
|
||||||
if(serviceType){
|
if(serviceType){
|
||||||
|
|||||||
@@ -123,7 +123,6 @@
|
|||||||
</div>
|
</div>
|
||||||
<h3 class="page-title">
|
<h3 class="page-title">
|
||||||
<spring:message code="${cfgName}"></spring:message>
|
<spring:message code="${cfgName}"></spring:message>
|
||||||
<small><spring:message code="date_list"/></small>
|
|
||||||
</h3>
|
</h3>
|
||||||
<h5 class="page-header"></h5>
|
<h5 class="page-header"></h5>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@@ -537,7 +536,7 @@
|
|||||||
<c:if test="${cfg.isAudit eq auditC.itemCode and auditC.itemValue eq 'cancel_approved'}"><span data-audit="cancel" class="label label-warning"><spring:message code="cancel_approved"></spring:message></span></c:if>
|
<c:if test="${cfg.isAudit eq auditC.itemCode and auditC.itemValue eq 'cancel_approved'}"><span data-audit="cancel" class="label label-warning"><spring:message code="cancel_approved"></spring:message></span></c:if>
|
||||||
</c:forEach>
|
</c:forEach>
|
||||||
</td>
|
</td>
|
||||||
<td functionId="${cfg.functionId}" compileId="${cfg.compileId}" action="${cfg.action}"><div class="loading-total"></div></td>
|
<td audit="${cfg.isAudit}" functionId="${cfg.functionId}" compileId="${cfg.compileId}" action="${cfg.action}"><div class="loading-total"></div></td>
|
||||||
<td>${cfg.creatorName }</td>
|
<td>${cfg.creatorName }</td>
|
||||||
<td><fmt:formatDate value="${cfg.createTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
|
<td><fmt:formatDate value="${cfg.createTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
|
||||||
<td>${cfg.editorName }</td>
|
<td>${cfg.editorName }</td>
|
||||||
|
|||||||
@@ -65,7 +65,6 @@
|
|||||||
|
|
||||||
<h3 class="page-title">
|
<h3 class="page-title">
|
||||||
<spring:message code="${cfgName}"></spring:message>
|
<spring:message code="${cfgName}"></spring:message>
|
||||||
<small><spring:message code="date_list"/></small>
|
|
||||||
</h3>
|
</h3>
|
||||||
<h5 class="page-header"></h5>
|
<h5 class="page-header"></h5>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|||||||
@@ -69,7 +69,6 @@
|
|||||||
|
|
||||||
<h3 class="page-title">
|
<h3 class="page-title">
|
||||||
<spring:message code="target_ip_protect"></spring:message>
|
<spring:message code="target_ip_protect"></spring:message>
|
||||||
<small><spring:message code="date_list"/></small>
|
|
||||||
</h3>
|
</h3>
|
||||||
<h5 class="page-header"></h5>
|
<h5 class="page-header"></h5>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@@ -430,7 +429,7 @@
|
|||||||
<c:when test="${cfg.isAudit eq '3'}"><span class="label label-warning"><spring:message code="cancel_approved"></spring:message></span></c:when>
|
<c:when test="${cfg.isAudit eq '3'}"><span class="label label-warning"><spring:message code="cancel_approved"></spring:message></span></c:when>
|
||||||
</c:choose>
|
</c:choose>
|
||||||
</td>
|
</td>
|
||||||
<td functionId="${indexCfg.functionId}" compileId="${indexCfg.compileId}" action="${indexCfg.action}"><div class="loading-total"></div></td>
|
<td audit="${indexCfg.isAudit}" functionId="${indexCfg.functionId}" compileId="${indexCfg.compileId}" action="${indexCfg.action}"><div class="loading-total"></div></td>
|
||||||
<td>${cfg.creatorName }</td>
|
<td>${cfg.creatorName }</td>
|
||||||
<td><fmt:formatDate value="${cfg.createTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
|
<td><fmt:formatDate value="${cfg.createTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
|
||||||
<td>${cfg.editorName }</td>
|
<td>${cfg.editorName }</td>
|
||||||
|
|||||||
@@ -5,9 +5,6 @@
|
|||||||
<title><spring:message code="${cfgName}"></spring:message></title>
|
<title><spring:message code="${cfgName}"></spring:message></title>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function(){
|
$(function(){
|
||||||
$("#cancel").on("click",function(){
|
|
||||||
window.history.back();
|
|
||||||
});
|
|
||||||
$(".action").on("change", function() {
|
$(".action").on("change", function() {
|
||||||
$("#serviceId").val($(this).attr("serviceId"));
|
$("#serviceId").val($(this).attr("serviceId"));
|
||||||
$("#protocolId").val($(this).attr("protocolId"));
|
$("#protocolId").val($(this).attr("protocolId"));
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user