Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
@@ -69,17 +69,17 @@ public class AppPolicyCfg extends BaseCfg<AppPolicyCfg> {
|
|||||||
@Expose
|
@Expose
|
||||||
@ExcelField(title="expression_type")
|
@ExcelField(title="expression_type")
|
||||||
@SerializedName("exprType")
|
@SerializedName("exprType")
|
||||||
private Integer exprType ;
|
protected Integer exprType ;
|
||||||
|
|
||||||
@Expose
|
@Expose
|
||||||
@ExcelField(title="match_method")
|
@ExcelField(title="match_method")
|
||||||
@SerializedName("matchMethod")
|
@SerializedName("matchMethod")
|
||||||
private Integer matchMethod ;
|
protected Integer matchMethod ;
|
||||||
|
|
||||||
@Expose
|
@Expose
|
||||||
@ExcelField(title="whether_hexbinary")
|
@ExcelField(title="whether_hexbinary")
|
||||||
@SerializedName("isHexbin")
|
@SerializedName("isHexbin")
|
||||||
private Integer isHexbin;
|
protected Integer isHexbin;
|
||||||
|
|
||||||
private List<IpPortCfg> ipPortList;
|
private List<IpPortCfg> ipPortList;
|
||||||
private IpPortCfg ipPort;
|
private IpPortCfg ipPort;
|
||||||
|
|||||||
176
src/main/java/com/nis/domain/configuration/AppTcpCfg.java
Normal file
176
src/main/java/com/nis/domain/configuration/AppTcpCfg.java
Normal file
@@ -0,0 +1,176 @@
|
|||||||
|
/**
|
||||||
|
*@Title: BaseStringConfig.java
|
||||||
|
*@Package com.nis.domain.restful
|
||||||
|
*@Description TODO
|
||||||
|
*@author dell
|
||||||
|
*@date 2018年2月5日 下午5:26:02
|
||||||
|
*@version 版本号
|
||||||
|
*/
|
||||||
|
package com.nis.domain.configuration;
|
||||||
|
|
||||||
|
import com.google.gson.annotations.Expose;
|
||||||
|
import com.google.gson.annotations.SerializedName;
|
||||||
|
import com.nis.util.excel.ExcelField;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* APP TCP会话字节数特征
|
||||||
|
* @author dell
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public class AppTcpCfg extends BaseCfg<AppTcpCfg> {
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private static final long serialVersionUID = -4366457794248757698L;
|
||||||
|
private static final String tableName="app_session_cfg";
|
||||||
|
@Expose
|
||||||
|
private Integer compileId;
|
||||||
|
@Expose
|
||||||
|
private Integer ratelimit;
|
||||||
|
private Integer appCode;//specific_service_cfg表一级节点的spec_service_code
|
||||||
|
private Integer behavCode;//specific_service_cfg表二级节点的spec_service_code
|
||||||
|
private Integer specServiceId;
|
||||||
|
private String district;
|
||||||
|
private String cfgKeywords;
|
||||||
|
private String appName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 数值下界
|
||||||
|
*/
|
||||||
|
protected Integer lowBoundary;
|
||||||
|
/**
|
||||||
|
* 数值上界
|
||||||
|
*/
|
||||||
|
protected Integer upBoundary;
|
||||||
|
|
||||||
|
@Expose
|
||||||
|
@ExcelField(title="expression_type")
|
||||||
|
@SerializedName("exprType")
|
||||||
|
protected Integer exprType ;
|
||||||
|
|
||||||
|
@Expose
|
||||||
|
@ExcelField(title="match_method")
|
||||||
|
@SerializedName("matchMethod")
|
||||||
|
protected Integer matchMethod ;
|
||||||
|
|
||||||
|
@Expose
|
||||||
|
@ExcelField(title="whether_hexbinary")
|
||||||
|
@SerializedName("isHexbin")
|
||||||
|
protected Integer isHexbin;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public Integer getLowBoundary() {
|
||||||
|
return lowBoundary;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLowBoundary(Integer lowBoundary) {
|
||||||
|
this.lowBoundary = lowBoundary;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getUpBoundary() {
|
||||||
|
return upBoundary;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUpBoundary(Integer upBoundary) {
|
||||||
|
this.upBoundary = upBoundary;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getExprType() {
|
||||||
|
return exprType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setExprType(Integer exprType) {
|
||||||
|
this.exprType = exprType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getMatchMethod() {
|
||||||
|
return matchMethod;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMatchMethod(Integer matchMethod) {
|
||||||
|
this.matchMethod = matchMethod;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getIsHexbin() {
|
||||||
|
return isHexbin;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIsHexbin(Integer isHexbin) {
|
||||||
|
this.isHexbin = isHexbin;
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public void initDefaultValue() {
|
||||||
|
// TODO Auto-generated method stub
|
||||||
|
super.initDefaultValue();
|
||||||
|
this.isHexbin = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public Integer getCompileId() {
|
||||||
|
return compileId;
|
||||||
|
}
|
||||||
|
public void setCompileId(Integer compileId) {
|
||||||
|
this.compileId = compileId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String getTablename() {
|
||||||
|
return tableName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getRatelimit() {
|
||||||
|
return ratelimit;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRatelimit(Integer ratelimit) {
|
||||||
|
this.ratelimit = ratelimit;
|
||||||
|
}
|
||||||
|
public Integer getAppCode() {
|
||||||
|
return appCode;
|
||||||
|
}
|
||||||
|
public void setAppCode(Integer appCode) {
|
||||||
|
this.appCode = appCode;
|
||||||
|
}
|
||||||
|
public Integer getSpecServiceId() {
|
||||||
|
return specServiceId;
|
||||||
|
}
|
||||||
|
public void setSpecServiceId(Integer specServiceId) {
|
||||||
|
this.specServiceId = specServiceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDistrict() {
|
||||||
|
return district;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDistrict(String district) {
|
||||||
|
this.district = district;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCfgKeywords() {
|
||||||
|
return cfgKeywords;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCfgKeywords(String cfgKeywords) {
|
||||||
|
this.cfgKeywords = cfgKeywords;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAppName() {
|
||||||
|
return appName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAppName(String appName) {
|
||||||
|
this.appName = appName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getBehavCode() {
|
||||||
|
return behavCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBehavCode(Integer behavCode) {
|
||||||
|
this.behavCode = behavCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,153 @@
|
|||||||
|
/**
|
||||||
|
*@Title: BaseStringConfig.java
|
||||||
|
*@Package com.nis.domain.restful
|
||||||
|
*@Description TODO
|
||||||
|
*@author dell
|
||||||
|
*@date 2018年2月5日 下午5:26:02
|
||||||
|
*@version 版本号
|
||||||
|
*/
|
||||||
|
package com.nis.domain.configuration;
|
||||||
|
|
||||||
|
import com.google.gson.annotations.Expose;
|
||||||
|
import com.google.gson.annotations.SerializedName;
|
||||||
|
import com.nis.util.excel.ExcelField;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description: 主题网站配置
|
||||||
|
* @author (dell)
|
||||||
|
* @date 2018年2月5日 下午5:26:02
|
||||||
|
* @version V1.0
|
||||||
|
*/
|
||||||
|
public class AppTopicDomainCfg extends BaseCfg<AppTopicDomainCfg> {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = -442502179959427340L;
|
||||||
|
|
||||||
|
private static final String tableName="app_topic_domain_cfg";
|
||||||
|
@Expose
|
||||||
|
private Integer compileId;
|
||||||
|
@Expose
|
||||||
|
private Integer ratelimit;
|
||||||
|
// private Integer appCode;//specific_service_cfg表一级节点的spec_service_code
|
||||||
|
private Integer behavCode;//specific_service_cfg表二级节点的spec_service_code
|
||||||
|
private Integer specServiceId;
|
||||||
|
private String domain;
|
||||||
|
private String cfgKeywords;
|
||||||
|
private String appName;
|
||||||
|
private String topic;
|
||||||
|
|
||||||
|
@Expose
|
||||||
|
@ExcelField(title="expression_type")
|
||||||
|
@SerializedName("exprType")
|
||||||
|
protected Integer exprType ;
|
||||||
|
|
||||||
|
@Expose
|
||||||
|
@ExcelField(title="match_method")
|
||||||
|
@SerializedName("matchMethod")
|
||||||
|
protected Integer matchMethod ;
|
||||||
|
|
||||||
|
@Expose
|
||||||
|
@ExcelField(title="whether_hexbinary")
|
||||||
|
@SerializedName("isHexbin")
|
||||||
|
protected Integer isHexbin;
|
||||||
|
|
||||||
|
|
||||||
|
public String getTopic() {
|
||||||
|
return topic;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTopic(String topic) {
|
||||||
|
this.topic = topic;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getExprType() {
|
||||||
|
return exprType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setExprType(Integer exprType) {
|
||||||
|
this.exprType = exprType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getMatchMethod() {
|
||||||
|
return matchMethod;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMatchMethod(Integer matchMethod) {
|
||||||
|
this.matchMethod = matchMethod;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getIsHexbin() {
|
||||||
|
return isHexbin;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIsHexbin(Integer isHexbin) {
|
||||||
|
this.isHexbin = isHexbin;
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public void initDefaultValue() {
|
||||||
|
super.initDefaultValue();
|
||||||
|
this.isHexbin = 0;
|
||||||
|
this.doLog = 0;//app特征域不记录日志
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public Integer getCompileId() {
|
||||||
|
return compileId;
|
||||||
|
}
|
||||||
|
public void setCompileId(Integer compileId) {
|
||||||
|
this.compileId = compileId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String getTablename() {
|
||||||
|
return tableName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getRatelimit() {
|
||||||
|
return ratelimit;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRatelimit(Integer ratelimit) {
|
||||||
|
this.ratelimit = ratelimit;
|
||||||
|
}
|
||||||
|
// public Integer getAppCode() {
|
||||||
|
// return appCode;
|
||||||
|
// }
|
||||||
|
// public void setAppCode(Integer appCode) {
|
||||||
|
// this.appCode = appCode;
|
||||||
|
// }
|
||||||
|
public Integer getSpecServiceId() {
|
||||||
|
return specServiceId;
|
||||||
|
}
|
||||||
|
public void setSpecServiceId(Integer specServiceId) {
|
||||||
|
this.specServiceId = specServiceId;
|
||||||
|
}
|
||||||
|
public String getDomain() {
|
||||||
|
return domain;
|
||||||
|
}
|
||||||
|
public void setDomain(String domain) {
|
||||||
|
this.domain = domain;
|
||||||
|
}
|
||||||
|
public String getCfgKeywords() {
|
||||||
|
return cfgKeywords;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCfgKeywords(String cfgKeywords) {
|
||||||
|
this.cfgKeywords = cfgKeywords;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAppName() {
|
||||||
|
return appName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAppName(String appName) {
|
||||||
|
this.appName = appName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getBehavCode() {
|
||||||
|
return behavCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBehavCode(Integer behavCode) {
|
||||||
|
this.behavCode = behavCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -31,6 +31,9 @@ public class FileDigestCfg extends BaseCfg<FileDigestCfg> {
|
|||||||
private Integer cfdsLevel;
|
private Integer cfdsLevel;
|
||||||
private String fileUrl;
|
private String fileUrl;
|
||||||
|
|
||||||
|
private NtcSubscribeIdCfg ntcSubscribeIdCfg;
|
||||||
|
private List<NtcSubscribeIdCfg> ntcSubscribeIdCfgList;
|
||||||
|
|
||||||
public static String getTablename() {
|
public static String getTablename() {
|
||||||
return tableName;
|
return tableName;
|
||||||
}
|
}
|
||||||
@@ -61,5 +64,17 @@ public class FileDigestCfg extends BaseCfg<FileDigestCfg> {
|
|||||||
public void setFileUrl(String fileUrl) {
|
public void setFileUrl(String fileUrl) {
|
||||||
this.fileUrl = fileUrl;
|
this.fileUrl = fileUrl;
|
||||||
}
|
}
|
||||||
|
public NtcSubscribeIdCfg getNtcSubscribeIdCfg() {
|
||||||
|
return ntcSubscribeIdCfg;
|
||||||
|
}
|
||||||
|
public void setNtcSubscribeIdCfg(NtcSubscribeIdCfg ntcSubscribeIdCfg) {
|
||||||
|
this.ntcSubscribeIdCfg = ntcSubscribeIdCfg;
|
||||||
|
}
|
||||||
|
public List<NtcSubscribeIdCfg> getNtcSubscribeIdCfgList() {
|
||||||
|
return ntcSubscribeIdCfgList;
|
||||||
|
}
|
||||||
|
public void setNtcSubscribeIdCfgList(List<NtcSubscribeIdCfg> ntcSubscribeIdCfgList) {
|
||||||
|
this.ntcSubscribeIdCfgList = ntcSubscribeIdCfgList;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,7 +31,14 @@ public class SpecificServiceCfg extends BaseEntity<SpecificServiceCfg>{
|
|||||||
private Date endDate; // 结束日期
|
private Date endDate; // 结束日期
|
||||||
private String showSequence; //显示序号
|
private String showSequence; //显示序号
|
||||||
private String businessType;
|
private String businessType;
|
||||||
|
private Integer addFlag;//app界面添加标记
|
||||||
|
|
||||||
|
public Integer getAddFlag() {
|
||||||
|
return addFlag;
|
||||||
|
}
|
||||||
|
public void setAddFlag(Integer addFlag) {
|
||||||
|
this.addFlag = addFlag;
|
||||||
|
}
|
||||||
public String getBusinessType() {
|
public String getBusinessType() {
|
||||||
return businessType;
|
return businessType;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,6 +7,8 @@ import org.springframework.stereotype.Controller;
|
|||||||
import org.springframework.ui.Model;
|
import org.springframework.ui.Model;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
|
||||||
|
import com.nis.web.security.UserUtils;
|
||||||
|
|
||||||
|
|
||||||
@Controller
|
@Controller
|
||||||
@RequestMapping("${adminPath}/tag")
|
@RequestMapping("${adminPath}/tag")
|
||||||
@@ -26,7 +28,9 @@ public class TagController extends BaseController {
|
|||||||
model.addAttribute("selectIds", request.getParameter("selectIds")); // 指定默认选中的ID
|
model.addAttribute("selectIds", request.getParameter("selectIds")); // 指定默认选中的ID
|
||||||
model.addAttribute("isAll", request.getParameter("isAll")); // 是否读取全部数据,不进行权限过滤
|
model.addAttribute("isAll", request.getParameter("isAll")); // 是否读取全部数据,不进行权限过滤
|
||||||
model.addAttribute("module", request.getParameter("module")); // 过滤栏目模型(仅针对CMS的Category树)
|
model.addAttribute("module", request.getParameter("module")); // 过滤栏目模型(仅针对CMS的Category树)
|
||||||
model.addAttribute("title", request.getParameter("title"));
|
model.addAttribute("title", request.getParameter("title"));//根节点替换文本
|
||||||
|
model.addAttribute("enableAddBtn", request.getParameter("enableAddBtn"));//节点是否可编辑
|
||||||
|
model.addAttribute("userId", UserUtils.getUser().getId());//如果启用了addBtn,则使用userId判断是否是用户自己创建的,用户自己创建的节点可删除
|
||||||
return "/sys/tagTreeselect";
|
return "/sys/tagTreeselect";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -24,13 +24,18 @@ import com.nis.domain.configuration.AppHttpCfg;
|
|||||||
import com.nis.domain.configuration.AppIpCfg;
|
import com.nis.domain.configuration.AppIpCfg;
|
||||||
import com.nis.domain.configuration.AppPolicyCfg;
|
import com.nis.domain.configuration.AppPolicyCfg;
|
||||||
import com.nis.domain.configuration.AppSslCertCfg;
|
import com.nis.domain.configuration.AppSslCertCfg;
|
||||||
|
import com.nis.domain.configuration.AppTcpCfg;
|
||||||
|
import com.nis.domain.configuration.AppTopicDomainCfg;
|
||||||
import com.nis.domain.configuration.IpPortCfg;
|
import com.nis.domain.configuration.IpPortCfg;
|
||||||
import com.nis.domain.configuration.NtcSubscribeIdCfg;
|
import com.nis.domain.configuration.NtcSubscribeIdCfg;
|
||||||
import com.nis.domain.specific.SpecificServiceCfg;
|
import com.nis.domain.specific.SpecificServiceCfg;
|
||||||
|
import com.nis.exceptions.CallExternalProceduresException;
|
||||||
import com.nis.exceptions.MaatConvertException;
|
import com.nis.exceptions.MaatConvertException;
|
||||||
|
import com.nis.util.CodeDicUtils;
|
||||||
import com.nis.util.Constants;
|
import com.nis.util.Constants;
|
||||||
import com.nis.util.DictUtils;
|
import com.nis.util.DictUtils;
|
||||||
import com.nis.web.controller.BaseController;
|
import com.nis.web.controller.BaseController;
|
||||||
|
import com.nis.web.dao.dashboard.codedic.CodeResult;
|
||||||
import com.nis.web.security.UserUtils;
|
import com.nis.web.security.UserUtils;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -755,6 +760,126 @@ public class AppCfgController extends BaseController {
|
|||||||
appCfgService.updateAppSslCfgValid(isValid,ids,functionId);
|
appCfgService.updateAppSslCfgValid(isValid,ids,functionId);
|
||||||
return "redirect:" + adminPath +"/app/sslCfgList?functionId="+functionId;
|
return "redirect:" + adminPath +"/app/sslCfgList?functionId="+functionId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* APP TCP会话字节数特征 列表
|
||||||
|
* @param model
|
||||||
|
* @param cfg
|
||||||
|
* @param request
|
||||||
|
* @param response
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@RequestMapping(value = {"tcpCfgList"})
|
||||||
|
public String tcpCfgList(Model model,@ModelAttribute("cfg")AppTcpCfg cfg,HttpServletRequest request,HttpServletResponse response) {
|
||||||
|
Page<AppTcpCfg> searchPage=new Page<AppTcpCfg>(request,response,"r");
|
||||||
|
Page<AppTcpCfg> page = appCfgService.findAppTcpList(searchPage, cfg);
|
||||||
|
for(AppTcpCfg entity:page.getList()){
|
||||||
|
SpecificServiceCfg app = specificServiceCfgService.getBySpecServiceId(entity.getSpecServiceId());
|
||||||
|
entity.setAppName(app.getSpecServiceName());
|
||||||
|
}
|
||||||
|
model.addAttribute("page", page);
|
||||||
|
initPageCondition(model,cfg);
|
||||||
|
return "/cfg/app/appTcpCfgList";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* APP TCP会话字节数特征表单(新增/修改)
|
||||||
|
* @param model
|
||||||
|
* @param ids
|
||||||
|
* @param entity
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@RequestMapping(value = {"tcpCfgForm"})
|
||||||
|
@RequiresPermissions(value={"app:tcp:config"})
|
||||||
|
public String tcpCfgForm(Model model,String ids,AppTcpCfg entity) {
|
||||||
|
if(StringUtils.isNotBlank(ids)){
|
||||||
|
entity = appCfgService.getAppTcpCfg(Long.parseLong(ids));
|
||||||
|
initUpdateFormCondition(model,entity);
|
||||||
|
}else{
|
||||||
|
initFormCondition(model,entity);
|
||||||
|
}
|
||||||
|
model.addAttribute("_cfg", entity);
|
||||||
|
return "/cfg/app/appTcpCfgForm";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* APP TCP会话字节数特征配置(新增/修改)提交
|
||||||
|
* @param model
|
||||||
|
* @param request
|
||||||
|
* @param response
|
||||||
|
* @param entity
|
||||||
|
* @param redirectAttributes
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@RequestMapping(value = {"saveAppTcpCfg"})
|
||||||
|
@RequiresPermissions(value={"app:tcp:config"})
|
||||||
|
public String saveAppTcpCfg(Model model,HttpServletRequest request,HttpServletResponse response,
|
||||||
|
AppTcpCfg entity,RedirectAttributes redirectAttributes) {
|
||||||
|
try {
|
||||||
|
SpecificServiceCfg specificService = specificServiceCfgService.getBySpecServiceId(entity.getSpecServiceId());
|
||||||
|
if(specificService!=null){
|
||||||
|
entity.setAppCode(specificService.getSpecServiceCode());
|
||||||
|
}
|
||||||
|
appCfgService.saveOrUpdateAppTcpeCfg(entity);
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
addMessage(redirectAttributes, e.getMessage());
|
||||||
|
}
|
||||||
|
|
||||||
|
return "redirect:" + adminPath +"/app/tcpCfgList?functionId="+entity.getFunctionId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* APP TCP会话字节数特征配置删除
|
||||||
|
* @param isValid
|
||||||
|
* @param ids
|
||||||
|
* @param functionId
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@RequestMapping(value = {"updateAppTcpCfgValid"})
|
||||||
|
@RequiresPermissions(value={"app:tcp:config"})
|
||||||
|
public String updateAppTcpCfgValid(Integer isValid,String ids,Integer functionId) {
|
||||||
|
appCfgService.updateAppTcpCfgValid(isValid,ids,functionId);
|
||||||
|
return "redirect:" + adminPath +"/app/tcpCfgList?functionId="+functionId;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* APP TCP会话字节数特征配置 审核
|
||||||
|
* @param isAudit
|
||||||
|
* @param isValid
|
||||||
|
* @param ids
|
||||||
|
* @param functionId
|
||||||
|
* @param redirectAttributes
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@RequestMapping(value = {"auditAppTcpCfg"})
|
||||||
|
@RequiresPermissions(value={"app:tcp:confirm"})
|
||||||
|
public String auditAppTcpCfg(Integer isAudit,Integer isValid,String ids,Integer functionId, RedirectAttributes redirectAttributes) {
|
||||||
|
AppTcpCfg entity = new AppTcpCfg();
|
||||||
|
String[] idArray = ids.split(",");
|
||||||
|
for(String id :idArray){
|
||||||
|
entity = appCfgService.getAppTcpCfg(Long.parseLong(id));
|
||||||
|
entity.setIsAudit(isAudit);
|
||||||
|
entity.setIsValid(isValid);
|
||||||
|
entity.setAuditorId(UserUtils.getUser().getId());
|
||||||
|
entity.setAuditTime(new Date());
|
||||||
|
entity.setFunctionId(functionId);
|
||||||
|
try {
|
||||||
|
appCfgService.auditAppTcpCfg(entity,isAudit);
|
||||||
|
} catch (MaatConvertException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
logger.info("app SSL配置下发失败:"+e.getMessage());
|
||||||
|
addMessage(redirectAttributes, e.getMessage());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return "redirect:" + adminPath +"/app/tcpCfgList?functionId="+functionId;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* APP header特征配置 列表
|
* APP header特征配置 列表
|
||||||
* @param model
|
* @param model
|
||||||
@@ -864,4 +989,150 @@ public class AppCfgController extends BaseController {
|
|||||||
appCfgService.updateAppHeaderCfgValid(isValid,ids,functionId);
|
appCfgService.updateAppHeaderCfgValid(isValid,ids,functionId);
|
||||||
return "redirect:" + adminPath +"/app/headerCfgList?functionId="+functionId;
|
return "redirect:" + adminPath +"/app/headerCfgList?functionId="+functionId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 主题网站配置列表
|
||||||
|
* @param model
|
||||||
|
* @param cfg
|
||||||
|
* @param request
|
||||||
|
* @param response
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@RequestMapping(value = {"topicDomainCfgList"})
|
||||||
|
public String TopicDomainCfgList(Model model,@ModelAttribute("cfg")AppTopicDomainCfg cfg,HttpServletRequest request,HttpServletResponse response) {
|
||||||
|
Page<AppTopicDomainCfg> searchPage=new Page<AppTopicDomainCfg>(request,response,"r");
|
||||||
|
Page<AppTopicDomainCfg> page = appCfgService.findAppTopicDomainList(searchPage, cfg);
|
||||||
|
// for(AppTopicDomainCfg entity:page.getList()){
|
||||||
|
// SpecificServiceCfg app = specificServiceCfgService.getBySpecServiceId(entity.getSpecServiceId());
|
||||||
|
// entity.setAppName(app.getSpecServiceName());
|
||||||
|
// }
|
||||||
|
//设置topic主题
|
||||||
|
for (AppTopicDomainCfg entity:page.getList()) {
|
||||||
|
List<CodeResult> codeList = CodeDicUtils.getCodeList("serviceCode");
|
||||||
|
for (CodeResult codeResult : codeList) {
|
||||||
|
if(null!=entity.getTopic()&&codeResult.getCode().equals(entity.getTopic())){
|
||||||
|
entity.setAppName(codeResult.getItem());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
model.addAttribute("page", page);
|
||||||
|
initPageCondition(model,cfg);
|
||||||
|
return "/cfg/app/appTopicDomainCfgList";
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* app主题网站配置表单
|
||||||
|
* @param model
|
||||||
|
* @param ids
|
||||||
|
* @param entity
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@RequestMapping(value = {"topicDomainCfgForm"})
|
||||||
|
@RequiresPermissions(value={"app:topic:config"})
|
||||||
|
public String topicDomainCfgForm(Model model,String ids,@ModelAttribute("_cfg")AppTopicDomainCfg entity) {
|
||||||
|
if(StringUtils.isNotBlank(ids)){
|
||||||
|
entity = appCfgService.getAppTopicDomainCfg(Long.parseLong(ids));
|
||||||
|
initUpdateFormCondition(model,entity);
|
||||||
|
}else{
|
||||||
|
initFormCondition(model,entity);
|
||||||
|
}
|
||||||
|
model.addAttribute("_cfg", entity);
|
||||||
|
return "/cfg/app/appTopicDomainCfgForm";
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* app主题网站配置新增修改
|
||||||
|
* @param model
|
||||||
|
* @param request
|
||||||
|
* @param response
|
||||||
|
* @param entity
|
||||||
|
* @param redirectAttributes
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@RequestMapping(value = {"saveAppTopicDomainCfg"})
|
||||||
|
@RequiresPermissions(value={"app:topic:config"})
|
||||||
|
public String saveAppTopicDomainCfg(Model model,HttpServletRequest request,HttpServletResponse response,
|
||||||
|
AppTopicDomainCfg entity,RedirectAttributes redirectAttributes) {
|
||||||
|
try {
|
||||||
|
// SpecificServiceCfg specificService = specificServiceCfgService.getBySpecServiceId(entity.getSpecServiceId());
|
||||||
|
// if(specificService!=null){
|
||||||
|
// entity.setAppCode(specificService.getSpecServiceCode());
|
||||||
|
// }
|
||||||
|
appCfgService.saveOrUpdateAppTopicDomainCfg(entity);
|
||||||
|
addMessage(redirectAttributes,"save_success");
|
||||||
|
} catch (Exception e) {
|
||||||
|
if(e instanceof MaatConvertException) {
|
||||||
|
e.printStackTrace();
|
||||||
|
logger.info("app主题网站配置下发失败:"+e.getMessage());;
|
||||||
|
addMessage(redirectAttributes,"request_service_failed");
|
||||||
|
}else {
|
||||||
|
e.printStackTrace();
|
||||||
|
logger.error("app主题网站配置下发失败",e);
|
||||||
|
addMessage(redirectAttributes,"save_failed");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return "redirect:" + adminPath +"/app/topicDomainCfgList?functionId="+entity.getFunctionId();
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* domain配置审核
|
||||||
|
* @param isAudit
|
||||||
|
* @param isValid
|
||||||
|
* @param ids
|
||||||
|
* @param functionId
|
||||||
|
* @param redirectAttributes
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@RequestMapping(value = {"auditAppTopicDomainCfg"})
|
||||||
|
// @RequiresPermissions(value={"app:domain:confirm"})
|
||||||
|
public String auditAppTopicDomainCfg(Integer isAudit,Integer isValid,String ids,Integer functionId, RedirectAttributes redirectAttributes) {
|
||||||
|
AppTopicDomainCfg entity = new AppTopicDomainCfg();
|
||||||
|
String[] idArray = ids.split(",");
|
||||||
|
for(String id :idArray){
|
||||||
|
entity = appCfgService.getAppTopicDomainCfg(Long.parseLong(id));
|
||||||
|
entity.setIsAudit(isAudit);
|
||||||
|
entity.setIsValid(isValid);
|
||||||
|
entity.setAuditorId(UserUtils.getUser().getId());
|
||||||
|
entity.setAuditTime(new Date());
|
||||||
|
entity.setFunctionId(functionId);
|
||||||
|
try {
|
||||||
|
appCfgService.auditAppTopicDomainCfg(entity,isAudit);
|
||||||
|
addMessage(redirectAttributes,"audit_success");
|
||||||
|
} catch (MaatConvertException e) {
|
||||||
|
if(e instanceof MaatConvertException) {
|
||||||
|
e.printStackTrace();
|
||||||
|
logger.info("app主题网站配置下发失败:"+e.getMessage());;
|
||||||
|
addMessage(redirectAttributes,"request_service_failed");
|
||||||
|
}else {
|
||||||
|
e.printStackTrace();
|
||||||
|
logger.error("app主题网站配置下发失败",e);
|
||||||
|
addMessage(redirectAttributes,"audit_failed");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return "redirect:" + adminPath +"/app/topicDomainCfgList?functionId="+functionId;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 网站主题配置删除
|
||||||
|
* @param isValid
|
||||||
|
* @param ids
|
||||||
|
* @param functionId
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@RequestMapping(value = {"updateAppTopicDomainCfgValid"})
|
||||||
|
@RequiresPermissions(value={"app:topic:config"})
|
||||||
|
public String updateAppTopicDomainCfgValid(Integer isValid,String ids,Integer functionId,RedirectAttributes redirectAttributes) {
|
||||||
|
try {
|
||||||
|
appCfgService.updateAppTopicDomainCfgValid(isValid,ids,functionId);
|
||||||
|
addMessage(redirectAttributes,"delete_success");
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.error("app主题网站删除失败",e);
|
||||||
|
if(e instanceof MaatConvertException||e instanceof CallExternalProceduresException) {
|
||||||
|
e.printStackTrace();
|
||||||
|
addMessage(redirectAttributes,"request_service_failed");
|
||||||
|
}else {
|
||||||
|
e.printStackTrace();
|
||||||
|
addMessage(redirectAttributes,"delete_failed");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return "redirect:" + adminPath +"/app/topicDomainCfgList?functionId="+functionId;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -225,7 +225,7 @@ public class FileTransferCfgController extends BaseController{
|
|||||||
entity.setCreateTime(date);
|
entity.setCreateTime(date);
|
||||||
fileTime=entity.getCreateTime();
|
fileTime=entity.getCreateTime();
|
||||||
}
|
}
|
||||||
ToMaatResult result = null;
|
ToMaatResult result = new ToMaatResult();
|
||||||
if(file!=null && file.getSize()>0 && entity!=null){
|
if(file!=null && file.getSize()>0 && entity!=null){
|
||||||
String sep = System.getProperty("file.separator");
|
String sep = System.getProperty("file.separator");
|
||||||
String digestFilePath = request.getRealPath("/")+"digestFile";
|
String digestFilePath = request.getRealPath("/")+"digestFile";
|
||||||
@@ -245,6 +245,10 @@ public class FileTransferCfgController extends BaseController{
|
|||||||
String md5 = DigestUtils.md5Hex(file.getBytes());
|
String md5 = DigestUtils.md5Hex(file.getBytes());
|
||||||
fileMap.put("checksum", md5);
|
fileMap.put("checksum", md5);
|
||||||
result = ConfigServiceUtil.getFileDigest(null, uploadFile, JsonMapper.toJsonString(fileMap));
|
result = ConfigServiceUtil.getFileDigest(null, uploadFile, JsonMapper.toJsonString(fileMap));
|
||||||
|
if((result.getData().getRawLen() == null) || (result.getData().getDigest() == null)) {
|
||||||
|
logger.info("文件摘要信息获取有误!");
|
||||||
|
throw new MaatConvertException("<spring:message code=\"request_service_failed\"/>:"+null);
|
||||||
|
}
|
||||||
logger.info("获取文件摘要响应信息:"+result);
|
logger.info("获取文件摘要响应信息:"+result);
|
||||||
}
|
}
|
||||||
fileTransferCfgService.saveOrUpdateFileDigestCfg(entity,result,areaCfgIds);
|
fileTransferCfgService.saveOrUpdateFileDigestCfg(entity,result,areaCfgIds);
|
||||||
@@ -282,6 +286,25 @@ public class FileTransferCfgController extends BaseController{
|
|||||||
}
|
}
|
||||||
return "redirect:" + adminPath +"/ntc/fileTransfer/fileDigestList?functionId="+functionId;
|
return "redirect:" + adminPath +"/ntc/fileTransfer/fileDigestList?functionId="+functionId;
|
||||||
}
|
}
|
||||||
|
@RequestMapping(value = {"ajaxFileDigestSubIdList"})
|
||||||
|
public String ajaxFileDigestSubIdList(Model model,Long cfgId,Integer index) {
|
||||||
|
FileDigestCfg cfg = fileTransferCfgService.getFileDigestSubIdCfg(cfgId);
|
||||||
|
List<String[]> tabList = new ArrayList();
|
||||||
|
//查询SubscribeId域配置
|
||||||
|
if(cfg.getNtcSubscribeIdCfgList()!=null){
|
||||||
|
String cfgType = null;
|
||||||
|
for(NtcSubscribeIdCfg ntc:cfg.getNtcSubscribeIdCfgList()){
|
||||||
|
if(!ntc.getCfgType().equals(cfgType)){
|
||||||
|
tabList.add(new String[]{"2",ntc.getCfgType()});
|
||||||
|
cfgType = ntc.getCfgType();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
model.addAttribute("_cfg", cfg);
|
||||||
|
model.addAttribute("index", index);
|
||||||
|
model.addAttribute("tabList", tabList);
|
||||||
|
return "/cfg/fileTransfer/fileDigestSubList";
|
||||||
|
}
|
||||||
|
|
||||||
@RequestMapping(value = {"p2pList"})
|
@RequestMapping(value = {"p2pList"})
|
||||||
public String p2pList(Model model,@ModelAttribute("cfg")CfgIndexInfo cfg,HttpServletRequest request,HttpServletResponse response) {
|
public String p2pList(Model model,@ModelAttribute("cfg")CfgIndexInfo cfg,HttpServletRequest request,HttpServletResponse response) {
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ import org.springframework.web.servlet.mvc.support.RedirectAttributes;
|
|||||||
import com.nis.domain.Page;
|
import com.nis.domain.Page;
|
||||||
import com.nis.domain.configuration.CfgIndexInfo;
|
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.exceptions.MaatConvertException;
|
import com.nis.exceptions.MaatConvertException;
|
||||||
import com.nis.web.controller.BaseController;
|
import com.nis.web.controller.BaseController;
|
||||||
import com.nis.web.security.UserUtils;
|
import com.nis.web.security.UserUtils;
|
||||||
@@ -104,6 +105,15 @@ public class XmppController extends BaseController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
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("_cfg", cfg);
|
||||||
model.addAttribute("index", index);
|
model.addAttribute("index", index);
|
||||||
model.addAttribute("tabList", tabList);
|
model.addAttribute("tabList", tabList);
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
package com.nis.web.controller.specific;
|
package com.nis.web.controller.specific;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
@@ -13,6 +12,7 @@ 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;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMethod;
|
||||||
import org.springframework.web.bind.annotation.RequestParam;
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
import org.springframework.web.bind.annotation.ResponseBody;
|
import org.springframework.web.bind.annotation.ResponseBody;
|
||||||
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
|
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
|
||||||
@@ -22,6 +22,8 @@ import com.google.common.collect.Maps;
|
|||||||
import com.nis.domain.Page;
|
import com.nis.domain.Page;
|
||||||
import com.nis.domain.SysDataDictionaryItem;
|
import com.nis.domain.SysDataDictionaryItem;
|
||||||
import com.nis.domain.specific.SpecificServiceCfg;
|
import com.nis.domain.specific.SpecificServiceCfg;
|
||||||
|
import com.nis.exceptions.MaatConvertException;
|
||||||
|
import com.nis.util.Constants;
|
||||||
import com.nis.util.DictUtils;
|
import com.nis.util.DictUtils;
|
||||||
import com.nis.util.StringUtils;
|
import com.nis.util.StringUtils;
|
||||||
import com.nis.web.controller.BaseController;
|
import com.nis.web.controller.BaseController;
|
||||||
@@ -201,8 +203,9 @@ public class SpecificServiceCfgController extends BaseController {
|
|||||||
Map<String, Object> map2 = Maps.newHashMap();
|
Map<String, Object> map2 = Maps.newHashMap();
|
||||||
map2.put("id", 0);
|
map2.put("id", 0);
|
||||||
map2.put("pId", 0);
|
map2.put("pId", 0);
|
||||||
map2.put("type",0);
|
map2.put("serviceType",0);
|
||||||
map2.put("business",-2);
|
map2.put("business",-2);
|
||||||
|
map2.put("groupId",0);
|
||||||
map2.put("name","root_node");
|
map2.put("name","root_node");
|
||||||
//map2.put("placeholder","0");
|
//map2.put("placeholder","0");
|
||||||
mapList.add(map2);
|
mapList.add(map2);
|
||||||
@@ -222,6 +225,7 @@ public class SpecificServiceCfgController extends BaseController {
|
|||||||
map.put("name",props.getProperty(dict.getItemValue(), dict.getItemValue()));
|
map.put("name",props.getProperty(dict.getItemValue(), dict.getItemValue()));
|
||||||
map.put("serviceType",cfgType);
|
map.put("serviceType",cfgType);
|
||||||
map.put("businessType","-1");
|
map.put("businessType","-1");
|
||||||
|
map.put("groupId",0);
|
||||||
businessList.add(map);
|
businessList.add(map);
|
||||||
}
|
}
|
||||||
mapList.addAll(businessList);
|
mapList.addAll(businessList);
|
||||||
@@ -242,7 +246,12 @@ public class SpecificServiceCfgController extends BaseController {
|
|||||||
map.put("pId", "businessType"+business.getItemCode());
|
map.put("pId", "businessType"+business.getItemCode());
|
||||||
map.put("name",specificServiceCfg.getSpecServiceName());
|
map.put("name",specificServiceCfg.getSpecServiceName());
|
||||||
map.put("serviceType",specificServiceCfg.getCfgType());
|
map.put("serviceType",specificServiceCfg.getCfgType());
|
||||||
|
map.put("serviceCode",specificServiceCfg.getSpecServiceCode());
|
||||||
map.put("businessType",specificServiceCfg.getBusinessType());
|
map.put("businessType",specificServiceCfg.getBusinessType());
|
||||||
|
map.put("groupId",specificServiceCfg.getGroupId());
|
||||||
|
if(specificServiceCfg.getAddFlag()!=null) {
|
||||||
|
map.put("user",specificServiceCfg.getAddFlag());
|
||||||
|
}
|
||||||
mapList.add(map);
|
mapList.add(map);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -253,6 +262,7 @@ public class SpecificServiceCfgController extends BaseController {
|
|||||||
map.put("pId", specificServiceCfg.getParent().getSpecServiceId());
|
map.put("pId", specificServiceCfg.getParent().getSpecServiceId());
|
||||||
map.put("name",specificServiceCfg.getSpecServiceName());
|
map.put("name",specificServiceCfg.getSpecServiceName());
|
||||||
map.put("serviceType",specificServiceCfg.getCfgType());
|
map.put("serviceType",specificServiceCfg.getCfgType());
|
||||||
|
map.put("groupId",specificServiceCfg.getGroupId());
|
||||||
mapList.add(map);
|
mapList.add(map);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -272,6 +282,10 @@ public class SpecificServiceCfgController extends BaseController {
|
|||||||
map.put("pId", specificServiceCfg.getParent().getSpecServiceId());
|
map.put("pId", specificServiceCfg.getParent().getSpecServiceId());
|
||||||
map.put("name",specificServiceCfg.getSpecServiceName());
|
map.put("name",specificServiceCfg.getSpecServiceName());
|
||||||
map.put("type",specificServiceCfg.getCfgType());
|
map.put("type",specificServiceCfg.getCfgType());
|
||||||
|
map.put("groupId",specificServiceCfg.getGroupId());
|
||||||
|
if(specificServiceCfg.getAddFlag()!=null) {
|
||||||
|
map.put("user",specificServiceCfg.getAddFlag());
|
||||||
|
}
|
||||||
mapList.add(map);
|
mapList.add(map);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -380,5 +394,70 @@ public class SpecificServiceCfgController extends BaseController {
|
|||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ResponseBody
|
||||||
|
@RequestMapping(value = "ajaxSaveOrUpdateApp",method=RequestMethod.POST )
|
||||||
|
public Map<String,Object> ajaxSaveOrUpdateApp(@RequestParam(required=true,value="specServiceId")String specServiceId,@RequestParam(required=false,value="specServiceCode")String specServiceCode,@RequestParam(required=true,value="specServiceName") String specServiceName,
|
||||||
|
@RequestParam(required=true,value="cfgType") String cfgType, @RequestParam(required=true,value="businessType")String businessType,@RequestParam(required=false,value="addFlag")String addFlag,
|
||||||
|
@RequestParam(required=false,value="groupId")String groupId){
|
||||||
|
Map<String, Object> map = Maps.newHashMap();
|
||||||
|
//校验是真ID还是假ID,假的Id以manual开头无法转换成数字
|
||||||
|
boolean isTrueId=false;
|
||||||
|
try {
|
||||||
|
Long.parseLong(specServiceId);
|
||||||
|
isTrueId=true;
|
||||||
|
}catch (Exception e) {
|
||||||
|
// TODO: handle exception
|
||||||
|
}
|
||||||
|
try{
|
||||||
|
SpecificServiceCfg cfg=new SpecificServiceCfg();
|
||||||
|
if(isTrueId) {
|
||||||
|
cfg.setSpecServiceId(Integer.parseInt(specServiceId));
|
||||||
|
}
|
||||||
|
if(StringUtils.isNotBlank(specServiceCode)) {
|
||||||
|
cfg.setSpecServiceCode(Integer.parseInt(specServiceCode));
|
||||||
|
}
|
||||||
|
cfg.setAddFlag(Integer.parseInt(addFlag));
|
||||||
|
cfg.setSpecServiceName(specServiceName);
|
||||||
|
cfg.setBusinessType(businessType);
|
||||||
|
cfg.setCfgType(Integer.parseInt(cfgType));
|
||||||
|
cfg.setIsValid(Constants.VALID_YES);
|
||||||
|
if(StringUtils.isNotBlank(groupId)) {
|
||||||
|
cfg.setGroupId(Integer.parseInt(groupId));
|
||||||
|
}
|
||||||
|
|
||||||
|
SpecificServiceCfg parent=new SpecificServiceCfg();
|
||||||
|
parent.setSpecServiceId(0);
|
||||||
|
cfg.setParent(parent);
|
||||||
|
specificServiceCfgService.saveOrUpdate(cfg);
|
||||||
|
cfg=specificServiceCfgService.getBySpecServiceId(cfg.getSpecServiceId());
|
||||||
|
map.put("id", cfg.getSpecServiceId());
|
||||||
|
map.put("pId", "businessType"+cfg.getBusinessType());
|
||||||
|
map.put("name",cfg.getSpecServiceName());
|
||||||
|
map.put("serviceType",cfg.getCfgType());
|
||||||
|
map.put("businessType",cfg.getBusinessType());
|
||||||
|
map.put("groupId",cfg.getGroupId());
|
||||||
|
return map;
|
||||||
|
}catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
if(e instanceof MaatConvertException) {
|
||||||
|
map.put("errTip", "request_service_failed");
|
||||||
|
}else {
|
||||||
|
map.put("errTip", "save_failed");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return map;
|
||||||
|
}
|
||||||
|
@ResponseBody
|
||||||
|
@RequestMapping(value = "ajaxRemoveApp",method=RequestMethod.POST )
|
||||||
|
public boolean ajaxRemoveApp(@RequestParam(required=true,value="specServiceId")Integer specServiceId){
|
||||||
|
try{
|
||||||
|
specificServiceCfgService.delete(String.valueOf(specServiceId));
|
||||||
|
return true;
|
||||||
|
}catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,6 +17,8 @@ import com.nis.domain.configuration.AppIpCfg;
|
|||||||
import com.nis.domain.configuration.AppPolicyCfg;
|
import com.nis.domain.configuration.AppPolicyCfg;
|
||||||
import com.nis.domain.configuration.AppSslCertCfg;
|
import com.nis.domain.configuration.AppSslCertCfg;
|
||||||
import com.nis.domain.configuration.AppStringCfg;
|
import com.nis.domain.configuration.AppStringCfg;
|
||||||
|
import com.nis.domain.configuration.AppTcpCfg;
|
||||||
|
import com.nis.domain.configuration.AppTopicDomainCfg;
|
||||||
import com.nis.domain.configuration.BaseCfg;
|
import com.nis.domain.configuration.BaseCfg;
|
||||||
import com.nis.domain.configuration.BaseStringCfg;
|
import com.nis.domain.configuration.BaseStringCfg;
|
||||||
import com.nis.domain.configuration.ComplexkeywordCfg;
|
import com.nis.domain.configuration.ComplexkeywordCfg;
|
||||||
@@ -57,6 +59,11 @@ public interface AppCfgDao {
|
|||||||
public AppDomainCfg getAppDomainCfg(Long cfgId) ;
|
public AppDomainCfg getAppDomainCfg(Long cfgId) ;
|
||||||
public int insertAppDomainCfg(AppDomainCfg entity);
|
public int insertAppDomainCfg(AppDomainCfg entity);
|
||||||
public int updateAppDomainCfg(AppDomainCfg entity);
|
public int updateAppDomainCfg(AppDomainCfg entity);
|
||||||
|
//app 主题网站配置增删改查
|
||||||
|
public List<AppTopicDomainCfg> findAppTopicDomainList(AppTopicDomainCfg entity) ;
|
||||||
|
public AppTopicDomainCfg getAppTopicDomainCfg(Long cfgId) ;
|
||||||
|
public int insertAppTopicDomainCfg(AppTopicDomainCfg entity);
|
||||||
|
public int updateAppTopicDomainCfg(AppTopicDomainCfg entity);
|
||||||
//app 字节特征增删改查
|
//app 字节特征增删改查
|
||||||
public List<AppByteCfg> findAppByteList(AppByteCfg entity) ;
|
public List<AppByteCfg> findAppByteList(AppByteCfg entity) ;
|
||||||
public AppByteCfg getAppByteCfg(Long cfgId) ;
|
public AppByteCfg getAppByteCfg(Long cfgId) ;
|
||||||
@@ -77,7 +84,11 @@ public interface AppCfgDao {
|
|||||||
public AppHeaderCfg getAppHeaderCfg(Long cfgId);
|
public AppHeaderCfg getAppHeaderCfg(Long cfgId);
|
||||||
public int insertAppHeaderCfg(AppHeaderCfg entity);
|
public int insertAppHeaderCfg(AppHeaderCfg entity);
|
||||||
public int updateAppHeaderCfg(AppHeaderCfg entity);
|
public int updateAppHeaderCfg(AppHeaderCfg entity);
|
||||||
|
//APP TCP会话字节数特征
|
||||||
|
public List<AppTcpCfg> findAppTcpList(AppTcpCfg entity);
|
||||||
|
public AppTcpCfg getAppTcpCfg(Long cfgId);
|
||||||
|
public int insertAppTcpCfg(AppTcpCfg entity);
|
||||||
|
public int updateAppTcpCfg(AppTcpCfg entity);
|
||||||
//审核配置
|
//审核配置
|
||||||
public void auditCfg(BaseCfg entity);
|
public void auditCfg(BaseCfg entity);
|
||||||
//修改配置状态
|
//修改配置状态
|
||||||
|
|||||||
@@ -137,6 +137,37 @@
|
|||||||
<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>
|
||||||
|
<resultMap id="AppTopicDomainCfgMap" type="com.nis.domain.configuration.AppTopicDomainCfg" >
|
||||||
|
<id column="cfg_id" property="cfgId" jdbcType="BIGINT" />
|
||||||
|
<result column="spec_service_id" property="specServiceId" jdbcType="INTEGER" />
|
||||||
|
<result column="topic" property="topic" jdbcType="VARCHAR" />
|
||||||
|
<result column="behav_code" property="behavCode" jdbcType="INTEGER" />
|
||||||
|
<result column="domain" property="domain" jdbcType="VARCHAR" />
|
||||||
|
<result column="cfg_desc" property="cfgDesc" jdbcType="VARCHAR" />
|
||||||
|
<result column="action" property="action" jdbcType="INTEGER" />
|
||||||
|
<result column="is_valid" property="isValid" jdbcType="INTEGER" />
|
||||||
|
<result column="is_audit" property="isAudit" jdbcType="INTEGER" />
|
||||||
|
<result column="creator_id" property="creatorId" jdbcType="INTEGER" />
|
||||||
|
<result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
|
||||||
|
<result column="editor_id" property="editorId" jdbcType="INTEGER" />
|
||||||
|
<result column="edit_time" property="editTime" jdbcType="TIMESTAMP" />
|
||||||
|
<result column="auditor_id" property="auditorId" jdbcType="INTEGER" />
|
||||||
|
<result column="audit_time" property="auditTime" jdbcType="TIMESTAMP" />
|
||||||
|
<result column="service_id" property="serviceId" jdbcType="INTEGER" />
|
||||||
|
<result column="request_id" property="requestId" jdbcType="INTEGER" />
|
||||||
|
<result column="compile_id" property="compileId" jdbcType="INTEGER" />
|
||||||
|
<result column="is_area_effective" property="isAreaEffective" jdbcType="INTEGER" />
|
||||||
|
<result column="classify" property="classify" jdbcType="VARCHAR" />
|
||||||
|
<result column="attribute" property="attribute" jdbcType="VARCHAR" />
|
||||||
|
<result column="lable" property="lable" jdbcType="VARCHAR" />
|
||||||
|
<result column="expr_type" property="exprType" jdbcType="INTEGER" />
|
||||||
|
<result column="match_method" property="matchMethod" jdbcType="INTEGER" />
|
||||||
|
<result column="is_hexbin" property="isHexbin" jdbcType="INTEGER" />
|
||||||
|
<result column="area_effective_ids" property="areaEffectiveIds" jdbcType="VARCHAR" />
|
||||||
|
<result column="ratelimit" property="ratelimit" jdbcType="INTEGER" />
|
||||||
|
<result column="function_id" property="functionId" jdbcType="INTEGER" />
|
||||||
|
<result column="do_log" property="doLog" jdbcType="INTEGER" />
|
||||||
|
</resultMap>
|
||||||
<resultMap id="AppByteCfgMap" type="com.nis.domain.configuration.AppByteCfg" >
|
<resultMap id="AppByteCfgMap" type="com.nis.domain.configuration.AppByteCfg" >
|
||||||
<id column="cfg_id" property="cfgId" jdbcType="BIGINT" />
|
<id column="cfg_id" property="cfgId" jdbcType="BIGINT" />
|
||||||
<result column="spec_service_id" property="specServiceId" jdbcType="INTEGER" />
|
<result column="spec_service_id" property="specServiceId" jdbcType="INTEGER" />
|
||||||
@@ -297,6 +328,47 @@
|
|||||||
<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>
|
||||||
|
<resultMap id="AppTcpCfgMap" type="com.nis.domain.configuration.AppTcpCfg" >
|
||||||
|
<id column="cfg_id" property="cfgId" jdbcType="BIGINT" />
|
||||||
|
<result column="spec_service_id" property="specServiceId" jdbcType="INTEGER" />
|
||||||
|
<result column="app_code" property="appCode" jdbcType="INTEGER" />
|
||||||
|
<result column="behav_code" property="behavCode" jdbcType="INTEGER" />
|
||||||
|
<result column="low_boundary" property="lowBoundary" jdbcType="BIGINT" />
|
||||||
|
<result column="up_boundary" property="upBoundary" jdbcType="BIGINT" />
|
||||||
|
<result column="cfg_desc" property="cfgDesc" jdbcType="VARCHAR" />
|
||||||
|
<result column="action" property="action" jdbcType="INTEGER" />
|
||||||
|
<result column="is_valid" property="isValid" jdbcType="INTEGER" />
|
||||||
|
<result column="is_audit" property="isAudit" jdbcType="INTEGER" />
|
||||||
|
<result column="creator_id" property="creatorId" jdbcType="INTEGER" />
|
||||||
|
<result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
|
||||||
|
<result column="editor_id" property="editorId" jdbcType="INTEGER" />
|
||||||
|
<result column="edit_time" property="editTime" jdbcType="TIMESTAMP" />
|
||||||
|
<result column="auditor_id" property="auditorId" jdbcType="INTEGER" />
|
||||||
|
<result column="audit_time" property="auditTime" jdbcType="TIMESTAMP" />
|
||||||
|
<result column="service_id" property="serviceId" jdbcType="INTEGER" />
|
||||||
|
<result column="request_id" property="requestId" jdbcType="INTEGER" />
|
||||||
|
<result column="compile_id" property="compileId" jdbcType="INTEGER" />
|
||||||
|
<result column="is_area_effective" property="isAreaEffective" jdbcType="INTEGER" />
|
||||||
|
<result column="classify" property="classify" jdbcType="VARCHAR" />
|
||||||
|
<result column="attribute" property="attribute" jdbcType="VARCHAR" />
|
||||||
|
<result column="lable" property="lable" jdbcType="VARCHAR" />
|
||||||
|
<result column="expr_type" property="exprType" jdbcType="INTEGER" />
|
||||||
|
<result column="match_method" property="matchMethod" jdbcType="INTEGER" />
|
||||||
|
<result column="is_hexbin" property="isHexbin" jdbcType="INTEGER" />
|
||||||
|
<result column="area_effective_ids" property="areaEffectiveIds" jdbcType="VARCHAR" />
|
||||||
|
<result column="ratelimit" property="ratelimit" jdbcType="INTEGER" />
|
||||||
|
<result column="function_id" property="functionId" jdbcType="INTEGER" />
|
||||||
|
<result column="do_log" property="doLog" jdbcType="INTEGER" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="AppTcpCfg_Column" >
|
||||||
|
r.CFG_ID, r.APP_CODE,r.BEHAV_CODE,r.SPEC_SERVICE_ID,r.CFG_DESC,r.ACTION,r.IS_VALID,r.IS_AUDIT,
|
||||||
|
r.CREATOR_ID,r.CREATE_TIME,r.EDITOR_ID,r.EDIT_TIME,r.AUDITOR_ID,r.AUDIT_TIME,
|
||||||
|
r.SERVICE_ID,r.REQUEST_ID,r.COMPILE_ID,r.IS_AREA_EFFECTIVE,r.CLASSIFY,
|
||||||
|
r.ATTRIBUTE,r.LABLE,r.AREA_EFFECTIVE_IDS,r.RATELIMIT,r.FUNCTION_ID,r.CFG_TYPE,r.CFG_REGION_CODE,
|
||||||
|
r.low_boundary,r.up_boundary as upBoundary,r.EXPR_TYPE,r.MATCH_METHOD,r.IS_HEXBIN,r.do_log
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
|
||||||
<sql id="AppPolicyCfg_Column" >
|
<sql id="AppPolicyCfg_Column" >
|
||||||
r.CFG_ID, r.APP_CODE,r.BEHAV_CODE,r.SPEC_SERVICE_ID,r.CFG_DESC,r.ACTION,r.IS_VALID,r.IS_AUDIT,
|
r.CFG_ID, r.APP_CODE,r.BEHAV_CODE,r.SPEC_SERVICE_ID,r.CFG_DESC,r.ACTION,r.IS_VALID,r.IS_AUDIT,
|
||||||
@@ -332,6 +404,14 @@
|
|||||||
r.DOMAIN,r.EXPR_TYPE,r.MATCH_METHOD,r.IS_HEXBIN,r.DO_LOG
|
r.DOMAIN,r.EXPR_TYPE,r.MATCH_METHOD,r.IS_HEXBIN,r.DO_LOG
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
|
<sql id="AppTopicDomainCfg_Column" >
|
||||||
|
r.CFG_ID, r.TOPIC,r.BEHAV_CODE,r.SPEC_SERVICE_ID,r.CFG_DESC,r.ACTION,r.IS_VALID,r.IS_AUDIT,
|
||||||
|
r.CREATOR_ID,r.CREATE_TIME,r.EDITOR_ID,r.EDIT_TIME,r.AUDITOR_ID,r.AUDIT_TIME,
|
||||||
|
r.SERVICE_ID,r.REQUEST_ID,r.COMPILE_ID,r.IS_AREA_EFFECTIVE,r.CLASSIFY,
|
||||||
|
r.ATTRIBUTE,r.LABLE,r.AREA_EFFECTIVE_IDS,r.RATELIMIT,r.FUNCTION_ID,r.CFG_TYPE,r.CFG_REGION_CODE,
|
||||||
|
r.DOMAIN,r.EXPR_TYPE,r.MATCH_METHOD,r.IS_HEXBIN,r.DO_LOG
|
||||||
|
</sql>
|
||||||
|
|
||||||
<sql id="AppByteCfg_Column" >
|
<sql id="AppByteCfg_Column" >
|
||||||
r.CFG_ID, r.APP_CODE,r.BEHAV_CODE,r.SPEC_SERVICE_ID,r.CFG_DESC,r.ACTION,r.IS_VALID,r.IS_AUDIT,
|
r.CFG_ID, r.APP_CODE,r.BEHAV_CODE,r.SPEC_SERVICE_ID,r.CFG_DESC,r.ACTION,r.IS_VALID,r.IS_AUDIT,
|
||||||
r.CREATOR_ID,r.CREATE_TIME,r.EDITOR_ID,r.EDIT_TIME,r.AUDITOR_ID,r.AUDIT_TIME,
|
r.CREATOR_ID,r.CREATE_TIME,r.EDITOR_ID,r.EDIT_TIME,r.AUDITOR_ID,r.AUDIT_TIME,
|
||||||
@@ -358,6 +438,17 @@
|
|||||||
#{areaEffectiveIds,jdbcType=VARCHAR},#{ratelimit,jdbcType=INTEGER},#{functionId,jdbcType=INTEGER},
|
#{areaEffectiveIds,jdbcType=VARCHAR},#{ratelimit,jdbcType=INTEGER},#{functionId,jdbcType=INTEGER},
|
||||||
#{cfgType,jdbcType=VARCHAR},#{cfgRegionCode,jdbcType=INTEGER}
|
#{cfgType,jdbcType=VARCHAR},#{cfgRegionCode,jdbcType=INTEGER}
|
||||||
</sql>
|
</sql>
|
||||||
|
<sql id="AppTopicCommonCfg_Value_List" >
|
||||||
|
#{topic,jdbcType=VARCHAR},#{behavCode,jdbcType=INTEGER},#{specServiceId,jdbcType=INTEGER},
|
||||||
|
#{cfgDesc,jdbcType=VARCHAR},#{action,jdbcType=INTEGER},
|
||||||
|
#{isValid,jdbcType=INTEGER},#{isAudit,jdbcType=INTEGER},#{creatorId,jdbcType=INTEGER},
|
||||||
|
#{createTime,jdbcType=TIMESTAMP},#{editorId,jdbcType=INTEGER},#{editTime,jdbcType=TIMESTAMP},
|
||||||
|
#{auditorId,jdbcType=INTEGER},#{auditTime,jdbcType=TIMESTAMP},#{serviceId,jdbcType=INTEGER},
|
||||||
|
#{requestId,jdbcType=INTEGER},#{compileId,jdbcType=INTEGER},#{isAreaEffective,jdbcType=INTEGER},
|
||||||
|
#{classify,jdbcType=VARCHAR},#{attribute,jdbcType=VARCHAR},#{lable,jdbcType=VARCHAR},
|
||||||
|
#{areaEffectiveIds,jdbcType=VARCHAR},#{ratelimit,jdbcType=INTEGER},#{functionId,jdbcType=INTEGER},
|
||||||
|
#{cfgType,jdbcType=VARCHAR},#{cfgRegionCode,jdbcType=INTEGER}
|
||||||
|
</sql>
|
||||||
|
|
||||||
<sql id="IpCfg_Column" >
|
<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.cfg_id,a.cfg_desc,a.ip_type,a.src_ip_address,a.ip_pattern,a.port_pattern,a.src_port
|
||||||
@@ -438,6 +529,13 @@
|
|||||||
FROM app_domain_cfg r
|
FROM app_domain_cfg r
|
||||||
WHERE CFG_ID = #{cfgId,jdbcType=BIGINT}
|
WHERE CFG_ID = #{cfgId,jdbcType=BIGINT}
|
||||||
</select>
|
</select>
|
||||||
|
<!-- 主题网站 -->
|
||||||
|
<select id="getAppTopicDomainCfg" resultMap="AppTopicDomainCfgMap" parameterType="java.lang.Long" >
|
||||||
|
SELECT
|
||||||
|
<include refid="AppTopicDomainCfg_Column" />
|
||||||
|
FROM app_topic_domain_cfg r
|
||||||
|
WHERE CFG_ID = #{cfgId,jdbcType=BIGINT}
|
||||||
|
</select>
|
||||||
<select id="getAppByteCfg" resultMap="AppByteCfgMap" parameterType="java.lang.Long" >
|
<select id="getAppByteCfg" resultMap="AppByteCfgMap" parameterType="java.lang.Long" >
|
||||||
SELECT
|
SELECT
|
||||||
<include refid="AppByteCfg_Column" />
|
<include refid="AppByteCfg_Column" />
|
||||||
@@ -462,6 +560,113 @@
|
|||||||
FROM app_layer_header_cfg r
|
FROM app_layer_header_cfg r
|
||||||
WHERE CFG_ID = #{cfgId,jdbcType=BIGINT}
|
WHERE CFG_ID = #{cfgId,jdbcType=BIGINT}
|
||||||
</select>
|
</select>
|
||||||
|
<select id="getAppTcpCfg" resultMap="AppTcpCfgMap" parameterType="java.lang.Long" >
|
||||||
|
SELECT
|
||||||
|
<include refid="AppTcpCfg_Column" />
|
||||||
|
FROM app_session_cfg r
|
||||||
|
WHERE CFG_ID = #{cfgId,jdbcType=BIGINT}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="findAppTcpList" resultMap="AppTcpCfgMap">
|
||||||
|
select
|
||||||
|
<include refid="AppTcpCfg_Column"/>
|
||||||
|
<trim prefix="," prefixOverrides=",">
|
||||||
|
, s.name as creator_name,e.name as editor_name,u.name as auditor_name
|
||||||
|
,ri.request_title as requestName
|
||||||
|
</trim>
|
||||||
|
from app_session_cfg r
|
||||||
|
left join sys_user s on r.creator_id=s.id
|
||||||
|
left join sys_user e on r.editor_id=e.id
|
||||||
|
left join sys_user u on r.auditor_id=u.id
|
||||||
|
left join request_info ri on r.request_id=ri.id
|
||||||
|
<trim prefix="WHERE" prefixOverrides="AND |OR ">
|
||||||
|
<if test="functionId != null">
|
||||||
|
AND r.function_id=#{functionId,jdbcType=INTEGER}
|
||||||
|
</if>
|
||||||
|
<if test="lowBoundary != null">
|
||||||
|
AND r.low_boundary=#{lowBoundary,jdbcType=INTEGER}
|
||||||
|
</if>
|
||||||
|
<if test="upBoundary != null">
|
||||||
|
AND r.up_boundary=#{upBoundary,jdbcType=INTEGER}
|
||||||
|
</if>
|
||||||
|
<if test="cfgId != null">
|
||||||
|
AND r.CFG_ID=#{cfgId,jdbcType=BIGINT}
|
||||||
|
</if>
|
||||||
|
<if test="cfgDesc != null and cfgDesc != ''">
|
||||||
|
AND r.CFG_DESC like concat(concat('%',#{cfgDesc,jdbcType=VARCHAR}),'%')
|
||||||
|
</if>
|
||||||
|
<if test="specServiceId != null">
|
||||||
|
AND r.spec_service_id=#{specServiceId,jdbcType=INTEGER}
|
||||||
|
</if>
|
||||||
|
<if test="cfgType != null and cfgType != ''">
|
||||||
|
AND r.CFG_TYPE like concat(concat('%',#{cfgType,jdbcType=VARCHAR}),'%')
|
||||||
|
</if>
|
||||||
|
<if test="action != null">
|
||||||
|
AND r.ACTION=#{action,jdbcType=INTEGER}
|
||||||
|
</if>
|
||||||
|
<if test="isValid != null">
|
||||||
|
AND r.IS_VALID=#{isValid,jdbcType=INTEGER}
|
||||||
|
</if>
|
||||||
|
<if test="isValid == null">
|
||||||
|
AND r.IS_VALID != -1
|
||||||
|
</if>
|
||||||
|
<if test="isAudit != null">
|
||||||
|
AND r.IS_AUDIT=#{isAudit,jdbcType=INTEGER}
|
||||||
|
</if>
|
||||||
|
<if test="creatorName != null and creatorName != ''">
|
||||||
|
AND CREATOR_NAME like concat(concat('%',#{creatorName,jdbcType=VARCHAR}),'%')
|
||||||
|
</if>
|
||||||
|
<if test="createTime != null and createTime != ''">
|
||||||
|
AND r.CREATE_TIME=#{createTime,jdbcType=TIMESTAMP}
|
||||||
|
</if>
|
||||||
|
<if test="editorName != null and editorName != ''">
|
||||||
|
AND EDITOR_NAME like concat(concat('%',#{editorName,jdbcType=VARCHAR}),'%')
|
||||||
|
</if>
|
||||||
|
<if test="editTime != null and editTime != ''">
|
||||||
|
AND r.EDIT_TIME=#{editTime,jdbcType=TIMESTAMP}
|
||||||
|
</if>
|
||||||
|
<if test="auditorName != null and auditorName != ''">
|
||||||
|
AND AUDITOR_NAME like concat(concat('%',#{auditorName,jdbcType=VARCHAR}),'%')
|
||||||
|
</if>
|
||||||
|
<if test="auditTime != null and auditTime != ''">
|
||||||
|
AND r.AUDIT_TIME=#{auditTime,jdbcType=TIMESTAMP}
|
||||||
|
</if>
|
||||||
|
<if test="serviceId != null">
|
||||||
|
AND r.SERVICE_ID=#{serviceId,jdbcType=INTEGER}
|
||||||
|
</if>
|
||||||
|
<if test="requestId != null">
|
||||||
|
AND r.REQUEST_ID=#{requestId,jdbcType=INTEGER}
|
||||||
|
</if>
|
||||||
|
<if test="compileId != null">
|
||||||
|
AND r.COMPILE_ID=#{compileId,jdbcType=INTEGER}
|
||||||
|
</if>
|
||||||
|
<if test="isAreaEffective != null">
|
||||||
|
AND r.IS_AREA_EFFECTIVE=#{isAreaEffective,jdbcType=INTEGER}
|
||||||
|
</if>
|
||||||
|
<if test="classify != null and classify != ''">
|
||||||
|
AND r.classify like concat(concat('%',#{classify,jdbcType=VARCHAR}),'%')
|
||||||
|
</if>
|
||||||
|
<if test="attribute != null and attribute != ''">
|
||||||
|
AND r.attribute like concat(concat('%',#{attribute,jdbcType=VARCHAR}),'%')
|
||||||
|
</if>
|
||||||
|
<if test="lable != null and lable != ''">
|
||||||
|
AND r.lable like concat(concat('%',#{lable,jdbcType=VARCHAR}),'%')
|
||||||
|
</if>
|
||||||
|
<if test="areaEffectiveIds != null and areaEffectiveIds != ''">
|
||||||
|
AND r.AREA_EFFECTIVE_IDS like concat(concat('%',#{areaEffectiveIds,jdbcType=VARCHAR}),'%')
|
||||||
|
</if>
|
||||||
|
<!-- 数据范围过滤 -->
|
||||||
|
${sqlMap.dsf}
|
||||||
|
</trim>
|
||||||
|
<choose>
|
||||||
|
<when test="page !=null and page.orderBy != null and page.orderBy != ''">
|
||||||
|
ORDER BY ${page.orderBy}
|
||||||
|
</when>
|
||||||
|
<otherwise>
|
||||||
|
ORDER BY CFG_ID desc
|
||||||
|
</otherwise>
|
||||||
|
</choose>
|
||||||
|
</select>
|
||||||
|
|
||||||
<select id="findAppPolicyList" resultMap="AppPolicyCfgMap" parameterType="com.nis.domain.configuration.AppPolicyCfg" >
|
<select id="findAppPolicyList" resultMap="AppPolicyCfgMap" parameterType="com.nis.domain.configuration.AppPolicyCfg" >
|
||||||
select
|
select
|
||||||
@@ -476,6 +681,9 @@
|
|||||||
left join sys_user u on r.auditor_id=u.id
|
left join sys_user u on r.auditor_id=u.id
|
||||||
left join request_info ri on r.request_id=ri.id
|
left join request_info ri on r.request_id=ri.id
|
||||||
<trim prefix="WHERE" prefixOverrides="AND |OR ">
|
<trim prefix="WHERE" prefixOverrides="AND |OR ">
|
||||||
|
<if test="page !=null and page.where != null and page.where != ''">
|
||||||
|
AND ${page.where}
|
||||||
|
</if>
|
||||||
<if test="functionId != null">
|
<if test="functionId != null">
|
||||||
AND r.function_id=#{functionId,jdbcType=INTEGER}
|
AND r.function_id=#{functionId,jdbcType=INTEGER}
|
||||||
</if>
|
</if>
|
||||||
@@ -616,7 +824,9 @@
|
|||||||
left join sys_user u on r.auditor_id=u.id
|
left join sys_user u on r.auditor_id=u.id
|
||||||
left join request_info ri on r.request_id=ri.id
|
left join request_info ri on r.request_id=ri.id
|
||||||
<trim prefix="WHERE" prefixOverrides="AND |OR ">
|
<trim prefix="WHERE" prefixOverrides="AND |OR ">
|
||||||
|
<if test="page !=null and page.where != null and page.where != ''">
|
||||||
|
AND ${page.where}
|
||||||
|
</if>
|
||||||
<if test="functionId != null">
|
<if test="functionId != null">
|
||||||
AND r.function_id=#{functionId,jdbcType=INTEGER}
|
AND r.function_id=#{functionId,jdbcType=INTEGER}
|
||||||
</if>
|
</if>
|
||||||
@@ -738,7 +948,9 @@
|
|||||||
left join sys_user u on r.auditor_id=u.id
|
left join sys_user u on r.auditor_id=u.id
|
||||||
left join request_info ri on r.request_id=ri.id
|
left join request_info ri on r.request_id=ri.id
|
||||||
<trim prefix="WHERE" prefixOverrides="AND |OR ">
|
<trim prefix="WHERE" prefixOverrides="AND |OR ">
|
||||||
|
<if test="page !=null and page.where != null and page.where != ''">
|
||||||
|
AND ${page.where}
|
||||||
|
</if>
|
||||||
<if test="functionId != null">
|
<if test="functionId != null">
|
||||||
AND r.function_id=#{functionId,jdbcType=INTEGER}
|
AND r.function_id=#{functionId,jdbcType=INTEGER}
|
||||||
</if>
|
</if>
|
||||||
@@ -839,6 +1051,110 @@
|
|||||||
left join sys_user u on r.auditor_id=u.id
|
left join sys_user u on r.auditor_id=u.id
|
||||||
left join request_info ri on r.request_id=ri.id
|
left join request_info ri on r.request_id=ri.id
|
||||||
<trim prefix="WHERE" prefixOverrides="AND |OR ">
|
<trim prefix="WHERE" prefixOverrides="AND |OR ">
|
||||||
|
<if test="page !=null and page.where != null and page.where != ''">
|
||||||
|
AND ${page.where}
|
||||||
|
</if>
|
||||||
|
<if test="functionId != null">
|
||||||
|
AND r.function_id=#{functionId,jdbcType=INTEGER}
|
||||||
|
</if>
|
||||||
|
<if test="cfgId != null">
|
||||||
|
AND r.CFG_ID=#{cfgId,jdbcType=BIGINT}
|
||||||
|
</if>
|
||||||
|
<if test="cfgDesc != null and cfgDesc != ''">
|
||||||
|
AND r.CFG_DESC like concat(concat('%',#{cfgDesc,jdbcType=VARCHAR}),'%')
|
||||||
|
</if>
|
||||||
|
<if test="specServiceId != null">
|
||||||
|
AND r.spec_service_id=#{specServiceId,jdbcType=INTEGER}
|
||||||
|
</if>
|
||||||
|
<if test="cfgType != null and cfgType != ''">
|
||||||
|
AND r.CFG_TYPE like concat(concat('%',#{cfgType,jdbcType=VARCHAR}),'%')
|
||||||
|
</if>
|
||||||
|
<if test="domain != null and domain != ''">
|
||||||
|
AND r.DOMAIN like concat(concat('%',#{domain,jdbcType=VARCHAR}),'%')
|
||||||
|
</if>
|
||||||
|
<if test="action != null">
|
||||||
|
AND r.ACTION=#{action,jdbcType=INTEGER}
|
||||||
|
</if>
|
||||||
|
<if test="isValid != null">
|
||||||
|
AND r.IS_VALID=#{isValid,jdbcType=INTEGER}
|
||||||
|
</if>
|
||||||
|
<if test="isValid == null">
|
||||||
|
AND r.IS_VALID != -1
|
||||||
|
</if>
|
||||||
|
<if test="isAudit != null">
|
||||||
|
AND r.IS_AUDIT=#{isAudit,jdbcType=INTEGER}
|
||||||
|
</if>
|
||||||
|
<if test="creatorName != null and creatorName != ''">
|
||||||
|
AND CREATOR_NAME like concat(concat('%',#{creatorName,jdbcType=VARCHAR}),'%')
|
||||||
|
</if>
|
||||||
|
<if test="createTime != null and createTime != ''">
|
||||||
|
AND r.CREATE_TIME=#{createTime,jdbcType=TIMESTAMP}
|
||||||
|
</if>
|
||||||
|
<if test="editorName != null and editorName != ''">
|
||||||
|
AND EDITOR_NAME like concat(concat('%',#{editorName,jdbcType=VARCHAR}),'%')
|
||||||
|
</if>
|
||||||
|
<if test="editTime != null and editTime != ''">
|
||||||
|
AND r.EDIT_TIME=#{editTime,jdbcType=TIMESTAMP}
|
||||||
|
</if>
|
||||||
|
<if test="auditorName != null and auditorName != ''">
|
||||||
|
AND AUDITOR_NAME like concat(concat('%',#{auditorName,jdbcType=VARCHAR}),'%')
|
||||||
|
</if>
|
||||||
|
<if test="auditTime != null and auditTime != ''">
|
||||||
|
AND r.AUDIT_TIME=#{auditTime,jdbcType=TIMESTAMP}
|
||||||
|
</if>
|
||||||
|
<if test="serviceId != null">
|
||||||
|
AND r.SERVICE_ID=#{serviceId,jdbcType=INTEGER}
|
||||||
|
</if>
|
||||||
|
<if test="requestId != null">
|
||||||
|
AND r.REQUEST_ID=#{requestId,jdbcType=INTEGER}
|
||||||
|
</if>
|
||||||
|
<if test="compileId != null">
|
||||||
|
AND r.COMPILE_ID=#{compileId,jdbcType=INTEGER}
|
||||||
|
</if>
|
||||||
|
<if test="isAreaEffective != null">
|
||||||
|
AND r.IS_AREA_EFFECTIVE=#{isAreaEffective,jdbcType=INTEGER}
|
||||||
|
</if>
|
||||||
|
<if test="classify != null and classify != ''">
|
||||||
|
AND r.classify like concat(concat('%',#{classify,jdbcType=VARCHAR}),'%')
|
||||||
|
</if>
|
||||||
|
<if test="attribute != null and attribute != ''">
|
||||||
|
AND r.attribute like concat(concat('%',#{attribute,jdbcType=VARCHAR}),'%')
|
||||||
|
</if>
|
||||||
|
<if test="lable != null and lable != ''">
|
||||||
|
AND r.lable like concat(concat('%',#{lable,jdbcType=VARCHAR}),'%')
|
||||||
|
</if>
|
||||||
|
<if test="areaEffectiveIds != null and areaEffectiveIds != ''">
|
||||||
|
AND r.AREA_EFFECTIVE_IDS like concat(concat('%',#{areaEffectiveIds,jdbcType=VARCHAR}),'%')
|
||||||
|
</if>
|
||||||
|
<!-- 数据范围过滤 -->
|
||||||
|
${sqlMap.dsf}
|
||||||
|
</trim>
|
||||||
|
<choose>
|
||||||
|
<when test="page !=null and page.orderBy != null and page.orderBy != ''">
|
||||||
|
ORDER BY ${page.orderBy}
|
||||||
|
</when>
|
||||||
|
<otherwise>
|
||||||
|
ORDER BY CFG_ID desc
|
||||||
|
</otherwise>
|
||||||
|
</choose>
|
||||||
|
</select>
|
||||||
|
<!-- 主题网站列表 -->
|
||||||
|
<select id="findAppTopicDomainList" resultMap="AppTopicDomainCfgMap">
|
||||||
|
select
|
||||||
|
<include refid="AppTopicDomainCfg_Column"/>
|
||||||
|
<trim prefix="," prefixOverrides=",">
|
||||||
|
, s.name as creator_name,e.name as editor_name,u.name as auditor_name
|
||||||
|
,ri.request_title as requestName
|
||||||
|
</trim>
|
||||||
|
from app_topic_domain_cfg r
|
||||||
|
left join sys_user s on r.creator_id=s.id
|
||||||
|
left join sys_user e on r.editor_id=e.id
|
||||||
|
left join sys_user u on r.auditor_id=u.id
|
||||||
|
left join request_info ri on r.request_id=ri.id
|
||||||
|
<trim prefix="WHERE" prefixOverrides="AND |OR ">
|
||||||
|
<if test="page !=null and page.where != null and page.where != ''">
|
||||||
|
AND ${page.where}
|
||||||
|
</if>
|
||||||
<if test="functionId != null">
|
<if test="functionId != null">
|
||||||
AND r.function_id=#{functionId,jdbcType=INTEGER}
|
AND r.function_id=#{functionId,jdbcType=INTEGER}
|
||||||
</if>
|
</if>
|
||||||
@@ -936,6 +1252,9 @@
|
|||||||
left join sys_user u on r.auditor_id=u.id
|
left join sys_user u on r.auditor_id=u.id
|
||||||
left join request_info ri on r.request_id=ri.id
|
left join request_info ri on r.request_id=ri.id
|
||||||
<trim prefix="WHERE" prefixOverrides="AND |OR ">
|
<trim prefix="WHERE" prefixOverrides="AND |OR ">
|
||||||
|
<if test="page !=null and page.where != null and page.where != ''">
|
||||||
|
AND ${page.where}
|
||||||
|
</if>
|
||||||
<if test="functionId != null">
|
<if test="functionId != null">
|
||||||
AND r.function_id=#{functionId,jdbcType=INTEGER}
|
AND r.function_id=#{functionId,jdbcType=INTEGER}
|
||||||
</if>
|
</if>
|
||||||
@@ -1033,6 +1352,9 @@
|
|||||||
left join sys_user u on r.auditor_id=u.id
|
left join sys_user u on r.auditor_id=u.id
|
||||||
left join request_info ri on r.request_id=ri.id
|
left join request_info ri on r.request_id=ri.id
|
||||||
<trim prefix="WHERE" prefixOverrides="AND |OR ">
|
<trim prefix="WHERE" prefixOverrides="AND |OR ">
|
||||||
|
<if test="page !=null and page.where != null and page.where != ''">
|
||||||
|
AND ${page.where}
|
||||||
|
</if>
|
||||||
<if test="functionId != null">
|
<if test="functionId != null">
|
||||||
AND r.function_id=#{functionId,jdbcType=INTEGER}
|
AND r.function_id=#{functionId,jdbcType=INTEGER}
|
||||||
</if>
|
</if>
|
||||||
@@ -1125,7 +1447,9 @@
|
|||||||
left join sys_user u on r.auditor_id=u.id
|
left join sys_user u on r.auditor_id=u.id
|
||||||
left join request_info ri on r.request_id=ri.id
|
left join request_info ri on r.request_id=ri.id
|
||||||
<trim prefix="WHERE" prefixOverrides="AND |OR ">
|
<trim prefix="WHERE" prefixOverrides="AND |OR ">
|
||||||
|
<if test="page !=null and page.where != null and page.where != ''">
|
||||||
|
AND ${page.where}
|
||||||
|
</if>
|
||||||
<if test="functionId != null">
|
<if test="functionId != null">
|
||||||
AND r.function_id=#{functionId,jdbcType=INTEGER}
|
AND r.function_id=#{functionId,jdbcType=INTEGER}
|
||||||
</if>
|
</if>
|
||||||
@@ -1226,7 +1550,9 @@
|
|||||||
left join sys_user u on r.auditor_id=u.id
|
left join sys_user u on r.auditor_id=u.id
|
||||||
left join request_info ri on r.request_id=ri.id
|
left join request_info ri on r.request_id=ri.id
|
||||||
<trim prefix="WHERE" prefixOverrides="AND |OR ">
|
<trim prefix="WHERE" prefixOverrides="AND |OR ">
|
||||||
|
<if test="page !=null and page.where != null and page.where != ''">
|
||||||
|
AND ${page.where}
|
||||||
|
</if>
|
||||||
<if test="functionId != null">
|
<if test="functionId != null">
|
||||||
AND r.function_id=#{functionId,jdbcType=INTEGER}
|
AND r.function_id=#{functionId,jdbcType=INTEGER}
|
||||||
</if>
|
</if>
|
||||||
@@ -1315,6 +1641,22 @@
|
|||||||
</choose>
|
</choose>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertAppTcpCfg" parameterType="com.nis.domain.configuration.AppTcpCfg" >
|
||||||
|
<selectKey resultType="java.lang.Long" order="AFTER" keyProperty="cfgId">
|
||||||
|
SELECT LAST_INSERT_ID()
|
||||||
|
</selectKey>
|
||||||
|
insert into app_session_cfg (
|
||||||
|
APP_CODE,BEHAV_CODE,SPEC_SERVICE_ID,CFG_DESC,ACTION,IS_VALID,IS_AUDIT,
|
||||||
|
CREATOR_ID,CREATE_TIME,EDITOR_ID,EDIT_TIME,AUDITOR_ID,AUDIT_TIME,
|
||||||
|
SERVICE_ID,REQUEST_ID,COMPILE_ID,IS_AREA_EFFECTIVE,CLASSIFY,
|
||||||
|
ATTRIBUTE,LABLE,AREA_EFFECTIVE_IDS,RATELIMIT,FUNCTION_ID,CFG_TYPE,CFG_REGION_CODE,
|
||||||
|
low_boundary,up_boundary,EXPR_TYPE,MATCH_METHOD,IS_HEXBIN,DO_LOG
|
||||||
|
)values (
|
||||||
|
<include refid="AppCommonCfg_Value_List" />,
|
||||||
|
#{lowBoundary,jdbcType=INTEGER},#{upBoundary,jdbcType=INTEGER},
|
||||||
|
#{exprType,jdbcType=INTEGER},#{matchMethod,jdbcType=INTEGER},#{isHexbin,jdbcType=INTEGER},#{doLog,jdbcType=INTEGER}
|
||||||
|
)
|
||||||
|
</insert>
|
||||||
<insert id="insertAppPolicyCfg" parameterType="com.nis.domain.configuration.AppPolicyCfg" >
|
<insert id="insertAppPolicyCfg" parameterType="com.nis.domain.configuration.AppPolicyCfg" >
|
||||||
<selectKey resultType="java.lang.Long" order="AFTER" keyProperty="cfgId">
|
<selectKey resultType="java.lang.Long" order="AFTER" keyProperty="cfgId">
|
||||||
SELECT LAST_INSERT_ID()
|
SELECT LAST_INSERT_ID()
|
||||||
@@ -1330,7 +1672,7 @@
|
|||||||
<include refid="AppCommonCfg_Value_List" />,
|
<include refid="AppCommonCfg_Value_List" />,
|
||||||
#{exprType,jdbcType=INTEGER},#{matchMethod,jdbcType=INTEGER},#{isHexbin,jdbcType=INTEGER}
|
#{exprType,jdbcType=INTEGER},#{matchMethod,jdbcType=INTEGER},#{isHexbin,jdbcType=INTEGER}
|
||||||
,#{userRegion1,jdbcType=VARCHAR} ,#{userRegion2,jdbcType=VARCHAR} ,#{userRegion3,jdbcType=VARCHAR}
|
,#{userRegion1,jdbcType=VARCHAR} ,#{userRegion2,jdbcType=VARCHAR} ,#{userRegion3,jdbcType=VARCHAR}
|
||||||
,#{userRegion4,jdbcType=VARCHAR} ,#{userRegion5,jdbcType=VARCHAR}
|
,#{userRegion4,jdbcType=VARCHAR} ,#{userRegion5,jdbcType=VARCHAR} ,#{doLog,jdbcType=INTEGER}
|
||||||
)
|
)
|
||||||
</insert>
|
</insert>
|
||||||
<insert id="insertAppIpCfg" parameterType="com.nis.domain.configuration.AppIpCfg" >
|
<insert id="insertAppIpCfg" parameterType="com.nis.domain.configuration.AppIpCfg" >
|
||||||
@@ -1383,6 +1725,23 @@
|
|||||||
#{isHexbin,jdbcType=INTEGER},#{doLog,jdbcType=INTEGER}
|
#{isHexbin,jdbcType=INTEGER},#{doLog,jdbcType=INTEGER}
|
||||||
)
|
)
|
||||||
</insert>
|
</insert>
|
||||||
|
<!-- 主题网站新增 -->
|
||||||
|
<insert id="insertAppTopicDomainCfg" parameterType="com.nis.domain.configuration.AppTopicDomainCfg" >
|
||||||
|
<selectKey resultType="java.lang.Long" order="AFTER" keyProperty="cfgId">
|
||||||
|
SELECT LAST_INSERT_ID()
|
||||||
|
</selectKey>
|
||||||
|
insert into app_topic_domain_cfg (
|
||||||
|
TOPIC,BEHAV_CODE,SPEC_SERVICE_ID,CFG_DESC,ACTION,IS_VALID,IS_AUDIT,
|
||||||
|
CREATOR_ID,CREATE_TIME,EDITOR_ID,EDIT_TIME,AUDITOR_ID,AUDIT_TIME,
|
||||||
|
SERVICE_ID,REQUEST_ID,COMPILE_ID,IS_AREA_EFFECTIVE,CLASSIFY,
|
||||||
|
ATTRIBUTE,LABLE,AREA_EFFECTIVE_IDS,RATELIMIT,FUNCTION_ID,CFG_TYPE,CFG_REGION_CODE,
|
||||||
|
DOMAIN,EXPR_TYPE,MATCH_METHOD,IS_HEXBIN,DO_LOG
|
||||||
|
)values (
|
||||||
|
<include refid="AppTopicCommonCfg_Value_List" />,
|
||||||
|
#{domain,jdbcType=VARCHAR},#{exprType,jdbcType=INTEGER},#{matchMethod,jdbcType=INTEGER},
|
||||||
|
#{isHexbin,jdbcType=INTEGER},#{doLog,jdbcType=INTEGER}
|
||||||
|
)
|
||||||
|
</insert>
|
||||||
<insert id="insertAppByteCfg" parameterType="com.nis.domain.configuration.AppByteCfg" >
|
<insert id="insertAppByteCfg" parameterType="com.nis.domain.configuration.AppByteCfg" >
|
||||||
<selectKey resultType="java.lang.Long" order="AFTER" keyProperty="cfgId">
|
<selectKey resultType="java.lang.Long" order="AFTER" keyProperty="cfgId">
|
||||||
SELECT LAST_INSERT_ID()
|
SELECT LAST_INSERT_ID()
|
||||||
@@ -1933,6 +2292,106 @@
|
|||||||
</set>
|
</set>
|
||||||
where cfg_id = #{cfgId,jdbcType=BIGINT}
|
where cfg_id = #{cfgId,jdbcType=BIGINT}
|
||||||
</update>
|
</update>
|
||||||
|
<!-- 主题网站 -->
|
||||||
|
<update id="updateAppTopicDomainCfg" parameterType="com.nis.domain.configuration.AppTopicDomainCfg" >
|
||||||
|
update app_topic_domain_cfg
|
||||||
|
<set >
|
||||||
|
<trim suffixOverrides=",">
|
||||||
|
<if test="cfgDesc != null and cfgDesc != ''" >
|
||||||
|
cfg_desc = #{cfgDesc,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="topic != null">
|
||||||
|
TOPIC = #{topic,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="behavCode != null">
|
||||||
|
BEHAV_CODE = #{behavCode,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="specServiceId != null">
|
||||||
|
SPEC_SERVICE_ID = #{specServiceId,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="action != null" >
|
||||||
|
action = #{action,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="isValid != null" >
|
||||||
|
is_valid = #{isValid,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="isAudit != null" >
|
||||||
|
is_audit = #{isAudit,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="creatorId != null" >
|
||||||
|
creator_id = #{creatorId,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="createTime != null and createTime != ''" >
|
||||||
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="editorId != null" >
|
||||||
|
editor_id = #{editorId,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="editTime != null and editTime != ''" >
|
||||||
|
edit_time = #{editTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="auditorId != null" >
|
||||||
|
auditor_id = #{auditorId,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="auditTime != null and auditTime != ''" >
|
||||||
|
audit_time = #{auditTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="serviceId != null" >
|
||||||
|
service_id = #{serviceId,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="requestId != null" >
|
||||||
|
request_id = #{requestId,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="compileId != null" >
|
||||||
|
compile_id = #{compileId,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="isAreaEffective != null" >
|
||||||
|
is_area_effective = #{isAreaEffective,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="classify != null and classify != ''" >
|
||||||
|
classify = #{classify,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="attribute != null and attribute != ''" >
|
||||||
|
attribute = #{attribute,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="lable != null and lable != ''" >
|
||||||
|
lable = #{lable,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="areaEffectiveIds != null" >
|
||||||
|
area_effective_ids = #{areaEffectiveIds,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="functionId != null" >
|
||||||
|
function_id = #{functionId,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="ratelimit != null">
|
||||||
|
RATELIMIT=#{ratelimit,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="cfgRegionCode != null">
|
||||||
|
CFG_REGION_CODE=#{cfgRegionCode,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="cfgType != null and cfgType != ''">
|
||||||
|
CFG_TYPE =#{cfgType,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="domain != null and domain != ''">
|
||||||
|
domain=#{domain,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="exprType != null">
|
||||||
|
expr_type=#{exprType,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="matchMethod != null">
|
||||||
|
match_method=#{matchMethod,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="isHexbin != null">
|
||||||
|
is_hexbin=#{isHexbin,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<!-- <if test="doLog != null" >
|
||||||
|
do_log = #{doLog,jdbcType=INTEGER},
|
||||||
|
</if> -->
|
||||||
|
</trim>
|
||||||
|
</set>
|
||||||
|
where cfg_id = #{cfgId,jdbcType=BIGINT}
|
||||||
|
</update>
|
||||||
|
|
||||||
<update id="updateAppByteCfg" parameterType="com.nis.domain.configuration.AppByteCfg" >
|
<update id="updateAppByteCfg" parameterType="com.nis.domain.configuration.AppByteCfg" >
|
||||||
update app_byte_cfg
|
update app_byte_cfg
|
||||||
<set >
|
<set >
|
||||||
@@ -2267,6 +2726,108 @@
|
|||||||
|
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
|
<update id="updateAppTcpCfg" parameterType="com.nis.domain.configuration.AppTcpCfg" >
|
||||||
|
update app_session_cfg
|
||||||
|
<set >
|
||||||
|
<trim suffixOverrides=",">
|
||||||
|
<if test="cfgDesc != null and cfgDesc != ''" >
|
||||||
|
cfg_desc = #{cfgDesc,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="appCode != null">
|
||||||
|
APP_CODE = #{appCode,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="behavCode != null">
|
||||||
|
BEHAV_CODE = #{behavCode,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="specServiceId != null">
|
||||||
|
SPEC_SERVICE_ID = #{specServiceId,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="action != null" >
|
||||||
|
action = #{action,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="isValid != null" >
|
||||||
|
is_valid = #{isValid,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="isAudit != null" >
|
||||||
|
is_audit = #{isAudit,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="creatorId != null" >
|
||||||
|
creator_id = #{creatorId,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="createTime != null and createTime != ''" >
|
||||||
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="editorId != null" >
|
||||||
|
editor_id = #{editorId,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="editTime != null and editTime != ''" >
|
||||||
|
edit_time = #{editTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="auditorId != null" >
|
||||||
|
auditor_id = #{auditorId,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="auditTime != null and auditTime != ''" >
|
||||||
|
audit_time = #{auditTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="serviceId != null" >
|
||||||
|
service_id = #{serviceId,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="requestId != null" >
|
||||||
|
request_id = #{requestId,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="compileId != null" >
|
||||||
|
compile_id = #{compileId,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="isAreaEffective != null" >
|
||||||
|
is_area_effective = #{isAreaEffective,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="classify != null and classify != ''" >
|
||||||
|
classify = #{classify,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="attribute != null and attribute != ''" >
|
||||||
|
attribute = #{attribute,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="lable != null and lable != ''" >
|
||||||
|
lable = #{lable,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="areaEffectiveIds != null" >
|
||||||
|
area_effective_ids = #{areaEffectiveIds,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="functionId != null" >
|
||||||
|
function_id = #{functionId,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="ratelimit != null">
|
||||||
|
RATELIMIT=#{ratelimit,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="cfgRegionCode != null">
|
||||||
|
CFG_REGION_CODE=#{cfgRegionCode,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="cfgType != null and cfgType != ''">
|
||||||
|
CFG_TYPE =#{cfgType,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="lowBoundary != null and lowBoundary != ''">
|
||||||
|
low_boundary=#{lowBoundary,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="upBoundary != null and upBoundary != ''">
|
||||||
|
up_boundary=#{upBoundary,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="exprType != null">
|
||||||
|
expr_type=#{exprType,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="matchMethod != null">
|
||||||
|
match_method=#{matchMethod,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="isHexbin != null">
|
||||||
|
is_hexbin=#{isHexbin,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="doLog != null">
|
||||||
|
do_log=#{doLog,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
</set>
|
||||||
|
where cfg_id = #{cfgId,jdbcType=BIGINT}
|
||||||
|
</update>
|
||||||
|
|
||||||
<!-- 删除APP策略IP子配置 -->
|
<!-- 删除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}
|
||||||
|
|||||||
@@ -41,6 +41,7 @@ public interface BgpCfgDao extends CrudDao<CfgIndexInfo>{
|
|||||||
public void saveIpPortCfg(IpPortCfg entity);
|
public void saveIpPortCfg(IpPortCfg entity);
|
||||||
public void updateBgpAsCfg(CfgIndexInfo entity);
|
public void updateBgpAsCfg(CfgIndexInfo entity);
|
||||||
public void updateSubscribeIdCfg(CfgIndexInfo entity);
|
public void updateSubscribeIdCfg(CfgIndexInfo entity);
|
||||||
|
public void deleteSubscribeIdCfg(CfgIndexInfo entity);
|
||||||
//public void saveHttpUrlCfg(HttpUrlCfg entity);
|
//public void saveHttpUrlCfg(HttpUrlCfg entity);
|
||||||
public void deleteHttpIpCfg(CfgIndexInfo entity);
|
public void deleteHttpIpCfg(CfgIndexInfo entity);
|
||||||
//public void deleteHttpUrlCfg(CfgIndexInfo entity);
|
//public void deleteHttpUrlCfg(CfgIndexInfo entity);
|
||||||
|
|||||||
@@ -639,6 +639,10 @@
|
|||||||
delete from ntc_bgp_as_cfg where compile_id=#{compileId} and function_id=#{functionId}
|
delete from ntc_bgp_as_cfg where compile_id=#{compileId} and function_id=#{functionId}
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteSubscribeIdCfg" >
|
||||||
|
delete from ntc_subscribe_id_cfg where compile_id=#{compileId} and function_id=#{functionId}
|
||||||
|
</delete>
|
||||||
|
|
||||||
<update id="updateCfgValid" parameterType="com.nis.domain.configuration.BaseCfg">
|
<update id="updateCfgValid" parameterType="com.nis.domain.configuration.BaseCfg">
|
||||||
update ${tableName} set is_valid = #{isValid,jdbcType=INTEGER},
|
update ${tableName} set is_valid = #{isValid,jdbcType=INTEGER},
|
||||||
editor_id = #{editorId,jdbcType=INTEGER} ,
|
editor_id = #{editorId,jdbcType=INTEGER} ,
|
||||||
|
|||||||
@@ -38,6 +38,8 @@ public interface FileTransferCfgDao extends CrudDao<CfgIndexInfo> {
|
|||||||
public void auditCfg(BaseCfg entity);
|
public void auditCfg(BaseCfg entity);
|
||||||
public FileDigestCfg getFileDigest(Long id);
|
public FileDigestCfg getFileDigest(Long id);
|
||||||
public void updateFileDigestCfg(FileDigestCfg entity);
|
public void updateFileDigestCfg(FileDigestCfg entity);
|
||||||
|
public void deleteFileDigestSubscribeIdCfg(FileDigestCfg entity);
|
||||||
|
public List<NtcSubscribeIdCfg> getFileDigestSubscribeidList(FileDigestCfg entity);
|
||||||
|
|
||||||
// P2P域配置新增
|
// P2P域配置新增
|
||||||
public void saveP2pHashCfg(BaseStringCfg cfg);
|
public void saveP2pHashCfg(BaseStringCfg cfg);
|
||||||
@@ -53,4 +55,5 @@ public interface FileTransferCfgDao extends CrudDao<CfgIndexInfo> {
|
|||||||
public void deleteP2pHashCfg(CfgIndexInfo entity);
|
public void deleteP2pHashCfg(CfgIndexInfo entity);
|
||||||
public void deleteP2pKeywordCfg(CfgIndexInfo entity);
|
public void deleteP2pKeywordCfg(CfgIndexInfo entity);
|
||||||
public void deleteP2pSubscribeIdCfg(CfgIndexInfo entity);
|
public void deleteP2pSubscribeIdCfg(CfgIndexInfo entity);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1051,11 +1051,14 @@
|
|||||||
<delete id="deleteP2pKeywordCfg">
|
<delete id="deleteP2pKeywordCfg">
|
||||||
delete from p2p_keyword_cfg where compile_id=#{compileId} and function_id=#{functionId}
|
delete from p2p_keyword_cfg where compile_id=#{compileId} and function_id=#{functionId}
|
||||||
</delete>
|
</delete>
|
||||||
<!-- 删除p2pSubscribeId配置 -->
|
<!-- 删除p2pSubscribeId配置 -->
|
||||||
<delete id="deleteP2pSubscribeIdCfg">
|
<delete id="deleteP2pSubscribeIdCfg">
|
||||||
delete from ntc_subscribe_id_cfg where compile_id=#{compileId} and function_id=#{functionId}
|
delete from ntc_subscribe_id_cfg where compile_id=#{compileId} and function_id=#{functionId}
|
||||||
</delete>
|
</delete>
|
||||||
|
<!-- 删除FileDigest SubscribeId配置 -->
|
||||||
|
<delete id="deleteFileDigestSubscribeIdCfg">
|
||||||
|
delete from ntc_subscribe_id_cfg where compile_id=#{compileId} and function_id=#{functionId}
|
||||||
|
</delete>
|
||||||
|
|
||||||
<!-- File Digest Cfg -->
|
<!-- File Digest Cfg -->
|
||||||
<select id="getFileDigestList" resultMap="digestCfgMap" parameterType="com.nis.domain.configuration.FileDigestCfg" >
|
<select id="getFileDigestList" resultMap="digestCfgMap" parameterType="com.nis.domain.configuration.FileDigestCfg" >
|
||||||
@@ -1151,6 +1154,15 @@
|
|||||||
FROM file_digest_cfg a where cfg_id=#{cfgId}
|
FROM file_digest_cfg a where cfg_id=#{cfgId}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<select id="getFileDigestSubscribeidList" resultMap="stringCfgMap" parameterType="com.nis.domain.configuration.FileDigestCfg">
|
||||||
|
SELECT
|
||||||
|
<include refid="StrCfg_Column" />
|
||||||
|
FROM ntc_subscribe_id_cfg a where compile_id=#{compileId} and function_id=#{functionId}
|
||||||
|
<!-- <if test="cfgType != null and cfgType != ''">
|
||||||
|
and a.cfg_type =#{cfgType,jdbcType=VARCHAR}
|
||||||
|
</if> -->
|
||||||
|
</select>
|
||||||
|
|
||||||
<update id="updateFileDigestCfg" parameterType="com.nis.domain.configuration.FileDigestCfg" >
|
<update id="updateFileDigestCfg" parameterType="com.nis.domain.configuration.FileDigestCfg" >
|
||||||
update file_digest_cfg
|
update file_digest_cfg
|
||||||
<set >
|
<set >
|
||||||
|
|||||||
@@ -23,6 +23,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="do_log" property="doLog" jdbcType="INTEGER" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
<resultMap id="ipPortMap" type="com.nis.domain.configuration.IpPortCfg" >
|
<resultMap id="ipPortMap" type="com.nis.domain.configuration.IpPortCfg" >
|
||||||
<id column="cfg_id" property="cfgId" jdbcType="BIGINT" />
|
<id column="cfg_id" property="cfgId" jdbcType="BIGINT" />
|
||||||
@@ -121,7 +122,7 @@
|
|||||||
a.CFG_ID,a.CFG_DESC,a.ACTION,a.IS_VALID,a.IS_AUDIT,
|
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.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.ATTRIBUTE,a.LABLE,a.AREA_EFFECTIVE_IDS,a.function_id,do_log
|
||||||
</sql>
|
</sql>
|
||||||
<sql id="IpCfg_Column" >
|
<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.cfg_id,a.cfg_desc,a.ip_type,a.src_ip_address,a.ip_pattern,a.port_pattern,a.src_port
|
||||||
@@ -301,7 +302,8 @@
|
|||||||
ATTRIBUTE,
|
ATTRIBUTE,
|
||||||
LABLE,
|
LABLE,
|
||||||
AREA_EFFECTIVE_IDS,
|
AREA_EFFECTIVE_IDS,
|
||||||
function_id
|
function_id,
|
||||||
|
do_log
|
||||||
)values (
|
)values (
|
||||||
#{cfgDesc,jdbcType=VARCHAR},
|
#{cfgDesc,jdbcType=VARCHAR},
|
||||||
#{action,jdbcType=INTEGER},
|
#{action,jdbcType=INTEGER},
|
||||||
@@ -321,7 +323,8 @@
|
|||||||
#{attribute,jdbcType=VARCHAR},
|
#{attribute,jdbcType=VARCHAR},
|
||||||
#{lable,jdbcType=VARCHAR},
|
#{lable,jdbcType=VARCHAR},
|
||||||
#{areaEffectiveIds,jdbcType=VARCHAR},
|
#{areaEffectiveIds,jdbcType=VARCHAR},
|
||||||
#{functionId,jdbcType=INTEGER}
|
#{functionId,jdbcType=INTEGER},
|
||||||
|
#{doLog,jdbcType=INTEGER}
|
||||||
)
|
)
|
||||||
</insert>
|
</insert>
|
||||||
<!-- insert ip_port_cfg表信息 -->
|
<!-- insert ip_port_cfg表信息 -->
|
||||||
@@ -445,6 +448,9 @@
|
|||||||
</if>
|
</if>
|
||||||
<if test="functionId != null" >
|
<if test="functionId != null" >
|
||||||
function_id = #{functionId,jdbcType=INTEGER},
|
function_id = #{functionId,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="doLog != null" >
|
||||||
|
do_log = #{doLog,jdbcType=INTEGER},
|
||||||
</if>
|
</if>
|
||||||
</trim>
|
</trim>
|
||||||
</set>
|
</set>
|
||||||
|
|||||||
@@ -50,5 +50,6 @@ public interface SpecificServiceCfgDao extends CrudDao<SpecificServiceCfg> {
|
|||||||
Integer getParentType(Integer specServiceId);
|
Integer getParentType(Integer specServiceId);
|
||||||
Integer getParentCode(Integer specServiceId);
|
Integer getParentCode(Integer specServiceId);
|
||||||
SpecificServiceCfg getRepeat(@Param("specServiceCode")Integer code, @Param("cfgType")Integer cfgType,@Param("parentId")Integer parentId);
|
SpecificServiceCfg getRepeat(@Param("specServiceCode")Integer code, @Param("cfgType")Integer cfgType,@Param("parentId")Integer parentId);
|
||||||
|
Integer getMaxServiceCode(@Param("maxCode")Integer code, @Param("cfgType")Integer cfgType,@Param("addFlag")Integer addFlag);
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -12,6 +12,7 @@
|
|||||||
<result column="is_leaf" property="isLeaf" jdbcType="INTEGER" />
|
<result column="is_leaf" property="isLeaf" jdbcType="INTEGER" />
|
||||||
<result column="group_id" property="groupId" jdbcType="INTEGER" />
|
<result column="group_id" property="groupId" jdbcType="INTEGER" />
|
||||||
<result column="cfg_type" property="cfgType" jdbcType="INTEGER" />
|
<result column="cfg_type" property="cfgType" jdbcType="INTEGER" />
|
||||||
|
<result column="add_flag" property="addFlag" jdbcType="INTEGER" />
|
||||||
<result column="business_type" property="businessType" jdbcType="VARCHAR" />
|
<result column="business_type" property="businessType" jdbcType="VARCHAR" />
|
||||||
<!-- 父id -->
|
<!-- 父id -->
|
||||||
<association property="parent" javaType="com.nis.domain.specific.SpecificServiceCfg">
|
<association property="parent" javaType="com.nis.domain.specific.SpecificServiceCfg">
|
||||||
@@ -30,7 +31,8 @@
|
|||||||
s.is_leaf AS isLeaf,
|
s.is_leaf AS isLeaf,
|
||||||
s.group_id AS groupId,
|
s.group_id AS groupId,
|
||||||
s.cfg_type AS cfgType,
|
s.cfg_type AS cfgType,
|
||||||
s.business_type AS businessType
|
s.business_type AS businessType,
|
||||||
|
s.add_flag AS addFlag
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
|
|
||||||
@@ -152,6 +154,9 @@
|
|||||||
<if test="specificServiceCfg.endDate != null" >
|
<if test="specificServiceCfg.endDate != null" >
|
||||||
AND op_time < #{specificServiceCfg.endDate}
|
AND op_time < #{specificServiceCfg.endDate}
|
||||||
</if>
|
</if>
|
||||||
|
<if test="specificServiceCfg.addFlag != null and specificServiceCfg.addFlag != '' ">
|
||||||
|
AND add_flag = #{specificServiceCfg.addFlag}
|
||||||
|
</if>
|
||||||
<choose>
|
<choose>
|
||||||
<when test="orderBy != null and orderBy != '' ">
|
<when test="orderBy != null and orderBy != '' ">
|
||||||
ORDER BY ${orderBy}
|
ORDER BY ${orderBy}
|
||||||
@@ -161,11 +166,23 @@
|
|||||||
</otherwise>
|
</otherwise>
|
||||||
</choose>
|
</choose>
|
||||||
</select>
|
</select>
|
||||||
|
<select id="getMaxServiceCode" resultType="java.lang.Integer" >
|
||||||
|
SELECT MAX(spec_service_code) FROM specific_service_cfg WHERE is_valid=1 AND spec_service_code < #{maxCode}
|
||||||
|
<if test="cfgType != null and cfgType != '' ">
|
||||||
|
AND cfg_type = #{cfgType}
|
||||||
|
</if>
|
||||||
|
<if test="addFlag != null and addFlag != '' ">
|
||||||
|
AND add_flag = #{addFlag}
|
||||||
|
</if>
|
||||||
|
</select>
|
||||||
<!-- 新增 -->
|
<!-- 新增 -->
|
||||||
<insert id="insert" parameterType="com.nis.domain.specific.SpecificServiceCfg" useGeneratedKeys="true">
|
<insert id="insert" parameterType="com.nis.domain.specific.SpecificServiceCfg" useGeneratedKeys="true">
|
||||||
insert into specific_service_cfg (spec_service_code,spec_service_name,spec_service_desc,is_valid, op_time, parent_id,is_leaf,group_id,cfg_type,business_type)
|
<selectKey resultType="java.lang.Integer" order="AFTER" keyProperty="specServiceId">
|
||||||
values(#{specServiceCode},#{specServiceName},#{specServiceDesc},#{isValid},#{opTime},#{parent.specServiceId},#{isLeaf},#{groupId},#{cfgType},#{businessType})
|
SELECT LAST_INSERT_ID()
|
||||||
|
</selectKey>
|
||||||
|
insert into specific_service_cfg (spec_service_code,spec_service_name,spec_service_desc,is_valid, op_time, parent_id,is_leaf,group_id,cfg_type,business_type,add_flag)
|
||||||
|
values(#{specServiceCode},#{specServiceName},#{specServiceDesc},#{isValid},#{opTime},#{parent.specServiceId},#{isLeaf},#{groupId},#{cfgType},
|
||||||
|
#{businessType},#{addFlag})
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<!-- 修改 -->
|
<!-- 修改 -->
|
||||||
|
|||||||
@@ -18,6 +18,8 @@ import com.nis.domain.configuration.AppHttpCfg;
|
|||||||
import com.nis.domain.configuration.AppIpCfg;
|
import com.nis.domain.configuration.AppIpCfg;
|
||||||
import com.nis.domain.configuration.AppPolicyCfg;
|
import com.nis.domain.configuration.AppPolicyCfg;
|
||||||
import com.nis.domain.configuration.AppSslCertCfg;
|
import com.nis.domain.configuration.AppSslCertCfg;
|
||||||
|
import com.nis.domain.configuration.AppTcpCfg;
|
||||||
|
import com.nis.domain.configuration.AppTopicDomainCfg;
|
||||||
import com.nis.domain.configuration.AreaIpCfg;
|
import com.nis.domain.configuration.AreaIpCfg;
|
||||||
import com.nis.domain.configuration.IpPortCfg;
|
import com.nis.domain.configuration.IpPortCfg;
|
||||||
import com.nis.domain.configuration.NtcSubscribeIdCfg;
|
import com.nis.domain.configuration.NtcSubscribeIdCfg;
|
||||||
@@ -85,6 +87,14 @@ public class AppCfgService extends BaseService {
|
|||||||
page.setList(list);
|
page.setList(list);
|
||||||
return page;
|
return page;
|
||||||
}
|
}
|
||||||
|
//主题网站列表
|
||||||
|
public Page<AppTopicDomainCfg> findAppTopicDomainList(Page<AppTopicDomainCfg> page, AppTopicDomainCfg entity) {
|
||||||
|
entity.getSqlMap().put("dsf", configScopeFilter(entity.getCurrentUser(),"r"));
|
||||||
|
entity.setPage(page);
|
||||||
|
List<AppTopicDomainCfg> list = appCfgDao.findAppTopicDomainList(entity);
|
||||||
|
page.setList(list);
|
||||||
|
return page;
|
||||||
|
}
|
||||||
public Page<AppByteCfg> findAppByteList(Page<AppByteCfg> page, AppByteCfg entity) {
|
public Page<AppByteCfg> findAppByteList(Page<AppByteCfg> page, AppByteCfg entity) {
|
||||||
entity.getSqlMap().put("dsf", configScopeFilter(entity.getCurrentUser(),"r"));
|
entity.getSqlMap().put("dsf", configScopeFilter(entity.getCurrentUser(),"r"));
|
||||||
entity.setPage(page);
|
entity.setPage(page);
|
||||||
@@ -99,6 +109,21 @@ public class AppCfgService extends BaseService {
|
|||||||
page.setList(list);
|
page.setList(list);
|
||||||
return page;
|
return page;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public Page<AppTcpCfg> findAppTcpList(Page<AppTcpCfg> page, AppTcpCfg entity) {
|
||||||
|
entity.getSqlMap().put("dsf", configScopeFilter(entity.getCurrentUser(),"r"));
|
||||||
|
entity.setPage(page);
|
||||||
|
List<AppTcpCfg> list = appCfgDao.findAppTcpList(entity);
|
||||||
|
page.setList(list);
|
||||||
|
return page;
|
||||||
|
}
|
||||||
|
|
||||||
|
public AppTcpCfg getAppTcpCfg(Long cfgId){
|
||||||
|
return appCfgDao.getAppTcpCfg(cfgId);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public AppPolicyCfg getAppPolicyCfg(Long cfgId){
|
public AppPolicyCfg getAppPolicyCfg(Long cfgId){
|
||||||
AppPolicyCfg policy = appCfgDao.getAppPolicyCfg(cfgId);
|
AppPolicyCfg policy = appCfgDao.getAppPolicyCfg(cfgId);
|
||||||
List<IpPortCfg> ipPortList = appCfgDao.getAppPolicyIpList(policy);
|
List<IpPortCfg> ipPortList = appCfgDao.getAppPolicyIpList(policy);
|
||||||
@@ -122,6 +147,10 @@ public class AppCfgService extends BaseService {
|
|||||||
public AppDomainCfg getAppDomainCfg(Long cfgId){
|
public AppDomainCfg getAppDomainCfg(Long cfgId){
|
||||||
return appCfgDao.getAppDomainCfg(cfgId);
|
return appCfgDao.getAppDomainCfg(cfgId);
|
||||||
}
|
}
|
||||||
|
//主题网站form
|
||||||
|
public AppTopicDomainCfg getAppTopicDomainCfg(Long cfgId){
|
||||||
|
return appCfgDao.getAppTopicDomainCfg(cfgId);
|
||||||
|
}
|
||||||
public AppByteCfg getAppByteCfg(Long cfgId){
|
public AppByteCfg getAppByteCfg(Long cfgId){
|
||||||
return appCfgDao.getAppByteCfg(cfgId);
|
return appCfgDao.getAppByteCfg(cfgId);
|
||||||
}
|
}
|
||||||
@@ -209,7 +238,7 @@ public class AppCfgService extends BaseService {
|
|||||||
for(NtcSubscribeIdCfg cfg:entity.getNtcSubscribeIdCfgList()){
|
for(NtcSubscribeIdCfg cfg:entity.getNtcSubscribeIdCfgList()){
|
||||||
if(StringUtils.isNotBlank(cfg.getCfgKeywords())){
|
if(StringUtils.isNotBlank(cfg.getCfgKeywords())){
|
||||||
entity.setCfgKeywords(cfg.getCfgKeywords());
|
entity.setCfgKeywords(cfg.getCfgKeywords());
|
||||||
BeanUtils.copyProperties(entity, cfg,new String[]{"cfgRegionCode","cfgType"});
|
BeanUtils.copyProperties(entity, cfg,new String[]{"cfgRegionCode","cfgType","exprType","matchMethod","isHexbin"});
|
||||||
stringcfgDao.saveSubscribeIdCfg(cfg);
|
stringcfgDao.saveSubscribeIdCfg(cfg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -397,6 +426,62 @@ public class AppCfgService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//主题网站新增 修改
|
||||||
|
public void saveOrUpdateAppTopicDomainCfg(AppTopicDomainCfg entity) throws Exception{
|
||||||
|
//设置区域运营商信息
|
||||||
|
setAreaEffectiveIds(entity);
|
||||||
|
|
||||||
|
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);
|
||||||
|
}
|
||||||
|
entity.setCompileId(compileId);
|
||||||
|
entity.setCreateTime(new Date());
|
||||||
|
entity.setCreatorId(entity.getCurrentUser().getId());
|
||||||
|
entity.setIsValid(0);
|
||||||
|
entity.setIsAudit(0);
|
||||||
|
appCfgDao.insertAppTopicDomainCfg(entity);
|
||||||
|
//保存区域IP信息
|
||||||
|
if(entity.getAreaCfg()!=null){
|
||||||
|
for(AreaIpCfg cfg:entity.getAreaCfg()){
|
||||||
|
cfg.initDefaultValue();
|
||||||
|
BeanUtils.copyProperties(entity, cfg,new String[]{"cfgDesc","cfgRegionCode","cfgType"});
|
||||||
|
areaIpCfgDao.saveAreaIpCfg(cfg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
logger.info("获取编译ID出错");
|
||||||
|
throw new MaatConvertException(e.getMessage());
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
entity.setEditorId(entity.getCurrentUser().getId());
|
||||||
|
entity.setEditTime(new Date());
|
||||||
|
entity.setIsValid(0);
|
||||||
|
entity.setIsAudit(0);
|
||||||
|
appCfgDao.updateAppTopicDomainCfg(entity);
|
||||||
|
//删除旧的区域IP,新增新的区域IP
|
||||||
|
AreaIpCfg area = new AreaIpCfg();
|
||||||
|
area.setCompileId(entity.getCompileId());
|
||||||
|
area.setFunctionId(entity.getFunctionId());
|
||||||
|
areaIpCfgDao.deleteAreaIpCfg(area);
|
||||||
|
entity.setCreateTime(new Date());
|
||||||
|
entity.setCreatorId(entity.getCurrentUser().getId());
|
||||||
|
//保存区域IP信息
|
||||||
|
if(entity.getAreaCfg()!=null){
|
||||||
|
for(AreaIpCfg cfg:entity.getAreaCfg()){
|
||||||
|
cfg.initDefaultValue();
|
||||||
|
BeanUtils.copyProperties(entity, cfg,new String[]{"cfgDesc","cfgRegionCode","cfgType"});
|
||||||
|
areaIpCfgDao.saveAreaIpCfg(cfg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Transactional(readOnly=false,rollbackFor=RuntimeException.class)
|
@Transactional(readOnly=false,rollbackFor=RuntimeException.class)
|
||||||
public void saveOrUpdateAppByteCfg(AppByteCfg entity) throws Exception{
|
public void saveOrUpdateAppByteCfg(AppByteCfg entity) throws Exception{
|
||||||
//设置区域运营商信息
|
//设置区域运营商信息
|
||||||
@@ -508,6 +593,142 @@ public class AppCfgService extends BaseService {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Transactional(readOnly=false,rollbackFor=RuntimeException.class)
|
||||||
|
public void saveOrUpdateAppTcpeCfg(AppTcpCfg entity) throws Exception{
|
||||||
|
//设置区域运营商信息
|
||||||
|
setAreaEffectiveIds(entity);
|
||||||
|
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);
|
||||||
|
}
|
||||||
|
entity.setCompileId(compileId);
|
||||||
|
entity.setCreateTime(new Date());
|
||||||
|
entity.setCreatorId(entity.getCurrentUser().getId());
|
||||||
|
entity.setIsValid(0);
|
||||||
|
entity.setIsAudit(0);
|
||||||
|
appCfgDao.insertAppTcpCfg(entity);
|
||||||
|
//保存区域IP信息
|
||||||
|
if(entity.getAreaCfg()!=null){
|
||||||
|
for(AreaIpCfg cfg:entity.getAreaCfg()){
|
||||||
|
cfg.initDefaultValue();
|
||||||
|
BeanUtils.copyProperties(entity, cfg,new String[]{"cfgDesc","cfgRegionCode","cfgType"});
|
||||||
|
areaIpCfgDao.saveAreaIpCfg(cfg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
logger.info("获取编译ID出错");
|
||||||
|
throw new MaatConvertException(e.getMessage());
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
entity.setEditorId(entity.getCurrentUser().getId());
|
||||||
|
entity.setEditTime(new Date());
|
||||||
|
entity.setIsValid(0);
|
||||||
|
entity.setIsAudit(0);
|
||||||
|
appCfgDao.updateAppTcpCfg(entity);
|
||||||
|
//删除旧的区域IP,新增新的区域IP
|
||||||
|
AreaIpCfg area = new AreaIpCfg();
|
||||||
|
area.setCompileId(entity.getCompileId());
|
||||||
|
area.setFunctionId(entity.getFunctionId());
|
||||||
|
areaIpCfgDao.deleteAreaIpCfg(area);
|
||||||
|
entity.setCreateTime(new Date());
|
||||||
|
entity.setCreatorId(entity.getCurrentUser().getId());
|
||||||
|
//保存区域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 auditAppTcpCfg(AppTcpCfg entity,Integer isAudit){
|
||||||
|
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.setTableName(AppTcpCfg.getTablename());
|
||||||
|
appCfgDao.auditCfg(entity);
|
||||||
|
|
||||||
|
if(isAudit==1){
|
||||||
|
List<AppTcpCfg> list = new ArrayList();
|
||||||
|
list.add(entity);
|
||||||
|
Map<String,List> map = cfgConvert(numRegionList,list,4,entity,groupRelationList);
|
||||||
|
groupRelationList=map.get("groupList");
|
||||||
|
numRegionList=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());
|
||||||
|
appCfgDao.auditCfg(cfg);
|
||||||
|
if(isAudit==1){
|
||||||
|
Map<String,List> map = cfgConvert(areaIpRegionList,areaIpCfgList,4,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());
|
||||||
|
//设置APP自定义域
|
||||||
|
String userRegion = "APP_ID="+entity.getAppCode();
|
||||||
|
maatCfg.setUserRegion(userRegion);
|
||||||
|
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("app SSL配置下发配置参数:"+json);
|
||||||
|
//调用服务接口下发配置
|
||||||
|
ToMaatResult result = ConfigServiceUtil.postMaatCfg(json);
|
||||||
|
logger.info("app TCP配置下发响应信息:"+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("app TCP配置下发配置参数:"+json);
|
||||||
|
//调用服务接口下发配置
|
||||||
|
ToMaatResult result = ConfigServiceUtil.put(json,1);
|
||||||
|
logger.info("app TCP配置取消配置响应信息:"+result.getMsg());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void auditAppPolicyCfg(AppPolicyCfg entity,Integer isAudit){
|
public void auditAppPolicyCfg(AppPolicyCfg entity,Integer isAudit){
|
||||||
String configType=entity.getConfigType();
|
String configType=entity.getConfigType();
|
||||||
ToMaatBean maatBean = new ToMaatBean();
|
ToMaatBean maatBean = new ToMaatBean();
|
||||||
@@ -910,6 +1131,98 @@ public class AppCfgService extends BaseService {
|
|||||||
logger.info("app域名配置取消配置响应信息:"+result.getMsg());
|
logger.info("app域名配置取消配置响应信息:"+result.getMsg());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//app主题网站配置审核
|
||||||
|
public void auditAppTopicDomainCfg(AppTopicDomainCfg entity,Integer isAudit){
|
||||||
|
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.setTableName(AppTopicDomainCfg.getTablename());
|
||||||
|
appCfgDao.auditCfg(entity);
|
||||||
|
//域名为关键字
|
||||||
|
if(isAudit==1){
|
||||||
|
entity.setCfgKeywords(entity.getDomain());
|
||||||
|
List<AppTopicDomainCfg> list = new ArrayList();
|
||||||
|
list.add(entity);
|
||||||
|
Map<String,List> map = cfgConvert(strRegionList,list,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());
|
||||||
|
appCfgDao.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());
|
||||||
|
|
||||||
|
//设置APP自定义域
|
||||||
|
// "APP_ID="+entity.getAppCode()+Constants.USER_REGION_SPLIT+
|
||||||
|
String userRegion = "DOMAIN_ID="+entity.getCompileId()+Constants.USER_REGION_SPLIT+
|
||||||
|
"DOMAIN_STR="+keywordsEscape(entity.getDomain());
|
||||||
|
|
||||||
|
maatCfg.setUserRegion(userRegion);
|
||||||
|
|
||||||
|
|
||||||
|
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("app主题网站配置下发配置参数:"+json);
|
||||||
|
//调用服务接口下发配置
|
||||||
|
ToMaatResult result = ConfigServiceUtil.postMaatCfg(json);
|
||||||
|
logger.info("app主题网站配置下发响应信息:"+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("app主题网站配置下发配置参数:"+json);
|
||||||
|
//调用服务接口下发配置
|
||||||
|
ToMaatResult result = ConfigServiceUtil.put(json,1);
|
||||||
|
logger.info("app主题网站配置取消配置响应信息:"+result.getMsg());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public void auditAppByteCfg(AppByteCfg entity,Integer isAudit){
|
public void auditAppByteCfg(AppByteCfg entity,Integer isAudit){
|
||||||
ToMaatBean maatBean = new ToMaatBean();
|
ToMaatBean maatBean = new ToMaatBean();
|
||||||
MaatCfg maatCfg = new MaatCfg();
|
MaatCfg maatCfg = new MaatCfg();
|
||||||
@@ -1097,7 +1410,7 @@ 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 ntcSubscribeIdCfg = new NtcSubscribeIdCfg();
|
||||||
BeanUtils.copyProperties(entity, ntcSubscribeIdCfg, new String[]{"cfgId"});
|
BeanUtils.copyProperties(entity, ntcSubscribeIdCfg, new String[]{"cfgId"});
|
||||||
stringcfgDao.deleteSubscribeIdCfg(ntcSubscribeIdCfg);
|
stringcfgDao.updateSubscribeIdCfg(ntcSubscribeIdCfg);
|
||||||
}
|
}
|
||||||
//保存区域IP信息
|
//保存区域IP信息
|
||||||
if(entity.getAreaCfg()!=null && entity.getAreaCfg().size()>0){
|
if(entity.getAreaCfg()!=null && entity.getAreaCfg().size()>0){
|
||||||
@@ -1132,6 +1445,30 @@ public class AppCfgService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void updateAppTcpCfgValid(Integer isValid,String ids,Integer functionId){
|
||||||
|
AppTcpCfg entity = new AppTcpCfg();
|
||||||
|
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(AppTcpCfg.getTablename());
|
||||||
|
entity.setFunctionId(functionId);
|
||||||
|
appCfgDao.updateCfgValid(entity);
|
||||||
|
//保存区域IP信息
|
||||||
|
if(entity.getAreaCfg()!=null && entity.getAreaCfg().size()>0){
|
||||||
|
AreaIpCfg cfg = new AreaIpCfg();
|
||||||
|
BeanUtils.copyProperties(entity, cfg, new String[]{"cfgId"});
|
||||||
|
cfg.setTableName(AreaIpCfg.getTablename());
|
||||||
|
appCfgDao.updateCfgValid(cfg);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
public void updateAppHttpCfgValid(Integer isValid,String ids,Integer functionId){
|
public void updateAppHttpCfgValid(Integer isValid,String ids,Integer functionId){
|
||||||
AppHttpCfg entity = new AppHttpCfg();
|
AppHttpCfg entity = new AppHttpCfg();
|
||||||
String[] idArray = ids.split(",");
|
String[] idArray = ids.split(",");
|
||||||
@@ -1176,6 +1513,30 @@ public class AppCfgService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
//主题网站配置删除
|
||||||
|
public void updateAppTopicDomainCfgValid(Integer isValid,String ids,Integer functionId){
|
||||||
|
AppTopicDomainCfg entity = new AppTopicDomainCfg();
|
||||||
|
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(AppTopicDomainCfg.getTablename());
|
||||||
|
entity.setFunctionId(functionId);
|
||||||
|
appCfgDao.updateCfgValid(entity);
|
||||||
|
//保存区域IP信息
|
||||||
|
if(entity.getAreaCfg()!=null && entity.getAreaCfg().size()>0){
|
||||||
|
AreaIpCfg cfg = new AreaIpCfg();
|
||||||
|
BeanUtils.copyProperties(entity, cfg, new String[]{"cfgId"});
|
||||||
|
cfg.setTableName(AreaIpCfg.getTablename());
|
||||||
|
appCfgDao.updateCfgValid(cfg);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
public void updateAppByteCfgValid(Integer isValid,String ids,Integer functionId){
|
public void updateAppByteCfgValid(Integer isValid,String ids,Integer functionId){
|
||||||
AppByteCfg entity = new AppByteCfg();
|
AppByteCfg entity = new AppByteCfg();
|
||||||
String[] idArray = ids.split(",");
|
String[] idArray = ids.split(",");
|
||||||
|
|||||||
@@ -135,10 +135,10 @@ public class BgpCfgService extends CrudService<BgpCfgDao,CfgIndexInfo> {
|
|||||||
areaIpCfgDao.saveAreaIpCfg(cfg);
|
areaIpCfgDao.saveAreaIpCfg(cfg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (MaatConvertException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
logger.info("获取编译ID出错");
|
logger.info("获取编译ID出错");
|
||||||
throw new MaatConvertException("<spring:message code=\"request_service_failed\"/>:"+e.getMessage());
|
throw new MaatConvertException("<spring:message code=\"request_service_failed\"/>");
|
||||||
}
|
}
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
@@ -146,9 +146,7 @@ public class BgpCfgService extends CrudService<BgpCfgDao,CfgIndexInfo> {
|
|||||||
//无效子配置后,再新增子配置
|
//无效子配置后,再新增子配置
|
||||||
bgpCfgDao.deleteIpCfg(entity);
|
bgpCfgDao.deleteIpCfg(entity);
|
||||||
bgpCfgDao.deleteBgpAsCfg(entity);
|
bgpCfgDao.deleteBgpAsCfg(entity);
|
||||||
if(entity.getNtcSubscribeIdCfg()!=null){
|
bgpCfgDao.deleteSubscribeIdCfg(entity);
|
||||||
stringCfgDao.deleteSubscribeIdCfg(entity.getNtcSubscribeIdCfg());
|
|
||||||
}
|
|
||||||
//TODO
|
//TODO
|
||||||
//bgpCfgDao.deleteDnsDomainCfg(entity);
|
//bgpCfgDao.deleteDnsDomainCfg(entity);
|
||||||
AreaIpCfg area = new AreaIpCfg();
|
AreaIpCfg area = new AreaIpCfg();
|
||||||
|
|||||||
@@ -378,6 +378,8 @@ public class FileTransferCfgService extends CrudService<FileTransferCfgDao,CfgIn
|
|||||||
|
|
||||||
public FileDigestCfg getFileDigestCfg(Long cfgId){
|
public FileDigestCfg getFileDigestCfg(Long cfgId){
|
||||||
FileDigestCfg entity = fileTransferCfgDao.getFileDigest(cfgId);
|
FileDigestCfg entity = fileTransferCfgDao.getFileDigest(cfgId);
|
||||||
|
List<NtcSubscribeIdCfg> subscribeidList = fileTransferCfgDao.getFileDigestSubscribeidList(entity);
|
||||||
|
entity.setNtcSubscribeIdCfgList(subscribeidList);
|
||||||
return entity;
|
return entity;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -402,18 +404,21 @@ public class FileTransferCfgService extends CrudService<FileTransferCfgDao,CfgIn
|
|||||||
}
|
}
|
||||||
entity.setCompileId(compileId);
|
entity.setCompileId(compileId);
|
||||||
entity.setCreatorId(entity.getCurrentUser().getId());
|
entity.setCreatorId(entity.getCurrentUser().getId());
|
||||||
Long rawLen = result.getData().getRawLen();
|
entity.setRawLen(result.getData().getRawLen());
|
||||||
String digest = result.getData().getDigest();
|
entity.setDigest(result.getData().getDigest());
|
||||||
if((result!=null && result.getData()!=null) && (rawLen != null && digest!= null)){
|
entity.setFileUrl(result.getData().getAccessUrl());
|
||||||
entity.setRawLen(rawLen);
|
|
||||||
entity.setDigest(digest);
|
|
||||||
entity.setFileUrl(result.getData().getAccessUrl());
|
|
||||||
}else {
|
|
||||||
logger.info("获取文件摘要属性有误");
|
|
||||||
throw new MaatConvertException("<spring:message code=\"request_service_failed\"/>:"+null);
|
|
||||||
}
|
|
||||||
mailCfgDao.saveMailFileDigestCfg(entity);
|
mailCfgDao.saveMailFileDigestCfg(entity);
|
||||||
|
|
||||||
|
// 保存SubscribeId域配置信息
|
||||||
|
if(entity.getNtcSubscribeIdCfgList()!=null){
|
||||||
|
for(NtcSubscribeIdCfg cfg:entity.getNtcSubscribeIdCfgList()){
|
||||||
|
if(StringUtils.isNotBlank(cfg.getCfgKeywords())){
|
||||||
|
BeanUtils.copyProperties(entity, cfg,new String[]{"cfgRegionCode","cfgType"});
|
||||||
|
fileTransferCfgDao.saveP2pSubscribeIdCfg(cfg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
//保存区域IP信息
|
//保存区域IP信息
|
||||||
if(entity.getAreaCfg()!=null&&entity.getAreaCfg().size()>0){
|
if(entity.getAreaCfg()!=null&&entity.getAreaCfg().size()>0){
|
||||||
for (AreaIpCfg areaIpCfg : entity.getAreaCfg()) {
|
for (AreaIpCfg areaIpCfg : entity.getAreaCfg()) {
|
||||||
@@ -427,12 +432,26 @@ public class FileTransferCfgService extends CrudService<FileTransferCfgDao,CfgIn
|
|||||||
|
|
||||||
entity.setEditorId(entity.getCurrentUser().getId());
|
entity.setEditorId(entity.getCurrentUser().getId());
|
||||||
entity.setEditTime(new Date());
|
entity.setEditTime(new Date());
|
||||||
if(result!=null && result.getData()!=null){
|
if(result.getData() !=null ) {
|
||||||
entity.setRawLen(result.getData().getRawLen());
|
entity.setRawLen(result.getData().getRawLen());
|
||||||
entity.setDigest(result.getData().getDigest());
|
entity.setDigest(result.getData().getDigest());
|
||||||
entity.setFileUrl(result.getData().getAccessUrl());
|
entity.setFileUrl(result.getData().getAccessUrl());
|
||||||
}
|
}
|
||||||
|
|
||||||
fileTransferCfgDao.updateFileDigestCfg(entity);
|
fileTransferCfgDao.updateFileDigestCfg(entity);
|
||||||
|
entity.setCreatorId(entity.getCurrentUser().getId());
|
||||||
|
entity.setCreateTime(new Date());
|
||||||
|
|
||||||
|
// SubscribeId域配置 先删后加
|
||||||
|
fileTransferCfgDao.deleteFileDigestSubscribeIdCfg(entity);
|
||||||
|
if(entity.getNtcSubscribeIdCfgList()!=null){
|
||||||
|
for(NtcSubscribeIdCfg cfg:entity.getNtcSubscribeIdCfgList()){
|
||||||
|
if(StringUtils.isNotBlank(cfg.getCfgKeywords())){
|
||||||
|
BeanUtils.copyProperties(entity, cfg,new String[]{"cfgRegionCode","cfgType"});
|
||||||
|
fileTransferCfgDao.saveP2pSubscribeIdCfg(cfg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
areaCfgIds=!StringUtil.isEmpty(areaCfgIds)? ","+areaCfgIds:"";
|
areaCfgIds=!StringUtil.isEmpty(areaCfgIds)? ","+areaCfgIds:"";
|
||||||
if(!StringUtil.isEmpty(entity.getAreaCfg())){
|
if(!StringUtil.isEmpty(entity.getAreaCfg())){
|
||||||
@@ -592,6 +611,17 @@ public class FileTransferCfgService extends CrudService<FileTransferCfgDao,CfgIn
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public FileDigestCfg getFileDigestSubIdCfg(Long cfgId) {
|
||||||
|
FileDigestCfg entity = fileTransferCfgDao.getFileDigest(cfgId);
|
||||||
|
if(entity.getCompileId()!=null){
|
||||||
|
NtcSubscribeIdCfg ntcSubscribeIdCfg = new NtcSubscribeIdCfg();
|
||||||
|
ntcSubscribeIdCfg.setCompileId(entity.getCompileId());
|
||||||
|
List<NtcSubscribeIdCfg> ntcList = stringCfgDao.findSubscribeIdCfgList(ntcSubscribeIdCfg);
|
||||||
|
entity.setNtcSubscribeIdCfgList(ntcList);
|
||||||
|
}
|
||||||
|
return entity;
|
||||||
|
}
|
||||||
|
|
||||||
public Page<CfgIndexInfo> getP2pList(Page<CfgIndexInfo> page, CfgIndexInfo entity){
|
public Page<CfgIndexInfo> getP2pList(Page<CfgIndexInfo> page, CfgIndexInfo entity){
|
||||||
// 生成数据权限过滤条件(dsf为dataScopeFilter的简写,在xml中使用 ${sqlMap.dsf}调用权限SQL)
|
// 生成数据权限过滤条件(dsf为dataScopeFilter的简写,在xml中使用 ${sqlMap.dsf}调用权限SQL)
|
||||||
entity.getSqlMap().put("dsf", configScopeFilter(entity.getCurrentUser(),"a"));
|
entity.getSqlMap().put("dsf", configScopeFilter(entity.getCurrentUser(),"a"));
|
||||||
@@ -943,4 +973,5 @@ public class FileTransferCfgService extends CrudService<FileTransferCfgDao,CfgIn
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ import com.nis.domain.configuration.AreaIpCfg;
|
|||||||
import com.nis.domain.configuration.CfgIndexInfo;
|
import com.nis.domain.configuration.CfgIndexInfo;
|
||||||
import com.nis.domain.configuration.ComplexkeywordCfg;
|
import com.nis.domain.configuration.ComplexkeywordCfg;
|
||||||
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;
|
||||||
@@ -28,6 +29,7 @@ import com.nis.util.ConfigServiceUtil;
|
|||||||
import com.nis.util.Constants;
|
import com.nis.util.Constants;
|
||||||
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.StringCfgDao;
|
||||||
import com.nis.web.dao.configuration.XmppCfgDao;
|
import com.nis.web.dao.configuration.XmppCfgDao;
|
||||||
import com.nis.web.security.UserUtils;
|
import com.nis.web.security.UserUtils;
|
||||||
import com.nis.web.service.CrudService;
|
import com.nis.web.service.CrudService;
|
||||||
@@ -43,10 +45,19 @@ public class XmppCfgService extends CrudService<XmppCfgDao,CfgIndexInfo> {
|
|||||||
protected XmppCfgDao xmppCfgDao;
|
protected XmppCfgDao xmppCfgDao;
|
||||||
@Autowired
|
@Autowired
|
||||||
protected AreaIpCfgDao areaIpCfgDao;
|
protected AreaIpCfgDao areaIpCfgDao;
|
||||||
|
@Autowired
|
||||||
|
protected StringCfgDao stringCfgDao;
|
||||||
|
|
||||||
public CfgIndexInfo getXmppCfg(Long cfgId){
|
public CfgIndexInfo getXmppCfg(Long cfgId){
|
||||||
CfgIndexInfo entity = xmppCfgDao.getCfgIndexInfo(cfgId);
|
CfgIndexInfo entity = xmppCfgDao.getCfgIndexInfo(cfgId);
|
||||||
List<IpPortCfg> ipPortList = xmppCfgDao.getIpPortList(entity);
|
List<IpPortCfg> ipPortList = xmppCfgDao.getIpPortList(entity);
|
||||||
|
//设置关键字
|
||||||
|
if(entity.getCompileId()!=null){
|
||||||
|
NtcSubscribeIdCfg ntcSubscribeIdCfg = new NtcSubscribeIdCfg();
|
||||||
|
ntcSubscribeIdCfg.setCompileId(entity.getCompileId());
|
||||||
|
List<NtcSubscribeIdCfg> ntcList = stringCfgDao.findSubscribeIdCfgList(ntcSubscribeIdCfg);
|
||||||
|
entity.setNtcSubscribeIdCfgList(ntcList);
|
||||||
|
}
|
||||||
entity.setIpPortList(ipPortList);
|
entity.setIpPortList(ipPortList);
|
||||||
return entity;
|
return entity;
|
||||||
}
|
}
|
||||||
@@ -68,6 +79,10 @@ public class XmppCfgService extends CrudService<XmppCfgDao,CfgIndexInfo> {
|
|||||||
if(idList!=null && idList.size()>0){
|
if(idList!=null && idList.size()>0){
|
||||||
compileId = idList.get(0);
|
compileId = idList.get(0);
|
||||||
}
|
}
|
||||||
|
} catch (MaatConvertException e) {
|
||||||
|
logger.info("获取编译ID出错");
|
||||||
|
throw new MaatConvertException("<spring:message code=\"request_service_failed\"/>");
|
||||||
|
}
|
||||||
entity.setCompileId(compileId);
|
entity.setCompileId(compileId);
|
||||||
entity.setCreateTime(new Date());
|
entity.setCreateTime(new Date());
|
||||||
entity.setCreatorId(entity.getCurrentUser().getId());
|
entity.setCreatorId(entity.getCurrentUser().getId());
|
||||||
@@ -78,6 +93,14 @@ public class XmppCfgService extends CrudService<XmppCfgDao,CfgIndexInfo> {
|
|||||||
xmppCfgDao.saveIpPortCfg(cfg);
|
xmppCfgDao.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信息
|
//保存区域IP信息
|
||||||
if(entity.getAreaCfg()!=null){
|
if(entity.getAreaCfg()!=null){
|
||||||
for(AreaIpCfg cfg:entity.getAreaCfg()){
|
for(AreaIpCfg cfg:entity.getAreaCfg()){
|
||||||
@@ -86,16 +109,13 @@ public class XmppCfgService extends CrudService<XmppCfgDao,CfgIndexInfo> {
|
|||||||
areaIpCfgDao.saveAreaIpCfg(cfg);
|
areaIpCfgDao.saveAreaIpCfg(cfg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
logger.info("获取编译ID出错");
|
|
||||||
throw new MaatConvertException("<spring:message code=\"request_service_failed\"/>:"+e.getMessage());
|
|
||||||
}
|
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
xmppCfgDao.updateCfgIndex(entity);
|
xmppCfgDao.updateCfgIndex(entity);
|
||||||
//无效子配置后,再新增子配置
|
//无效子配置后,再新增子配置
|
||||||
xmppCfgDao.deleteXmppIpCfg(entity);
|
xmppCfgDao.deleteXmppIpCfg(entity);
|
||||||
|
stringCfgDao.deleteSubscribeIdCfgByCfgIndexInfo(entity);
|
||||||
AreaIpCfg area = new AreaIpCfg();
|
AreaIpCfg area = new AreaIpCfg();
|
||||||
area.setCompileId(entity.getCompileId());
|
area.setCompileId(entity.getCompileId());
|
||||||
area.setFunctionId(entity.getFunctionId());
|
area.setFunctionId(entity.getFunctionId());
|
||||||
@@ -108,6 +128,14 @@ public class XmppCfgService extends CrudService<XmppCfgDao,CfgIndexInfo> {
|
|||||||
xmppCfgDao.saveIpPortCfg(cfg);
|
xmppCfgDao.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信息
|
//保存区域IP信息
|
||||||
if(entity.getAreaCfg()!=null){
|
if(entity.getAreaCfg()!=null){
|
||||||
for(AreaIpCfg cfg:entity.getAreaCfg()){
|
for(AreaIpCfg cfg:entity.getAreaCfg()){
|
||||||
@@ -137,6 +165,13 @@ public class XmppCfgService extends CrudService<XmppCfgDao,CfgIndexInfo> {
|
|||||||
cfg.setTableName(IpPortCfg.getTablename());
|
cfg.setTableName(IpPortCfg.getTablename());
|
||||||
xmppCfgDao.updateCfgValid(cfg);
|
xmppCfgDao.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());
|
||||||
|
xmppCfgDao.updateCfgValid(cfg);
|
||||||
|
}
|
||||||
// if(entity.getHttpUrlList()!=null && entity.getHttpUrlList().size()>0){
|
// if(entity.getHttpUrlList()!=null && entity.getHttpUrlList().size()>0){
|
||||||
// HttpUrlCfg cfg = new HttpUrlCfg();
|
// HttpUrlCfg cfg = new HttpUrlCfg();
|
||||||
// BeanUtils.copyProperties(entity, cfg, new String[]{"cfgId"});
|
// BeanUtils.copyProperties(entity, cfg, new String[]{"cfgId"});
|
||||||
@@ -185,6 +220,17 @@ public class XmppCfgService extends CrudService<XmppCfgDao,CfgIndexInfo> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if(entity.getNtcSubscribeIdCfgList()!=null && entity.getNtcSubscribeIdCfgList().size()>0){
|
||||||
|
NtcSubscribeIdCfg cfg = new NtcSubscribeIdCfg();
|
||||||
|
BeanUtils.copyProperties(entity, cfg, new String[]{"cfgId"});
|
||||||
|
cfg.setTableName(NtcSubscribeIdCfg.getTablename());
|
||||||
|
xmppCfgDao.auditCfg(cfg);
|
||||||
|
if(isAudit==1){
|
||||||
|
Map<String,List> map = cfgConvert(strRegionList,entity.getNtcSubscribeIdCfgList(),2,entity,groupRelationList);
|
||||||
|
groupRelationList=map.get("groupList");
|
||||||
|
strRegionList=map.get("dstList");
|
||||||
|
}
|
||||||
|
}
|
||||||
// if(entity.getHttpUrlList()!=null && entity.getHttpUrlList().size()>0){
|
// if(entity.getHttpUrlList()!=null && entity.getHttpUrlList().size()>0){
|
||||||
// HttpUrlCfg cfg = new HttpUrlCfg();
|
// HttpUrlCfg cfg = new HttpUrlCfg();
|
||||||
// BeanUtils.copyProperties(entity, cfg, new String[]{"cfgId"});
|
// BeanUtils.copyProperties(entity, cfg, new String[]{"cfgId"});
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ import com.nis.domain.Page;
|
|||||||
import com.nis.domain.specific.ConfigGroupInfo;
|
import com.nis.domain.specific.ConfigGroupInfo;
|
||||||
import com.nis.domain.specific.SpecificServiceCfg;
|
import com.nis.domain.specific.SpecificServiceCfg;
|
||||||
import com.nis.util.ConfigServiceUtil;
|
import com.nis.util.ConfigServiceUtil;
|
||||||
|
import com.nis.util.Constants;
|
||||||
import com.nis.web.dao.specific.SpecificServiceCfgDao;
|
import com.nis.web.dao.specific.SpecificServiceCfgDao;
|
||||||
import com.nis.web.service.BaseService;
|
import com.nis.web.service.BaseService;
|
||||||
|
|
||||||
@@ -89,6 +90,21 @@ public class SpecificServiceCfgService extends BaseService{
|
|||||||
|
|
||||||
specificServiceCfg.setIsValid(1);
|
specificServiceCfg.setIsValid(1);
|
||||||
specificServiceCfg.setOpTime(new Date());
|
specificServiceCfg.setOpTime(new Date());
|
||||||
|
//用户添加的需要自增
|
||||||
|
if(specificServiceCfg.getAddFlag()!=null) {
|
||||||
|
Integer serviceCode=specificServiceCfgDao.getMaxServiceCode(Constants.APP_SPEC_SERVICE_CODE_MAX_VAL,specificServiceCfg.getCfgType(),specificServiceCfg.getAddFlag());
|
||||||
|
if(serviceCode==null) {//用户没有添加标签,获取最大的
|
||||||
|
serviceCode=specificServiceCfgDao.getMaxServiceCode(Constants.APP_SPEC_SERVICE_CODE_MAX_VAL,specificServiceCfg.getCfgType(),null);
|
||||||
|
}
|
||||||
|
if(serviceCode==null) {//没有标签,取开始值
|
||||||
|
serviceCode=Constants.APP_SPEC_SERVICE_CODE_MIN_VAL;
|
||||||
|
}else if(serviceCode>Constants.APP_SPEC_SERVICE_CODE_MAX_VAL){
|
||||||
|
throw new RuntimeException("Get specific service code failed,specific service code is beyond the scope of application");
|
||||||
|
}else if(serviceCode<Constants.APP_SPEC_SERVICE_CODE_MIN_VAL) {
|
||||||
|
serviceCode=Constants.APP_SPEC_SERVICE_CODE_MIN_VAL;
|
||||||
|
}
|
||||||
|
specificServiceCfg.setSpecServiceCode(serviceCode.intValue()+1);
|
||||||
|
}
|
||||||
specificServiceCfgDao.insert(specificServiceCfg);
|
specificServiceCfgDao.insert(specificServiceCfg);
|
||||||
}else{//修改
|
}else{//修改
|
||||||
if(specificServiceCfg.getIsLeaf()==null){
|
if(specificServiceCfg.getIsLeaf()==null){
|
||||||
@@ -145,5 +161,8 @@ public class SpecificServiceCfgService extends BaseService{
|
|||||||
public SpecificServiceCfg getRepeat (Integer code,Integer cfgType,Integer parentId) {
|
public SpecificServiceCfg getRepeat (Integer code,Integer cfgType,Integer parentId) {
|
||||||
return specificServiceCfgDao.getRepeat(code,cfgType,parentId);
|
return specificServiceCfgDao.getRepeat(code,cfgType,parentId);
|
||||||
}
|
}
|
||||||
|
public Integer getMaxServiceCode (Integer code, Integer cfgType,Integer addFlag) {
|
||||||
|
return specificServiceCfgDao.getMaxServiceCode(code,cfgType,addFlag);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -617,7 +617,7 @@ val_dst_ip=Server IP format is incorrect or inconsistent with IP type
|
|||||||
val_dst_mask=Server IP mask format is incorrect or inconsistent with IP type
|
val_dst_mask=Server IP mask format is incorrect or inconsistent with IP type
|
||||||
val_dst_port=Server port is empty or incorrectly formatting(0-65535)
|
val_dst_port=Server port is empty or incorrectly formatting(0-65535)
|
||||||
val_dst_port_mask=Server port mask format is incorrect(0-65535)
|
val_dst_port_mask=Server port mask format is incorrect(0-65535)
|
||||||
val_protocol=Protocol Can't be empty,and should be 6(TCP),17(UDP),0(\u4EFB\u610F)
|
val_protocol=Protocol Can't be empty,and should be 6(TCP),17(UDP),0(\u4efb\u610f)
|
||||||
val_direction=Direction should be 0(bidirectional) or 1(unidirectional)
|
val_direction=Direction should be 0(bidirectional) or 1(unidirectional)
|
||||||
#===============protocol IP Import end=================
|
#===============protocol IP Import end=================
|
||||||
|
|
||||||
@@ -1082,7 +1082,10 @@ app_built_in_features_config=APP Built-in Features
|
|||||||
app_ssl_config=APP SSL Cert Feature
|
app_ssl_config=APP SSL Cert Feature
|
||||||
PXY_INTERCEPT_PKT_BIN=Intercept Messages
|
PXY_INTERCEPT_PKT_BIN=Intercept Messages
|
||||||
certificate=Certificate
|
certificate=Certificate
|
||||||
app_ssl_config=APP SSL Cert Feature
|
do_log=Do Log
|
||||||
|
no_log=Not Do Log
|
||||||
|
all_log=Log All Logs
|
||||||
|
framework_log=Only Framework Logs
|
||||||
|
|
||||||
file_strategy=File Strategy
|
file_strategy=File Strategy
|
||||||
file_desc=File Desc
|
file_desc=File Desc
|
||||||
@@ -1091,3 +1094,14 @@ content_length=Content Length
|
|||||||
response_file=Response File
|
response_file=Response File
|
||||||
APP_SUBSCRIBE_ID=Certification Mark Configuration
|
APP_SUBSCRIBE_ID=Certification Mark Configuration
|
||||||
reply_file=Reply File
|
reply_file=Reply File
|
||||||
|
app_topic_domain_cfg=Topic Website
|
||||||
|
#=====================about app Tcp=================================
|
||||||
|
min_tcp=Minimum Session Number
|
||||||
|
max_tcp=Maximum Session Number
|
||||||
|
tcp_unit=Unit / byte
|
||||||
|
app_tcp_config=APP TCP Session Feature
|
||||||
|
app_tcp_max_min=Maximum Session Should Not Exceed 4294967295
|
||||||
|
new=New
|
||||||
|
BASIC_PROTOCOL_BUSINESS_TYPE=Basic protpcol business classification
|
||||||
|
TUNNEL_BEHAV_BUSINESS_TYPE=Tunnel behavior business classification
|
||||||
|
APP_BUSINESS_TYPE=Application business classification
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -462,3 +462,6 @@ maat_cfg_dolog_configoption_default=1
|
|||||||
#app\uff0c\u57fa\u7840\u534f\u8bae\uff0c\u7279\u5b9a\u670d\u52a1\u7684userregion\u5206\u9694\u7b26
|
#app\uff0c\u57fa\u7840\u534f\u8bae\uff0c\u7279\u5b9a\u670d\u52a1\u7684userregion\u5206\u9694\u7b26
|
||||||
app_cfg_userregion_splitor=&
|
app_cfg_userregion_splitor=&
|
||||||
app_id_region=APP_ID
|
app_id_region=APP_ID
|
||||||
|
#application spec service code scope
|
||||||
|
app_spec_service_code_max_val=310000
|
||||||
|
app_spec_service_code_min_val=300001
|
||||||
1
src/main/resources/sql/add_spec_add_flag.sql
Normal file
1
src/main/resources/sql/add_spec_add_flag.sql
Normal file
@@ -0,0 +1 @@
|
|||||||
|
ALTER TABLE specific_service_cfg ADD add_flag INT(11) NULL COMMENT '添加标记,APP特征界面上添加的为用户自己添加的';
|
||||||
@@ -26,6 +26,7 @@
|
|||||||
<%@ attribute name="showParentName" type="java.lang.String" required="false" description="显示父类名称"%>
|
<%@ attribute name="showParentName" type="java.lang.String" required="false" description="显示父类名称"%>
|
||||||
<%@ attribute name="checkedPS" type="java.lang.String" required="false" description="复选框选中时是否关联父子节点,ps关联父子,p关联父,s关联子,都不关联为空"%>
|
<%@ attribute name="checkedPS" type="java.lang.String" required="false" description="复选框选中时是否关联父子节点,ps关联父子,p关联父,s关联子,都不关联为空"%>
|
||||||
<%@ attribute name="unCheckedPS" type="java.lang.String" required="false" description="复选框取消选中时是否关联父子节点,ps关联父子,p关联父,s关联子,都不关联为空"%>
|
<%@ attribute name="unCheckedPS" type="java.lang.String" required="false" description="复选框取消选中时是否关联父子节点,ps关联父子,p关联父,s关联子,都不关联为空"%>
|
||||||
|
<%@ attribute name="enableAddBtn" type="java.lang.Boolean" required="false" description="节点是否可编辑"%>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<input id="${id}Id" name="${name}" class="${cssClass} singleClass" type="hidden" value="${value}" />
|
<input id="${id}Id" name="${name}" class="${cssClass} singleClass" type="hidden" value="${value}" />
|
||||||
<input id="${id}Name" name="${labelName}" ${allowInput?'':'readonly="readonly"'} type="text" value="<spring:message code='${empty value?"":labelValue}'/>" data-msg-required="${dataMsgRequired}" placeholder="${empty value?labelValue:value}"
|
<input id="${id}Name" name="${labelName}" ${allowInput?'':'readonly="readonly"'} type="text" value="<spring:message code='${empty value?"":labelValue}'/>" data-msg-required="${dataMsgRequired}" placeholder="${empty value?labelValue:value}"
|
||||||
@@ -45,7 +46,7 @@
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
// 正常打开
|
// 正常打开
|
||||||
top.$.jBox.open("iframe:${ctx}/tag/treeselect?url="+encodeURIComponent("${url}")+"&selectIds="+$("#${id}Id").val()+"&module=${module}&checked=${checked}&extId=${extId}&isAll=${isAll}&title=${title}", "<spring:message code='choose'/> <spring:message code='${title}'/>", 320, 420, {
|
top.$.jBox.open("iframe:${ctx}/tag/treeselect?url="+encodeURIComponent("${url}")+"&selectIds="+$("#${id}Id").val()+"&module=${module}&checked=${checked}&extId=${extId}&isAll=${isAll}&title=${title}&enableAddBtn=${enableAddBtn}", "<spring:message code='choose'/> <spring:message code='${title}'/>", 320, 420, {
|
||||||
ajaxData:{selectIds: $("#${id}Id").val()},buttons:{"<spring:message code='ok'/>":"ok", "<spring:message code='clear'/>":"clear","<spring:message code='close'/>":true}, submit:function(v, h, f){
|
ajaxData:{selectIds: $("#${id}Id").val()},buttons:{"<spring:message code='ok'/>":"ok", "<spring:message code='clear'/>":"clear","<spring:message code='close'/>":true}, submit:function(v, h, f){
|
||||||
if (v == "ok"){
|
if (v == "ok"){
|
||||||
var tree = h.find("iframe")[0].contentWindow.tree;//h.find("iframe").contents();
|
var tree = h.find("iframe")[0].contentWindow.tree;//h.find("iframe").contents();
|
||||||
@@ -57,6 +58,7 @@
|
|||||||
}
|
}
|
||||||
//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; // 如果为复选框选择,并且父子节点有关联,则过滤掉父节点
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ $(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=${app}" extId=""
|
||||||
cssClass="form-control required"/>
|
cssClass="form-control required"/>
|
||||||
@@ -142,22 +142,13 @@ $(function(){
|
|||||||
<div for="bytes"></div>
|
<div for="bytes"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6 hidden">
|
||||||
<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:if test="${dict.itemCode eq 0}">
|
||||||
<c:when test="${dict.itemCode eq _cfg.doLog}">
|
<input type="radio" name="doLog" checked value="${dict.itemCode}" ><spring:message code="${dict.itemValue}"/>
|
||||||
<label class="radio-inline">
|
</c:if>
|
||||||
<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>
|
</c:forEach>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -142,22 +142,13 @@ $(function(){
|
|||||||
<div for="domain"></div>
|
<div for="domain"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6 hidden">
|
||||||
<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:if test="${dict.itemCode eq 0}">
|
||||||
<c:when test="${dict.itemCode eq _cfg.doLog}">
|
<input type="radio" name="doLog" checked value="${dict.itemCode}" ><spring:message code="${dict.itemValue}"/>
|
||||||
<label class="radio-inline">
|
</c:if>
|
||||||
<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>
|
</c:forEach>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -171,22 +171,13 @@ $(function(){
|
|||||||
</div>
|
</div>
|
||||||
</c:if>
|
</c:if>
|
||||||
<!-- doLog -->
|
<!-- doLog -->
|
||||||
<div class="col-md-6">
|
<div class="col-md-6 hidden">
|
||||||
<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:if test="${dict.itemCode eq 0}">
|
||||||
<c:when test="${dict.itemCode eq _cfg.doLog}">
|
<input type="radio" name="doLog" checked value="${dict.itemCode}" ><spring:message code="${dict.itemValue}"/>
|
||||||
<label class="radio-inline">
|
</c:if>
|
||||||
<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>
|
</c:forEach>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -170,22 +170,13 @@ $(function(){
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</c:if>
|
</c:if>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6 hidden">
|
||||||
<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:if test="${dict.itemCode eq 0}">
|
||||||
<c:when test="${dict.itemCode eq _cfg.doLog}">
|
<input type="radio" name="doLog" checked value="${dict.itemCode}" ><spring:message code="${dict.itemValue}"/>
|
||||||
<label class="radio-inline">
|
</c:if>
|
||||||
<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>
|
</c:forEach>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ $(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=${app}" extId=""
|
||||||
cssClass="form-control required"/>
|
cssClass="form-control required"/>
|
||||||
@@ -185,23 +185,14 @@ $(function(){
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- doLog -->
|
<!-- doLog -->
|
||||||
<div class="row">
|
<div class="row hidden">
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<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:if test="${dict.itemCode eq 0}">
|
||||||
<c:when test="${dict.itemCode eq _cfg.doLog}">
|
<input type="radio" name="doLog" checked value="${dict.itemCode}" ><spring:message code="${dict.itemValue}"/>
|
||||||
<label class="radio-inline">
|
</c:if>
|
||||||
<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>
|
</c:forEach>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -13,6 +13,11 @@ $(function(){
|
|||||||
}else{
|
}else{
|
||||||
$("#ratelimit").hide();
|
$("#ratelimit").hide();
|
||||||
}
|
}
|
||||||
|
if(($(".action:checked").val()==1) || ($(".action:checked").val()==16)){
|
||||||
|
$(".subscribeId").show();
|
||||||
|
}else{
|
||||||
|
$(".subscribeId").hide();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
$("#serviceId").val($(".action:checked").attr("serviceId"));
|
$("#serviceId").val($(".action:checked").attr("serviceId"));
|
||||||
$("#protocolId").val($(".action:checked").attr("protocolId"));
|
$("#protocolId").val($(".action:checked").attr("protocolId"));
|
||||||
@@ -21,6 +26,11 @@ $(function(){
|
|||||||
}else{
|
}else{
|
||||||
$("#ratelimit").hide();
|
$("#ratelimit").hide();
|
||||||
}
|
}
|
||||||
|
if(($(".action:checked").val()==1) || ($(".action:checked").val()==16)){
|
||||||
|
$(".subscribeId").show();
|
||||||
|
}else{
|
||||||
|
$(".subscribeId").hide();
|
||||||
|
}
|
||||||
$("#cfgFrom").validate({
|
$("#cfgFrom").validate({
|
||||||
errorPlacement: function(error,element){
|
errorPlacement: function(error,element){
|
||||||
if($(element).parents().hasClass("tagsinput")){
|
if($(element).parents().hasClass("tagsinput")){
|
||||||
@@ -31,6 +41,11 @@ $(function(){
|
|||||||
},
|
},
|
||||||
submitHandler: function(form){
|
submitHandler: function(form){
|
||||||
var flag = true;
|
var flag = true;
|
||||||
|
//代表所有业务都隐藏了,提示必须增加一种业务数据
|
||||||
|
if($(".boxSolid").length ==$(".boxSolid.hidden").length){
|
||||||
|
top.$.jBox.tip("<spring:message code='one_more'/>", "<spring:message code='info'/>");
|
||||||
|
return;
|
||||||
|
}
|
||||||
$("input[name$='cfgKeywords']").each(function(){
|
$("input[name$='cfgKeywords']").each(function(){
|
||||||
if($(this).val()==''){
|
if($(this).val()==''){
|
||||||
$(this).parents(".form-group").find(
|
$(this).parents(".form-group").find(
|
||||||
@@ -65,7 +80,6 @@ $(function(){
|
|||||||
if($("input[name='ratelimit']").is(":hidden")){
|
if($("input[name='ratelimit']").is(":hidden")){
|
||||||
$("input[name='ratelimit']").val("");
|
$("input[name='ratelimit']").val("");
|
||||||
}
|
}
|
||||||
/* $("#appCode").val($("#specServiceIdId").val()); */
|
|
||||||
loading('onloading...');
|
loading('onloading...');
|
||||||
form.submit();
|
form.submit();
|
||||||
}else{
|
}else{
|
||||||
@@ -141,7 +155,8 @@ var delContent = function(contentClassName, addBtnClassName) {
|
|||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<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>
|
||||||
<div class="page-content">
|
<div class="page-content">
|
||||||
<c:forEach items="${fns:getDictList('SPECIFIC_SERVICE_CFG_TYPE') }" var="dict">
|
<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:if test="${dict.itemValue eq 'social_app'}"><c:set var="app" value="${dict.itemCode}"/></c:if>
|
||||||
@@ -166,17 +181,14 @@ var delContent = function(contentClassName, addBtnClassName) {
|
|||||||
<input type="hidden" name="compileId" value="${_cfg.compileId}">
|
<input type="hidden" name="compileId" value="${_cfg.compileId}">
|
||||||
<input type="hidden" name="functionId" value="${_cfg.functionId}">
|
<input type="hidden" name="functionId" value="${_cfg.functionId}">
|
||||||
<input type="hidden" id="serviceId" name="serviceId" value="${_cfg.serviceId}">
|
<input type="hidden" id="serviceId" name="serviceId" value="${_cfg.serviceId}">
|
||||||
<%-- <input type="hidden" id="appCode" name="appCode" value="${_cfg.appCode}"> --%>
|
|
||||||
<%-- <input type="hidden" id="behavCode" name="behavCode" value="${_cfg.behavCode}"> --%>
|
|
||||||
<input type="hidden" id="exprType" name="exprType" value="0">
|
|
||||||
<input type="hidden" id="matchMethod" name="matchMethod" value="0">
|
|
||||||
<input type="hidden" id="isHexbin" name="isHexbin" value="0">
|
|
||||||
<div class="form-body">
|
<div class="form-body">
|
||||||
<!-- desc and action -->
|
<!-- desc and action -->
|
||||||
|
|
||||||
<c:set var="ipCfgIndex" value="0"></c:set>
|
<c:set var="ipCfgIndex" value="0"></c:set>
|
||||||
|
<c:set var="subscribeIdCfgIndex" value="0"></c:set>
|
||||||
<c:forEach items="${regionList}" var="region" varStatus="status">
|
<c:forEach items="${regionList}" var="region" varStatus="status">
|
||||||
<c:if test="${region.regionType eq 2 }">
|
<c:if test="${region.configServiceType eq 'app_policy' }">
|
||||||
<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="row">
|
||||||
@@ -273,6 +285,49 @@ var delContent = function(contentClassName, addBtnClassName) {
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
</c:if>
|
</c:if>
|
||||||
|
<!-- subscribeId配置 -->
|
||||||
|
<div class="subscribeId" >
|
||||||
|
<c:if test="${region.configServiceType eq 'subscribe_id'}">
|
||||||
|
<c:set var="tabName" value="${region.configRegionValue}Tab"></c:set>
|
||||||
|
<h4 class="form-section">
|
||||||
|
<spring:message code="${region.configRegionValue}" />
|
||||||
|
<small> <span
|
||||||
|
class="glyphicon glyphicon-plus ${tabName}Add"
|
||||||
|
onClick="addContent(this,'${tabName}')" title="add"></span></small>
|
||||||
|
</h4>
|
||||||
|
<c:set var="cfgName" value="ntcSubscribeIdCfgList[${subscribeIdCfgIndex}]"></c:set>
|
||||||
|
<c:set var="regionValue" value="${region.configRegionValue}"></c:set>
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${fn:length(_cfg.ntcSubscribeIdCfgList)>0 and (!empty _cfg.ntcSubscribeIdCfgList[subscribeIdCfgIndex].cfgId)}">
|
||||||
|
<c:set var="isBreak" value="false" ></c:set>
|
||||||
|
<c:forEach items="${_cfg.ntcSubscribeIdCfgList}" var="cfg">
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${region.configRegionValue eq cfg.cfgType and !isBreak}">
|
||||||
|
<div class="row boxSolid ${tabName}${status.index}">
|
||||||
|
<%@include file="/WEB-INF/views/cfg/complexCfgForm.jsp"%>
|
||||||
|
</div>
|
||||||
|
<c:set var="isBreak" value="true" ></c:set>
|
||||||
|
<c:set var="subscribeIdCfgIndex" value="${subscribeIdCfgIndex+1 }"></c:set>
|
||||||
|
</c:when>
|
||||||
|
</c:choose>
|
||||||
|
</c:forEach>
|
||||||
|
<c:if test="${!isBreak}">
|
||||||
|
<div class="row boxSolid ${tabName}${status.index} hidden disabled">
|
||||||
|
<%@include file="/WEB-INF/views/cfg/complexCfgForm.jsp"%>
|
||||||
|
</div>
|
||||||
|
<c:set var="subscribeIdCfgIndex" value="${subscribeIdCfgIndex+1 }"></c:set>
|
||||||
|
</c:if>
|
||||||
|
</c:when>
|
||||||
|
<c:otherwise>
|
||||||
|
<div class="row boxSolid ${tabName}${status.index} hidden disabled">
|
||||||
|
<%@include file="/WEB-INF/views/cfg/complexCfgForm.jsp"%>
|
||||||
|
</div>
|
||||||
|
<c:set var="subscribeIdCfgIndex" value="${subscribeIdCfgIndex+1 }"></c:set>
|
||||||
|
</c:otherwise>
|
||||||
|
</c:choose>
|
||||||
|
</c:if>
|
||||||
|
</div>
|
||||||
|
<!-- IP配置 -->
|
||||||
<c:if test="${region.regionType eq 1 }">
|
<c:if test="${region.regionType eq 1 }">
|
||||||
<h4 class="form-section">
|
<h4 class="form-section">
|
||||||
<c:set var="tabName" value="${region.configRegionValue}Tab"></c:set>
|
<c:set var="tabName" value="${region.configRegionValue}Tab"></c:set>
|
||||||
@@ -301,6 +356,7 @@ var delContent = function(contentClassName, addBtnClassName) {
|
|||||||
</c:otherwise>
|
</c:otherwise>
|
||||||
</c:choose>
|
</c:choose>
|
||||||
</c:if>
|
</c:if>
|
||||||
|
|
||||||
</c:forEach>
|
</c:forEach>
|
||||||
<%@include file="/WEB-INF/include/form/areaInfo.jsp" %>
|
<%@include file="/WEB-INF/include/form/areaInfo.jsp" %>
|
||||||
<%@include file="/WEB-INF/include/form/basicInfo.jsp" %>
|
<%@include file="/WEB-INF/include/form/basicInfo.jsp" %>
|
||||||
|
|||||||
@@ -170,11 +170,14 @@ $(function(){
|
|||||||
</div>
|
</div>
|
||||||
</c:if>
|
</c:if>
|
||||||
<!-- doLog -->
|
<!-- doLog -->
|
||||||
<div class="col-md-6">
|
<div class="col-md-6 hidden">
|
||||||
<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:if test="${dict.itemCode eq 0}">
|
||||||
|
<input type="radio" name="doLog" checked value="${dict.itemCode}" ><spring:message code="${dict.itemValue}"/>
|
||||||
|
</c:if>
|
||||||
|
<%-- <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" checked value="${dict.itemCode}" ><spring:message code="${dict.itemValue}"/>
|
<input type="radio" name="doLog" checked value="${dict.itemCode}" ><spring:message code="${dict.itemValue}"/>
|
||||||
@@ -185,7 +188,7 @@ $(function(){
|
|||||||
<input type="radio" name="doLog" value="${dict.itemCode}" ><spring:message code="${dict.itemValue}"/>
|
<input type="radio" name="doLog" value="${dict.itemCode}" ><spring:message code="${dict.itemValue}"/>
|
||||||
</label>
|
</label>
|
||||||
</c:otherwise>
|
</c:otherwise>
|
||||||
</c:choose>
|
</c:choose> --%>
|
||||||
</c:forEach>
|
</c:forEach>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
400
src/main/webapp/WEB-INF/views/cfg/app/appTcpCfgForm.jsp
Normal file
400
src/main/webapp/WEB-INF/views/cfg/app/appTcpCfgForm.jsp
Normal file
@@ -0,0 +1,400 @@
|
|||||||
|
<%@ page contentType="text/html;charset=UTF-8"%>
|
||||||
|
<%@ include file="/WEB-INF/include/taglib.jsp"%>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title><spring:message code="${cfgName}"></spring:message></title>
|
||||||
|
<script type="text/javascript">
|
||||||
|
$(function(){
|
||||||
|
$(".action").on("change", function() {
|
||||||
|
$("#serviceId").val($(this).attr("serviceId"));
|
||||||
|
});
|
||||||
|
$("#serviceId").val($(".action:checked").attr("serviceId"));
|
||||||
|
$("#cfgFrom").validate({
|
||||||
|
errorPlacement: function(error,element){
|
||||||
|
if($(element).parents().hasClass("tagsinput")){
|
||||||
|
$(element).parents(".col-md-6").next("div").append(error);
|
||||||
|
}else{
|
||||||
|
$(element).parents(".form-group").find("div[for='"+element.attr("name")+"']").append(error);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
submitHandler: function(form){
|
||||||
|
var flag = true;
|
||||||
|
if(flag){
|
||||||
|
var maxTtl=$("[name=upBoundary]").val();
|
||||||
|
maxTtl = parseInt(maxTtl);
|
||||||
|
var minTtl=$("[name=lowBoundary]").val();
|
||||||
|
minTtl = parseInt(minTtl);
|
||||||
|
if(maxTtl > 4294967295){
|
||||||
|
message="<spring:message code='app_tcp_max_min'/>";
|
||||||
|
$("div[for=upBoundary]").html("<label for=\"upBoundary\" class=\"error\" id=\"upBoundary-error\">"+message+"</label>");
|
||||||
|
flag=false;
|
||||||
|
}
|
||||||
|
if(minTtl>maxTtl){
|
||||||
|
message="<spring:message code='max_shouldnot_less_than_min'/>";
|
||||||
|
$("div[for=upBoundary]").html("<label for=\"upBoundary\" class=\"error\" id=\"upBoundary-error\">"+message+"</label>");
|
||||||
|
flag=false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if(flag){
|
||||||
|
$("input[name$='exprType']").attr("disabled",false);
|
||||||
|
$("#appCode").val($("#specServiceIdId").val());
|
||||||
|
loading('onloading...');
|
||||||
|
form.submit();
|
||||||
|
}else{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
errorContainer: "#messageBox",
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<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="tagsinputTip" style="display:none"><spring:message code="multiple_keywords_tip"></spring:message></span>
|
||||||
|
<h3 class="page-title">
|
||||||
|
<spring:message code="app_tcp_config"></spring:message>
|
||||||
|
</h3>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<div class="portlet box blue">
|
||||||
|
<div class="portlet-title">
|
||||||
|
<div class="caption">
|
||||||
|
<i class="fa fa-gift"></i>
|
||||||
|
<c:if test="${empty _cfg.cfgId}"><spring:message code="add"></spring:message></c:if>
|
||||||
|
<c:if test="${not empty _cfg.cfgId}"><spring:message code="edit"></spring:message></c:if>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="portlet-body form">
|
||||||
|
<!-- BEGIN FORM-->
|
||||||
|
<form id="cfgFrom" action="${ctx}/app/saveAppTcpCfg" method="post" class="form-horizontal">
|
||||||
|
<input type="hidden" name="cfgId" value="${_cfg.cfgId}">
|
||||||
|
<input type="hidden" name="compileId" value="${_cfg.compileId}">
|
||||||
|
<input type="hidden" name="functionId" value="${_cfg.functionId}">
|
||||||
|
<input type="hidden" id="serviceId" name="serviceId" value="${_cfg.serviceId}">
|
||||||
|
<input type="hidden" id="appCode" name="appCode" value="${_cfg.appCode}">
|
||||||
|
<input type="hidden" id="behavCode" name="behavCode" value="${_cfg.behavCode}">
|
||||||
|
<!-- 配置域类型 -->
|
||||||
|
<div class="form-body">
|
||||||
|
<div class="row">
|
||||||
|
<!-- desc and action -->
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group">
|
||||||
|
<c:set var="spec_service_id"><spring:message code="social_app"/></c:set>
|
||||||
|
<label class="control-label col-md-3"><font color="red">*</font><spring:message code="social_app"/></label>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<sys:treeselect id="specServiceId" name="specServiceId" value="${_cfg.specServiceId}"
|
||||||
|
labelName="parent.specServiceName" notAllowSelectRoot="true" notAllowSelectParent="true"
|
||||||
|
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=""
|
||||||
|
cssClass="form-control required"/>
|
||||||
|
</div>
|
||||||
|
<div for="parent.specServiceName"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="control-label col-md-3">
|
||||||
|
<spring:message code="config_describe" /></label>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<input class="form-control" type="text"
|
||||||
|
name="cfgDesc"
|
||||||
|
value="${_cfg.cfgDesc}">
|
||||||
|
</div>
|
||||||
|
<div for="cfgDesc"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-6 hidden">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="control-label col-md-3"><font color="red">*</font><spring:message code="action"/></label>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<c:forEach items="${serviceList}" var="service"
|
||||||
|
varStatus="satus">
|
||||||
|
<label class="radio-inline"> <c:if
|
||||||
|
test="${_cfg.functionId eq service.functionId}">
|
||||||
|
<input type="radio" name="action"
|
||||||
|
serviceId="${service.serviceId }"
|
||||||
|
protocolId="${service.protocolId }"
|
||||||
|
value="${service.action }" class="required action"
|
||||||
|
<c:if test="${_cfg.action==service.action || (_cfg.action==null && satus.index==0)}">checked</c:if>>
|
||||||
|
<c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict">
|
||||||
|
<c:if test="${dict.itemCode eq service.action }">
|
||||||
|
<spring:message code="${dict.itemValue }"/>
|
||||||
|
</c:if>
|
||||||
|
</c:forEach>
|
||||||
|
</c:if>
|
||||||
|
</label>
|
||||||
|
</c:forEach>
|
||||||
|
</div>
|
||||||
|
<div for="action"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<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="min_tcp"/></label>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<input class="form-control required number" placeholder="<spring:message code="tcp_unit" />" type="text" name="lowBoundary" value="${_cfg.lowBoundary}" min="0">
|
||||||
|
</div>
|
||||||
|
<div for="lowBoundary"></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="max_tcp"/></label>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<input class="form-control required number" placeholder="<spring:message code="tcp_unit" />" type="text" name="upBoundary" value="${_cfg.upBoundary}" min="0">
|
||||||
|
</div>
|
||||||
|
<div for="upBoundary"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<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>
|
||||||
|
<c:forEach items="${regionList}" var="region">
|
||||||
|
<c:if test="${_cfg.functionId eq region.functionId}">
|
||||||
|
<input type="hidden" name="cfgType" value="${region.configRegionValue}">
|
||||||
|
<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:forEach>
|
||||||
|
</div>
|
||||||
|
<input name="isAreaEffective" type="hidden" value="0">
|
||||||
|
<input name="requestId" value="0" type="hidden">
|
||||||
|
</div>
|
||||||
|
<div class="form-actions">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-offset-3 col-md-8">
|
||||||
|
<button id="save" type="submit" class="btn green"><spring:message code="submit"/></button>
|
||||||
|
<button id="cancel" type="button" class="btn default"><spring:message code="cancel"/></button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6"> </div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
<!-- END FORM-->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
353
src/main/webapp/WEB-INF/views/cfg/app/appTcpCfgList.jsp
Normal file
353
src/main/webapp/WEB-INF/views/cfg/app/appTcpCfgList.jsp
Normal file
@@ -0,0 +1,353 @@
|
|||||||
|
<%@ page contentType="text/html;charset=UTF-8"%>
|
||||||
|
<%@ include file="/WEB-INF/include/taglib.jsp"%>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title><spring:message code="${cfgName}"></spring:message></title>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
$(document).ready(function() {
|
||||||
|
$(".tooltips").tooltip();
|
||||||
|
//搜索框提示语初始化
|
||||||
|
if("${cfg.cfgDesc}"){
|
||||||
|
$("#intype").val("${cfg.cfgDesc}");
|
||||||
|
}else if("${cfg.compileId}"){
|
||||||
|
$("#intype").val("${cfg.compileId}");
|
||||||
|
}else{
|
||||||
|
$("#intype").attr("placeholder","<spring:message code='input'/> "+$("#seltype").find("option:selected").text());
|
||||||
|
}
|
||||||
|
$("#seltype").change(function(){
|
||||||
|
$("#intype").attr("placeholder","<spring:message code='input'/> "+$(this).find("option:selected").text());
|
||||||
|
});
|
||||||
|
//筛选功能初始化
|
||||||
|
filterActionInit();
|
||||||
|
$("#isAudit").change(function(){
|
||||||
|
page();
|
||||||
|
});
|
||||||
|
//reset
|
||||||
|
$("#resetBtn").on("click",function(){
|
||||||
|
$("select.selectpicker").each(function(){
|
||||||
|
$(this).selectpicker('val',$(this).find('option:first').val());
|
||||||
|
$(this).find("option").attr("selected",false);
|
||||||
|
$(this).find("option:first").attr("selected",true);
|
||||||
|
});
|
||||||
|
$(".Wdate").attr("value",'');
|
||||||
|
$("#level").attr("value",'');
|
||||||
|
$("#searchForm")[0].reset();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<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">
|
||||||
|
<shiro:hasPermission name="app:tcp:config">
|
||||||
|
<button type="button" class="btn btn-primary"
|
||||||
|
onClick="javascript:window.location='${ctx}/app/tcpCfgForm?functionId=${cfg.functionId}'">
|
||||||
|
<i class="fa fa-plus"></i>
|
||||||
|
<spring:message code="add"></spring:message></button>
|
||||||
|
</shiro:hasPermission>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h3 class="page-title">
|
||||||
|
<spring:message code="app_tcp_config"></spring:message>
|
||||||
|
<small><spring:message code="date_list"/></small>
|
||||||
|
</h3>
|
||||||
|
<h5 class="page-header"></h5>
|
||||||
|
<div class="col-md-12">
|
||||||
|
<div class="portlet">
|
||||||
|
<div class="portlet-body">
|
||||||
|
<div class="row" >
|
||||||
|
<sys:message content="${message}"/>
|
||||||
|
<form:form id="searchForm" modelAttribute="cfg" action="${ctx}/app/tcpCfgList?functionId=${cfg.functionId}" method="post" class="form-search">
|
||||||
|
<input id="functionId" name="functionId" type="hidden" value="${cfg.functionId}"/>
|
||||||
|
<input id="audit" name="audit" type="hidden" value="${audit}"/>
|
||||||
|
<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
|
||||||
|
<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
|
||||||
|
<sys:tableSort id="orderBy" name="orderBy" value="${page.orderBy}"
|
||||||
|
callback="page();" />
|
||||||
|
<!-- 筛选按钮展开状态-->
|
||||||
|
<input id="isFilterAction" name="isFilterAction" type="hidden" value="${cfg.isFilterAction }"/>
|
||||||
|
<!-- 搜索内容与操作按钮栏 -->
|
||||||
|
<div class="col-md-12">
|
||||||
|
<div class="pull-left">
|
||||||
|
<c:set var="state"><spring:message code='state'/></c:set>
|
||||||
|
<form:select path="isAudit" class="selectpicker select2 input-small">
|
||||||
|
<form:option value=""><spring:message code="all_states"/></form:option>
|
||||||
|
<form:option value="0"><spring:message code="created"></spring:message></form:option>
|
||||||
|
<form:option value="1"><spring:message code="approved"></spring:message></form:option>
|
||||||
|
<form:option value="2"><spring:message code="unapproved"></spring:message></form:option>
|
||||||
|
<form:option value="3"><spring:message code="cancel_approved"></spring:message></form:option>
|
||||||
|
</form:select>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="pull-left">
|
||||||
|
<c:set var="spec_service_id"><spring:message code="social_app"/></c:set>
|
||||||
|
<sys:treeselect id="specServiceId" name="specServiceId" value="${cfg.specServiceId}"
|
||||||
|
labelName="parent.specServiceName" notAllowSelectRoot="true" notAllowSelectParent="true"
|
||||||
|
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=""
|
||||||
|
cssClass="form-control input-small"/>
|
||||||
|
</div>
|
||||||
|
<div class="pull-left">
|
||||||
|
<div class="input-group">
|
||||||
|
<div class="input-group-btn">
|
||||||
|
|
||||||
|
<form:select path="seltype" class="selectpicker select2 input-small" >
|
||||||
|
<%-- <form:option value="bytes"><spring:message code="bytes"></spring:message></form:option>
|
||||||
|
--%> <form:option value="compileId"><spring:message code="cfg_id"></spring:message></form:option>
|
||||||
|
<form:option value="cfgDesc"><spring:message code="config_describe"></spring:message></form:option>
|
||||||
|
</form:select>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<input id="intype" class="form-control input-medium" type="text" value="">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="pull-left">
|
||||||
|
<button type="button" class="btn blue" onClick="return page()"> <i class="fa fa-search"></i> <spring:message code="search"/> </button>
|
||||||
|
<button type="button" class="btn btn-default" id="resetBtn"> <i class="fa fa-refresh"></i> <spring:message code="reset"/> </button>
|
||||||
|
<button type="button" class="btn btn-default" id="filter-btn"> <spring:message code="filter"/> <i class="fa fa-angle-double-down"></i></button>
|
||||||
|
</div>
|
||||||
|
<div class="pull-right">
|
||||||
|
<shiro:hasPermission name="app:tcp:config">
|
||||||
|
<sys:delRow url="${ctx}/app/tcpCfgForm" id="contentTable" label="update"></sys:delRow>
|
||||||
|
<sys:delRow url="${ctx}/app/updateAppTcpCfgValid?isValid=-1&functionId=${cfg.functionId }" id="contentTable" label="delete"></sys:delRow>
|
||||||
|
</shiro:hasPermission>
|
||||||
|
<shiro:hasPermission name="app:tcp:confirm">
|
||||||
|
<div class="btn-group">
|
||||||
|
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
|
||||||
|
<i class="fa fa-wrench"></i> <spring:message code="examine"></spring:message>
|
||||||
|
<i class="fa fa-angle-down"></i>
|
||||||
|
</button>
|
||||||
|
<ul class="dropdown-menu pull-right">
|
||||||
|
<li><sys:delRow url="${ctx}/app/auditAppTcpCfg?isAudit=1&isValid=1&functionId=${cfg.functionId }" id="contentTable" label="approved"></sys:delRow></li>
|
||||||
|
<li><sys:delRow url="${ctx}/app/auditAppTcpCfg?isAudit=2&isValid=0&functionId=${cfg.functionId }" id="contentTable" label="unapproved"></sys:delRow></li>
|
||||||
|
<li><sys:delRow url="${ctx}/app/auditAppTcpCfg?isAudit=3&isValid=0&functionId=${cfg.functionId }" id="contentTable" label="cancelPass"></sys:delRow></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</shiro:hasPermission>
|
||||||
|
<a class="btn btn-icon-only btn-default setfields tooltips"
|
||||||
|
data-container="body" data-placement="top" data-original-title=<spring:message code="custom_columns"/> href="javascript:;">
|
||||||
|
<i class="icon-wrench"></i>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- /搜索内容与操作按钮栏 -->
|
||||||
|
|
||||||
|
<!-- 筛选搜索内容栏默认隐藏-->
|
||||||
|
<div class="col-md-12 filter-action-select-panle hide" >
|
||||||
|
<div class="row hidden">
|
||||||
|
|
||||||
|
<div class="col-md-3">
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="control-label"><spring:message code='request_number'/></label>
|
||||||
|
<c:set var="select"><spring:message code='select'/></c:set>
|
||||||
|
<form:select path="requestId" class="selectpicker form-control" data-live-search="true" data-live-search-placeholder="search">
|
||||||
|
<form:option value=""><spring:message code="select"/></form:option>
|
||||||
|
<c:forEach items="${requestInfos}" var="requestInfo" >
|
||||||
|
<form:option value="${requestInfo.id}"><spring:message code="${requestInfo.requestTitle}"></spring:message></form:option>
|
||||||
|
</c:forEach>
|
||||||
|
</form:select>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-3">
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="control-label"><spring:message code='type'/></label>
|
||||||
|
<form:select path="classify" class="selectpicker form-control" data-live-search="true" data-live-search-placeholder="search">
|
||||||
|
<form:option value=""><spring:message code="select"/></form:option>
|
||||||
|
<c:forEach items="${fls}" var="fl" >
|
||||||
|
<form:option value="${fl.serviceDictId}"><spring:message code="${fl.itemValue}"></spring:message></form:option>
|
||||||
|
</c:forEach>
|
||||||
|
</form:select>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-3">
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="control-label"><spring:message code='attribute'/></label>
|
||||||
|
<c:set var="select"><spring:message code='select'/></c:set>
|
||||||
|
<form:select path="attribute" class="selectpicker form-control" data-live-search="true" data-live-search-placeholder="search">
|
||||||
|
<form:option value=""><spring:message code="select"/></form:option>
|
||||||
|
<c:forEach items="${xzs}" var="xz" >
|
||||||
|
<form:option value="${xz.serviceDictId}"><spring:message code="${xz.itemValue}"></spring:message></form:option>
|
||||||
|
</c:forEach>
|
||||||
|
</form:select>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-3">
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="control-label"><spring:message code='label'/></label>
|
||||||
|
<form:select path="lable" class="selectpicker form-control" data-live-search="true" data-live-search-placeholder="search">
|
||||||
|
<form:option value=""><spring:message code="select"/></form:option>
|
||||||
|
<c:forEach items="${lables}" var="lable" >
|
||||||
|
<form:option value="${lable.serviceDictId}"><spring:message code="${lable.itemValue}"></spring:message></form:option>
|
||||||
|
</c:forEach>
|
||||||
|
</form:select>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-2">
|
||||||
|
<div class="form-group">
|
||||||
|
<label><spring:message code="config_time"/>:</label>
|
||||||
|
<input name="search_create_time_start" type="text" readonly="readonly" maxlength="20" class="form-control Wdate"
|
||||||
|
value="<fmt:formatDate value='${cfg.search_create_time_start}' pattern='yyyy-MM-dd HH:mm:ss'/>" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:true});"/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-2">
|
||||||
|
<div class="form-group">
|
||||||
|
<label> </label>
|
||||||
|
<input name="search_create_time_end" type="text" readonly="readonly" maxlength="20" class="form-control Wdate"
|
||||||
|
value="<fmt:formatDate value="${cfg.search_create_time_end}" pattern="yyyy-MM-dd HH:mm:ss"/>" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:true});"/>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-2">
|
||||||
|
<div class="form-group">
|
||||||
|
<label><spring:message code="edit_time"/>:</label>
|
||||||
|
<input name="search_edit_time_start" type="text" readonly="readonly" maxlength="20" class="form-control Wdate"
|
||||||
|
value="<fmt:formatDate value="${cfg.search_edit_time_start}" pattern="yyyy-MM-dd HH:mm:ss"/>" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:true});"/>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-2">
|
||||||
|
<div class="form-group">
|
||||||
|
<label> </label>
|
||||||
|
<input name="search_edit_time_end" type="text" readonly="readonly" maxlength="20" class="form-control Wdate"
|
||||||
|
value="<fmt:formatDate value="${cfg.search_edit_time_end}" pattern="yyyy-MM-dd HH:mm:ss"/>" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:true});"/>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-2">
|
||||||
|
<div class="form-group">
|
||||||
|
<label><spring:message code="audit_time"/>:</label>
|
||||||
|
<input name="search_audit_time_start" type="text" readonly="readonly" maxlength="20" class="form-control Wdate"
|
||||||
|
value="<fmt:formatDate value="${cfg.search_audit_time_start}" pattern="yyyy-MM-dd HH:mm:ss"/>" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:true});"/>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-2">
|
||||||
|
<div class="form-group">
|
||||||
|
<label> </label>
|
||||||
|
<input name="search_audit_time_end" type="text" readonly="readonly" maxlength="20" class="form-control Wdate"
|
||||||
|
value="<fmt:formatDate value="${cfg.search_audit_time_end}" pattern="yyyy-MM-dd HH:mm:ss"/>" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:true});"/>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- /筛选搜索内容栏 结束-->
|
||||||
|
</form:form>
|
||||||
|
</div>
|
||||||
|
<div class="table-responsive">
|
||||||
|
<table id="contentTable" class="table table-striped table-bordered table-condensed text-nowrap">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th><input type="checkbox" class="i-checks" id="checkAll"></th>
|
||||||
|
<th class="cfgDesc"><spring:message code="config_describe"/></th>
|
||||||
|
<th><spring:message code="social_app"/></th>
|
||||||
|
<th><spring:message code="whether_hexbinary"/></th>
|
||||||
|
<th><spring:message code="expression_type"/></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="whether_area_block"/></th>
|
||||||
|
<th><spring:message code="letter"/></th>
|
||||||
|
<th><spring:message code="classification"/></th>
|
||||||
|
<th><spring:message code="attribute"/></th>
|
||||||
|
<th><spring:message code="label"/></th> --%>
|
||||||
|
<th><spring:message code="valid_identifier"/></th>
|
||||||
|
<th><spring:message code="is_audit"/></th>
|
||||||
|
<th><spring:message code="log_total"/></th>
|
||||||
|
<th><spring:message code="creator"/></th>
|
||||||
|
<th class="sort-column r.create_time"><spring:message code="config_time"/></th>
|
||||||
|
<th><spring:message code="editor"/></th>
|
||||||
|
<th class="sort-column r.edit_time"><spring:message code="edit_time"/></th>
|
||||||
|
<th><spring:message code="auditor"/></th>
|
||||||
|
<th class="sort-column r.audit_time"><spring:message code="audit_time"/></th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<c:forEach items="${page.list }" var="cfg" varStatus="status" step="1">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<input type="checkbox" class="i-checks child-checks" id="${cfg.cfgId}" value="${cfg.isAudit}">
|
||||||
|
</td>
|
||||||
|
<td>${cfg.cfgDesc }</td>
|
||||||
|
<td>${cfg.appName }</td>
|
||||||
|
<td>
|
||||||
|
<c:forEach items="${fns:getDictList('WHETHER_HEXBINARY')}" var="isHexbinC">
|
||||||
|
<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>
|
||||||
|
<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="deleted"/></c:if>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<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 '1'}"><span class="label label-success"><spring:message code="approved"></spring:message></span></c:when>
|
||||||
|
<c:when test="${cfg.isAudit eq '2'}"><span class="label label-warning"><spring:message code="unapproved"></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>
|
||||||
|
</td>
|
||||||
|
<td functionId="${cfg.functionId}" compileId="${cfg.compileId}" action="${cfg.action}"><div class="loading-total"></div></td>
|
||||||
|
<td>${cfg.creatorName }</td>
|
||||||
|
<td><fmt:formatDate value="${cfg.createTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
|
||||||
|
<td>${cfg.editorName }</td>
|
||||||
|
<td><fmt:formatDate value="${cfg.editTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
|
||||||
|
<td>${cfg.auditorName }</td>
|
||||||
|
<td><fmt:formatDate value="${cfg.auditTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
|
||||||
|
</tr>
|
||||||
|
</c:forEach>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
<div class="page" style="margin-top:40px">${page}</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
402
src/main/webapp/WEB-INF/views/cfg/app/appTopicDomainCfgForm.jsp
Normal file
402
src/main/webapp/WEB-INF/views/cfg/app/appTopicDomainCfgForm.jsp
Normal file
@@ -0,0 +1,402 @@
|
|||||||
|
<%@ page contentType="text/html;charset=UTF-8"%>
|
||||||
|
<%@ include file="/WEB-INF/include/taglib.jsp"%>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title><spring:message code="${cfgName}"></spring:message></title>
|
||||||
|
<script type="text/javascript">
|
||||||
|
$(function(){
|
||||||
|
$(".action").on("change", function() {
|
||||||
|
$("#serviceId").val($(this).attr("serviceId"));
|
||||||
|
});
|
||||||
|
$("#serviceId").val($(".action:checked").attr("serviceId"));
|
||||||
|
$("#cfgFrom").validate({
|
||||||
|
errorPlacement: function(error,element){
|
||||||
|
if($(element).parents().hasClass("tagsinput")){
|
||||||
|
$(element).parents(".col-md-6").next("div").append(error);
|
||||||
|
}else{
|
||||||
|
$(element).parents(".form-group").find("div[for='"+element.attr("name")+"']").append(error);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
submitHandler: function(form){
|
||||||
|
var flag = true;
|
||||||
|
$("input[name$='cfgKeywords']").each(function(){
|
||||||
|
if($(this).val()==''){
|
||||||
|
$(this).parents(".form-group").find(
|
||||||
|
"div[for='"
|
||||||
|
+ $(this).attr("name")
|
||||||
|
+ "']").html("<label id=\"cfgKeywordsError\" class=\"error\">"+$("#keywordError").text()+"</label>");
|
||||||
|
flag = false;
|
||||||
|
}
|
||||||
|
})
|
||||||
|
if(flag){
|
||||||
|
$("input[name$='exprType']").attr("disabled",false);
|
||||||
|
// $("#appCode").val($("#specServiceIdId").val());
|
||||||
|
loading('onloading...');
|
||||||
|
form.submit();
|
||||||
|
}else{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
errorContainer: "#messageBox",
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<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="tagsinputTip" style="display:none"><spring:message code="multiple_keywords_tip"></spring:message></span>
|
||||||
|
<h3 class="page-title">
|
||||||
|
<spring:message code="app_topic_domain_cfg"></spring:message>
|
||||||
|
</h3>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<div class="portlet box blue">
|
||||||
|
<div class="portlet-title">
|
||||||
|
<div class="caption">
|
||||||
|
<i class="fa fa-gift"></i>
|
||||||
|
<c:if test="${empty _cfg.cfgId}"><spring:message code="add"></spring:message></c:if>
|
||||||
|
<c:if test="${not empty _cfg.cfgId}"><spring:message code="edit"></spring:message></c:if>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="portlet-body form">
|
||||||
|
<!-- BEGIN FORM-->
|
||||||
|
<form id="cfgFrom" action="${ctx}/app/saveAppTopicDomainCfg" method="post" class="form-horizontal">
|
||||||
|
<input type="hidden" name="cfgId" value="${_cfg.cfgId}">
|
||||||
|
<input type="hidden" name="compileId" value="${_cfg.compileId}">
|
||||||
|
<input type="hidden" name="functionId" value="${_cfg.functionId}">
|
||||||
|
<input type="hidden" id="serviceId" name="serviceId" value="${_cfg.serviceId}">
|
||||||
|
<%-- <input type="hidden" id="appCode" name="appCode" value="${_cfg.appCode}"> --%>
|
||||||
|
<%-- <input type="hidden" id="behavCode" name="behavCode" value="${_cfg.behavCode}"> --%>
|
||||||
|
<div class="form-body">
|
||||||
|
<!-- desc and action -->
|
||||||
|
<div class="row">
|
||||||
|
<%-- <div class="col-md-6">
|
||||||
|
<c:set var="spec_service_id"><spring:message code="social_app"/></c:set>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="control-label col-md-3"><font color="red">*</font><spring:message code="social_app"/></label>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<sys:treeselect id="specServiceId" name="specServiceId" value="${_cfg.specServiceId}"
|
||||||
|
labelName="parent.specServiceName" notAllowSelectRoot="true" notAllowSelectParent="true"
|
||||||
|
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=""
|
||||||
|
cssClass="form-control required"/>
|
||||||
|
</div>
|
||||||
|
<div for="parent.specServiceName"></div>
|
||||||
|
</div>
|
||||||
|
</div> --%>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="control-label col-md-3">
|
||||||
|
<spring:message code="app_topic_domain_cfg" /></label>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<%-- <c:if test="${empty _cfg.topic}"> --%>
|
||||||
|
<form:select path="_cfg.topic" class="selectpicker form-control" data-live-search="true" data-live-search-placeholder="search">
|
||||||
|
<c:forEach items="${fns:getCodeList('serviceCode')}" var="dict">
|
||||||
|
<form:option value="${dict.code}"><spring:message code="${dict.item}"/></form:option>
|
||||||
|
</c:forEach>
|
||||||
|
</form:select>
|
||||||
|
<%-- </c:if> --%>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div for="topic"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="control-label col-md-3">
|
||||||
|
<spring:message code="config_describe" /></label>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<input class="form-control" type="text"
|
||||||
|
name="cfgDesc"
|
||||||
|
value="${_cfg.cfgDesc}">
|
||||||
|
</div>
|
||||||
|
<div for="cfgDesc"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-6 hidden">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="control-label col-md-3"><font color="red">*</font><spring:message code="action"/></label>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<c:forEach items="${serviceList}" var="service"
|
||||||
|
varStatus="satus">
|
||||||
|
<label class="radio-inline"> <c:if
|
||||||
|
test="${_cfg.functionId eq service.functionId}">
|
||||||
|
<input type="radio" name="action"
|
||||||
|
serviceId="${service.serviceId }"
|
||||||
|
protocolId="${service.protocolId }"
|
||||||
|
value="${service.action }" class="required action"
|
||||||
|
<c:if test="${_cfg.action==service.action || (_cfg.action==null && satus.index==0)}">checked</c:if>>
|
||||||
|
<c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict">
|
||||||
|
<c:if test="${dict.itemCode eq service.action }">
|
||||||
|
<spring:message code="${dict.itemValue }"/>
|
||||||
|
</c:if>
|
||||||
|
</c:forEach>
|
||||||
|
</c:if>
|
||||||
|
</label>
|
||||||
|
</c:forEach>
|
||||||
|
</div>
|
||||||
|
<div for="action"></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="domain" /></label>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<input class="form-control required domainCheck" type="text"
|
||||||
|
name="domain"
|
||||||
|
value="${_cfg.domain}">
|
||||||
|
</div>
|
||||||
|
<div for="domain"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6" hidden="true">
|
||||||
|
<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="0" ><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>
|
||||||
|
<c:forEach items="${regionList}" var="region">
|
||||||
|
<c:if test="${_cfg.functionId eq region.functionId}">
|
||||||
|
<input type="hidden" name="cfgType" value="${region.configRegionValue}">
|
||||||
|
<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:forEach>
|
||||||
|
</div>
|
||||||
|
<input name="isAreaEffective" type="hidden" value="0">
|
||||||
|
<%-- <%@include file="/WEB-INF/include/form/areaInfo.jsp" %> --%>
|
||||||
|
<input name="requestId" value="0" type="hidden">
|
||||||
|
<%-- <%@include file="/WEB-INF/include/form/basicInfo.jsp" %> --%>
|
||||||
|
</div>
|
||||||
|
<div class="form-actions">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-offset-3 col-md-8">
|
||||||
|
<button id="save" type="submit" class="btn green"><spring:message code="submit"/></button>
|
||||||
|
<button id="cancel" type="button" class="btn default"><spring:message code="cancel"/></button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6"> </div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
<!-- END FORM-->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
434
src/main/webapp/WEB-INF/views/cfg/app/appTopicDomainCfgList.jsp
Normal file
434
src/main/webapp/WEB-INF/views/cfg/app/appTopicDomainCfgList.jsp
Normal file
@@ -0,0 +1,434 @@
|
|||||||
|
<%@ page contentType="text/html;charset=UTF-8"%>
|
||||||
|
<%@ include file="/WEB-INF/include/taglib.jsp"%>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title><spring:message code="${cfgName}"></spring:message></title>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
$(document).ready(function() {
|
||||||
|
$(".tooltips").tooltip();
|
||||||
|
//搜索框提示语初始化
|
||||||
|
if("${cfg.cfgDesc}"){
|
||||||
|
$("#intype").val("${cfg.cfgDesc}");
|
||||||
|
}else if("${cfg.domain}"){
|
||||||
|
$("#intype").val("${cfg.domain}");
|
||||||
|
}else if("${cfg.compileId}"){
|
||||||
|
$("#intype").val("${cfg.compileId}");
|
||||||
|
}else{
|
||||||
|
$("#intype").attr("placeholder","<spring:message code='input'/> "+$("#seltype").find("option:selected").text());
|
||||||
|
}
|
||||||
|
$("#seltype").change(function(){
|
||||||
|
$("#intype").attr("placeholder","<spring:message code='input'/> "+$(this).find("option:selected").text());
|
||||||
|
});
|
||||||
|
//筛选功能初始化
|
||||||
|
filterActionInit();
|
||||||
|
$("#isAudit").change(function(){
|
||||||
|
page();
|
||||||
|
});
|
||||||
|
//reset
|
||||||
|
$("#resetBtn").on("click",function(){
|
||||||
|
$("select.selectpicker").each(function(){
|
||||||
|
$(this).selectpicker('val',$(this).find('option:first').val());
|
||||||
|
$(this).find("option").attr("selected",false);
|
||||||
|
$(this).find("option:first").attr("selected",true);
|
||||||
|
});
|
||||||
|
$(".Wdate").attr("value",'');
|
||||||
|
$("#level").attr("value",'');
|
||||||
|
$("#searchForm")[0].reset();
|
||||||
|
$("#intype").attr("placeholder","<spring:message code='input'/> "+$("#seltype").find("option:selected").text());
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<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">
|
||||||
|
<shiro:hasPermission name="app:topic:config">
|
||||||
|
<button type="button" class="btn btn-primary"
|
||||||
|
onClick="javascript:window.location='${ctx}/app/topicDomainCfgForm?functionId=${cfg.functionId}'">
|
||||||
|
<i class="fa fa-plus"></i>
|
||||||
|
<spring:message code="add"></spring:message></button>
|
||||||
|
</shiro:hasPermission>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h3 class="page-title">
|
||||||
|
<spring:message code="app_topic_domain_cfg"></spring:message>
|
||||||
|
<small><spring:message code="date_list"/></small>
|
||||||
|
</h3>
|
||||||
|
<h5 class="page-header"></h5>
|
||||||
|
<div class="col-md-12">
|
||||||
|
<div class="portlet">
|
||||||
|
<div class="portlet-body">
|
||||||
|
<div class="row" >
|
||||||
|
<sys:message content="${message}"/>
|
||||||
|
<form:form id="searchForm" modelAttribute="cfg" action="${ctx}/app/topicDomainCfgList?functionId=${cfg.functionId}" method="post" class="form-search">
|
||||||
|
<input id="functionId" name="functionId" type="hidden" value="${cfg.functionId}"/>
|
||||||
|
<input id="audit" name="audit" type="hidden" value="${audit}"/>
|
||||||
|
<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
|
||||||
|
<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
|
||||||
|
<sys:tableSort id="orderBy" name="orderBy" value="${page.orderBy}"
|
||||||
|
callback="page();" />
|
||||||
|
<!-- 筛选按钮展开状态-->
|
||||||
|
<input id="isFilterAction" name="isFilterAction" type="hidden" value="${cfg.isFilterAction }"/>
|
||||||
|
<!-- 搜索内容与操作按钮栏 -->
|
||||||
|
<div class="col-md-12">
|
||||||
|
<div class="pull-left">
|
||||||
|
<c:set var="state"><spring:message code='state'/></c:set>
|
||||||
|
<form:select path="isAudit" class="selectpicker select2 input-small">
|
||||||
|
<form:option value=""><spring:message code="all_states"/></form:option>
|
||||||
|
<form:option value="0"><spring:message code="created"></spring:message></form:option>
|
||||||
|
<form:option value="1"><spring:message code="approved"></spring:message></form:option>
|
||||||
|
<form:option value="2"><spring:message code="unapproved"></spring:message></form:option>
|
||||||
|
<form:option value="3"><spring:message code="cancel_approved"></spring:message></form:option>
|
||||||
|
</form:select>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<%-- <div class="pull-left">
|
||||||
|
<c:set var="spec_service_id"><spring:message code="social_app"/></c:set>
|
||||||
|
<sys:treeselect id="specServiceId" name="specServiceId" value="${cfg.specServiceId}"
|
||||||
|
labelName="parent.specServiceName" notAllowSelectRoot="true" notAllowSelectParent="true"
|
||||||
|
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=""
|
||||||
|
cssClass="form-control input-small"/>
|
||||||
|
</div> --%>
|
||||||
|
<div class="pull-left">
|
||||||
|
<div class="input-group">
|
||||||
|
<div class="input-group-btn">
|
||||||
|
|
||||||
|
<form:select path="seltype" class="selectpicker select2 input-small" >
|
||||||
|
<form:option value="domain"><spring:message code="domain"></spring:message></form:option>
|
||||||
|
<form:option value="compileId"><spring:message code="cfg_id"></spring:message></form:option>
|
||||||
|
<form:option value="cfgDesc"><spring:message code="config_describe"></spring:message></form:option>
|
||||||
|
</form:select>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<input id="intype" class="form-control input-medium" type="text" value="">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="pull-left">
|
||||||
|
<button type="button" class="btn blue" onClick="return page()"> <i class="fa fa-search"></i> <spring:message code="search"/> </button>
|
||||||
|
<button type="button" class="btn btn-default" id="resetBtn"> <i class="fa fa-refresh"></i> <spring:message code="reset"/> </button>
|
||||||
|
<button type="button" class="btn btn-default" id="filter-btn"> <spring:message code="filter"/> <i class="fa fa-angle-double-down"></i></button>
|
||||||
|
</div>
|
||||||
|
<div class="pull-right">
|
||||||
|
<shiro:hasPermission name="app:topic:config">
|
||||||
|
<sys:delRow url="${ctx}/app/topicDomainCfgForm" id="contentTable" label="update"></sys:delRow>
|
||||||
|
<sys:delRow url="${ctx}/app/updateAppTopicDomainCfgValid?isValid=-1&functionId=${cfg.functionId }" id="contentTable" label="delete"></sys:delRow>
|
||||||
|
</shiro:hasPermission>
|
||||||
|
<shiro:hasPermission name="app:domain:confirm">
|
||||||
|
<div class="btn-group">
|
||||||
|
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
|
||||||
|
<i class="fa fa-wrench"></i> <spring:message code="examine"></spring:message>
|
||||||
|
<i class="fa fa-angle-down"></i>
|
||||||
|
</button>
|
||||||
|
<ul class="dropdown-menu pull-right">
|
||||||
|
<li><sys:delRow url="${ctx}/app/auditAppTopicDomainCfg?isAudit=1&isValid=1&functionId=${cfg.functionId }" id="contentTable" label="approved"></sys:delRow></li>
|
||||||
|
<li><sys:delRow url="${ctx}/app/auditAppTopicDomainCfg?isAudit=2&isValid=0&functionId=${cfg.functionId }" id="contentTable" label="unapproved"></sys:delRow></li>
|
||||||
|
<li><sys:delRow url="${ctx}/app/auditAppTopicDomainCfg?isAudit=3&isValid=0&functionId=${cfg.functionId }" id="contentTable" label="cancelPass"></sys:delRow></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</shiro:hasPermission>
|
||||||
|
<a class="btn btn-icon-only btn-default setfields tooltips"
|
||||||
|
data-container="body" data-placement="top" data-original-title=<spring:message code="custom_columns"/> href="javascript:;">
|
||||||
|
<i class="icon-wrench"></i>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- /搜索内容与操作按钮栏 -->
|
||||||
|
|
||||||
|
<!-- 筛选搜索内容栏默认隐藏-->
|
||||||
|
<div class="col-md-12 filter-action-select-panle hide" >
|
||||||
|
<div class="row hidden">
|
||||||
|
|
||||||
|
<div class="col-md-3">
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="control-label"><spring:message code='request_number'/></label>
|
||||||
|
<c:set var="select"><spring:message code='select'/></c:set>
|
||||||
|
<form:select path="requestId" class="selectpicker form-control" data-live-search="true" data-live-search-placeholder="search">
|
||||||
|
<form:option value=""><spring:message code="select"/></form:option>
|
||||||
|
<c:forEach items="${requestInfos}" var="requestInfo" >
|
||||||
|
<form:option value="${requestInfo.id}"><spring:message code="${requestInfo.requestTitle}"></spring:message></form:option>
|
||||||
|
</c:forEach>
|
||||||
|
</form:select>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-3">
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="control-label"><spring:message code='type'/></label>
|
||||||
|
<form:select path="classify" class="selectpicker form-control" data-live-search="true" data-live-search-placeholder="search">
|
||||||
|
<form:option value=""><spring:message code="select"/></form:option>
|
||||||
|
<c:forEach items="${fls}" var="fl" >
|
||||||
|
<form:option value="${fl.serviceDictId}"><spring:message code="${fl.itemValue}"></spring:message></form:option>
|
||||||
|
</c:forEach>
|
||||||
|
</form:select>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-3">
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="control-label"><spring:message code='attribute'/></label>
|
||||||
|
<c:set var="select"><spring:message code='select'/></c:set>
|
||||||
|
<form:select path="attribute" class="selectpicker form-control" data-live-search="true" data-live-search-placeholder="search">
|
||||||
|
<form:option value=""><spring:message code="select"/></form:option>
|
||||||
|
<c:forEach items="${xzs}" var="xz" >
|
||||||
|
<form:option value="${xz.serviceDictId}"><spring:message code="${xz.itemValue}"></spring:message></form:option>
|
||||||
|
</c:forEach>
|
||||||
|
</form:select>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-3">
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="control-label"><spring:message code='label'/></label>
|
||||||
|
<form:select path="lable" class="selectpicker form-control" data-live-search="true" data-live-search-placeholder="search">
|
||||||
|
<form:option value=""><spring:message code="select"/></form:option>
|
||||||
|
<c:forEach items="${lables}" var="lable" >
|
||||||
|
<form:option value="${lable.serviceDictId}"><spring:message code="${lable.itemValue}"></spring:message></form:option>
|
||||||
|
</c:forEach>
|
||||||
|
</form:select>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-2">
|
||||||
|
<div class="form-group">
|
||||||
|
<label><spring:message code="config_time"/>:</label>
|
||||||
|
<input name="search_create_time_start" type="text" readonly="readonly" maxlength="20" class="form-control Wdate"
|
||||||
|
value="<fmt:formatDate value='${cfg.search_create_time_start}' pattern='yyyy-MM-dd HH:mm:ss'/>" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:true});"/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-2">
|
||||||
|
<div class="form-group">
|
||||||
|
<label> </label>
|
||||||
|
<input name="search_create_time_end" type="text" readonly="readonly" maxlength="20" class="form-control Wdate"
|
||||||
|
value="<fmt:formatDate value="${cfg.search_create_time_end}" pattern="yyyy-MM-dd HH:mm:ss"/>" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:true});"/>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-2">
|
||||||
|
<div class="form-group">
|
||||||
|
<label><spring:message code="edit_time"/>:</label>
|
||||||
|
<input name="search_edit_time_start" type="text" readonly="readonly" maxlength="20" class="form-control Wdate"
|
||||||
|
value="<fmt:formatDate value="${cfg.search_edit_time_start}" pattern="yyyy-MM-dd HH:mm:ss"/>" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:true});"/>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-2">
|
||||||
|
<div class="form-group">
|
||||||
|
<label> </label>
|
||||||
|
<input name="search_edit_time_end" type="text" readonly="readonly" maxlength="20" class="form-control Wdate"
|
||||||
|
value="<fmt:formatDate value="${cfg.search_edit_time_end}" pattern="yyyy-MM-dd HH:mm:ss"/>" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:true});"/>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-2">
|
||||||
|
<div class="form-group">
|
||||||
|
<label><spring:message code="audit_time"/>:</label>
|
||||||
|
<input name="search_audit_time_start" type="text" readonly="readonly" maxlength="20" class="form-control Wdate"
|
||||||
|
value="<fmt:formatDate value="${cfg.search_audit_time_start}" pattern="yyyy-MM-dd HH:mm:ss"/>" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:true});"/>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-2">
|
||||||
|
<div class="form-group">
|
||||||
|
<label> </label>
|
||||||
|
<input name="search_audit_time_end" type="text" readonly="readonly" maxlength="20" class="form-control Wdate"
|
||||||
|
value="<fmt:formatDate value="${cfg.search_audit_time_end}" pattern="yyyy-MM-dd HH:mm:ss"/>" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:true});"/>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- /筛选搜索内容栏 结束-->
|
||||||
|
</form:form>
|
||||||
|
</div>
|
||||||
|
<div class="table-responsive">
|
||||||
|
<table id="contentTable" class="table table-striped table-bordered table-condensed text-nowrap">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th><input type="checkbox" class="i-checks" id="checkAll"></th>
|
||||||
|
<th style="display: none;"><spring:message code="cfg_id"/></th>
|
||||||
|
<th class="cfgDesc"><spring:message code="config_describe"/></th>
|
||||||
|
<th><spring:message code="app_topic_domain_cfg"/></th>
|
||||||
|
<th><spring:message code="domain"/></th>
|
||||||
|
<th><spring:message code="whether_hexbinary"/></th>
|
||||||
|
<th><spring:message code="expression_type"/></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="whether_area_block"/></th>
|
||||||
|
<th><spring:message code="letter"/></th>
|
||||||
|
<th><spring:message code="classification"/></th>
|
||||||
|
<th><spring:message code="attribute"/></th>
|
||||||
|
<th><spring:message code="label"/></th> --%>
|
||||||
|
<th><spring:message code="valid_identifier"/></th>
|
||||||
|
<th><spring:message code="is_audit"/></th>
|
||||||
|
<th><spring:message code="log_total"/></th>
|
||||||
|
<th><spring:message code="creator"/></th>
|
||||||
|
<th class="sort-column r.create_time"><spring:message code="config_time"/></th>
|
||||||
|
<th><spring:message code="editor"/></th>
|
||||||
|
<th class="sort-column r.edit_time"><spring:message code="edit_time"/></th>
|
||||||
|
<th><spring:message code="auditor"/></th>
|
||||||
|
<th class="sort-column r.audit_time"><spring:message code="audit_time"/></th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<c:forEach items="${page.list }" var="cfg" varStatus="status" step="1">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<input type="checkbox" class="i-checks child-checks" id="${cfg.cfgId}" value="${cfg.isAudit}">
|
||||||
|
</td>
|
||||||
|
<td>${cfg.compileId }</td>
|
||||||
|
<td>${cfg.cfgDesc }</td>
|
||||||
|
<td>${cfg.appName }</td>
|
||||||
|
<td>${cfg.domain }</td>
|
||||||
|
<td>
|
||||||
|
<c:forEach items="${fns:getDictList('WHETHER_HEXBINARY')}" var="isHexbinC">
|
||||||
|
<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>
|
||||||
|
<c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict">
|
||||||
|
<c:if test="${dict.itemCode eq cfg.action }">
|
||||||
|
<spring:message code="${dict.itemValue }"/>
|
||||||
|
</c:if>
|
||||||
|
</c:forEach>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<c:if test="${cfg.isAreaEffective==0}"><spring:message code="no"/></c:if>
|
||||||
|
<c:if test="${cfg.isAreaEffective==1}">
|
||||||
|
<a href="javascript:viewAreaInfo('${ctx}','${cfg.areaEffectiveIds }','${cfg.compileId }')" >
|
||||||
|
<spring:message code="yes"/>
|
||||||
|
</a>
|
||||||
|
</c:if>
|
||||||
|
</td>
|
||||||
|
<td>${cfg.requestName }</td>
|
||||||
|
<td>
|
||||||
|
<c:set var="classify"></c:set>
|
||||||
|
<c:forEach items="${fn:split(cfg.classify,',')}" var="classifyId" varStatus="status">
|
||||||
|
<c:forEach items="${fls}" var="fl">
|
||||||
|
<c:if test="${classifyId eq fn:trim(fl.serviceDictId)}">
|
||||||
|
<c:if test="${status.index+1 eq 1}">
|
||||||
|
<c:set var="classify" value="${fl.itemValue}"></c:set>
|
||||||
|
</c:if>
|
||||||
|
<c:if test="${status.index+1 ne 1}">
|
||||||
|
<c:set var="classify" value="${classify},${fl.itemValue}"></c:set>
|
||||||
|
</c:if>
|
||||||
|
</c:if>
|
||||||
|
</c:forEach>
|
||||||
|
</c:forEach>
|
||||||
|
<a href="javascript:;" data-original-title="${classify}"
|
||||||
|
class="tooltips" data-flag="false" data-html="true" data-placement="top">
|
||||||
|
${fns:abbr(classify,20)}
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<c:set var="attribute"></c:set>
|
||||||
|
<c:forEach items="${fn:split(cfg.attribute,',')}" var="attributeId" varStatus="status">
|
||||||
|
<c:forEach items="${xzs}" var="xz">
|
||||||
|
<c:if test="${attributeId eq fn:trim(xz.serviceDictId)}">
|
||||||
|
<c:if test="${status.index+1 eq 1}">
|
||||||
|
<c:set var="attribute" value="${xz.itemValue}"></c:set>
|
||||||
|
</c:if>
|
||||||
|
<c:if test="${status.index+1 ne 1}">
|
||||||
|
<c:set var="attribute" value="${attribute},${xz.itemValue}"></c:set>
|
||||||
|
</c:if>
|
||||||
|
</c:if>
|
||||||
|
</c:forEach>
|
||||||
|
</c:forEach>
|
||||||
|
<a href="javascript:;" data-original-title="${attribute}"
|
||||||
|
class="tooltips" data-flag="false" data-html="true" data-placement="top">
|
||||||
|
${fns:abbr(attribute,20)}
|
||||||
|
</a>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<c:set var="lableInfo"></c:set>
|
||||||
|
<c:forEach items="${fn:split(cfg.lable,',')}" var="lableId" varStatus="status">
|
||||||
|
<c:forEach items="${lables}" var="lable">
|
||||||
|
<c:if test="${lableId eq fn:trim(lable.serviceDictId)}">
|
||||||
|
<c:if test="${status.index+1 eq 1}">
|
||||||
|
<c:set var="lableInfo" value="${lable.itemValue}"></c:set>
|
||||||
|
</c:if>
|
||||||
|
<c:if test="${status.index+1 ne 1}">
|
||||||
|
<c:set var="lableInfo" value="${lableInfo},${lable.itemValue}"></c:set>
|
||||||
|
</c:if>
|
||||||
|
</c:if>
|
||||||
|
</c:forEach>
|
||||||
|
</c:forEach>
|
||||||
|
<a href="javascript:;" data-original-title="${lableInfo}"
|
||||||
|
class="tooltips" data-flag="false" data-html="true" data-placement="top">
|
||||||
|
${fns:abbr(lableInfo,20)}
|
||||||
|
</a>
|
||||||
|
</td> --%>
|
||||||
|
<td>
|
||||||
|
<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="deleted"/></c:if>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<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 '1'}"><span class="label label-success"><spring:message code="approved"></spring:message></span></c:when>
|
||||||
|
<c:when test="${cfg.isAudit eq '2'}"><span class="label label-warning"><spring:message code="unapproved"></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>
|
||||||
|
</td>
|
||||||
|
<td functionId="${cfg.functionId}" compileId="${cfg.compileId}" action="${cfg.action}"><div class="loading-total"></div></td>
|
||||||
|
<td>${cfg.creatorName }</td>
|
||||||
|
<td><fmt:formatDate value="${cfg.createTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
|
||||||
|
<td>${cfg.editorName }</td>
|
||||||
|
<td><fmt:formatDate value="${cfg.editTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
|
||||||
|
<td>${cfg.auditorName }</td>
|
||||||
|
<td><fmt:formatDate value="${cfg.auditTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
|
||||||
|
</tr>
|
||||||
|
</c:forEach>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
<div class="page" style="margin-top:40px">${page}</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -13,34 +13,89 @@
|
|||||||
});
|
});
|
||||||
$(".action").on("change", function() {
|
$(".action").on("change", function() {
|
||||||
$("#serviceId").val($(this).attr("serviceId"));
|
$("#serviceId").val($(this).attr("serviceId"));
|
||||||
|
$("#protocolId").val($(this).attr("protocolId"));
|
||||||
});
|
});
|
||||||
$("#serviceId").val($(".action:checked").attr("serviceId"));
|
$("#serviceId").val($(".action:checked").attr("serviceId"));
|
||||||
$("#cfgFrom").validate(
|
$("#protocolId").val($(".action:checked").attr("protocolId"));
|
||||||
{
|
$("#cfgFrom").validate({
|
||||||
submitHandler : function(form) {
|
errorPlacement: function(error,element){
|
||||||
/* var srcFile = $("#srcFile").val();
|
if($(element).parents().hasClass("tagsinput")){
|
||||||
var srcUrl = $("#srcUrl").val();
|
$(element).parents(".col-md-6").next("div").append(error);
|
||||||
if((srcUrl==null||srcUrl=="") && (srcFile==null || srcFile=="")){
|
}else{
|
||||||
$("div[for='srcFile']").append("<label id='level-error' class='error' for='srcFile'><spring:message code='required'></spring:message></label>");
|
$(element).parents(".form-group").find("div[for='"+element.attr("name")+"']").append(error);
|
||||||
return false;
|
}
|
||||||
}else{
|
},
|
||||||
} */
|
submitHandler : function(form) {
|
||||||
loading('onloading...');
|
var flag = true;
|
||||||
form.submit();
|
//代表所有业务都隐藏了,提示必须增加一种业务数据
|
||||||
|
if($(".boxSolid").length ==$(".boxSolid.hidden").length){
|
||||||
},
|
top.$.jBox.tip("<spring:message code='one_more'/>", "<spring:message code='info'/>");
|
||||||
errorContainer : "#messageBox",
|
return;
|
||||||
errorPlacement : function(error, element) {
|
}
|
||||||
$(element).parents(".form-group").find(
|
$("input[name$='cfgKeywords']").each(function(){
|
||||||
"div[for='" + element.attr("name") + "']")
|
if($(this).val()==''){
|
||||||
.append(error);
|
$(this).parents(".form-group").find(
|
||||||
},
|
"div[for='"
|
||||||
|
+ $(this).attr("name")
|
||||||
|
+ "']").html("<label id=\"cfgKeywordsError\" class=\"error\">"+$("#keywordError").text()+"</label>");
|
||||||
|
flag = false;
|
||||||
|
}
|
||||||
|
})
|
||||||
|
$("select[name$='isHexbin']").each(function(){
|
||||||
|
var isHexbin=$(this).val();
|
||||||
|
if(isHexbin == 1){ //十六进制
|
||||||
|
var keywords=$("input[name$='"+$(this).attr("name").replace("isHexbin","cfgKeywords")+"']").val();
|
||||||
|
if(!(/^([0-9|a-f|A-F]*)$/.test(keywords))){
|
||||||
|
$(this).parents(".form-body").find(
|
||||||
|
"div[for='"
|
||||||
|
+ $(this).attr("name").replace("isHexbin","cfgKeywords")
|
||||||
|
+ "']").html("<label id=\"cfgKeywordsError\" class=\"error\">"+$.validator.messages.hexCheck+"</label>");
|
||||||
|
flag = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
if(flag){
|
||||||
|
//将disable属性的元素删除
|
||||||
|
$(".disabled").each(function(){
|
||||||
|
$(this).remove();
|
||||||
|
});
|
||||||
|
$("input[name$='exprType']").attr("disabled",false);
|
||||||
|
if($("[name='behavCode']")&&$("[name='behavCode']").val()!=""){
|
||||||
|
$("input[name$='exprType']").val(1);
|
||||||
|
}
|
||||||
|
loading('onloading...');
|
||||||
|
form.submit();
|
||||||
|
}else{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
},
|
||||||
|
errorContainer : "#messageBox",
|
||||||
|
errorPlacement : function(error, element) {
|
||||||
|
$(element).parents(".form-group").find(
|
||||||
|
"div[for='" + element.attr("name") + "']")
|
||||||
|
.append(error);
|
||||||
|
},
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
//业务窗口打开
|
||||||
|
var addContent = function(obj, contentClassName) {
|
||||||
|
var showDiv = $(obj).parent().parent().next();
|
||||||
|
$(showDiv).removeClass("hidden").removeClass(
|
||||||
|
"disabled");
|
||||||
|
$(obj).addClass("hidden");
|
||||||
|
}
|
||||||
|
|
||||||
|
//业务窗口关闭
|
||||||
|
var delContent = function(contentClassName, addBtnClassName) {
|
||||||
|
$("." + contentClassName).addClass("hidden").addClass("disabled");
|
||||||
|
$("." + addBtnClassName).removeClass("hidden");
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<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>
|
||||||
<div class="page-content">
|
<div class="page-content">
|
||||||
|
|
||||||
<h3 class="page-title">
|
<h3 class="page-title">
|
||||||
@@ -183,6 +238,49 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- subscribeId配置 -->
|
||||||
|
<c:set var="subscribeIdCfgIndex" value="0"></c:set>
|
||||||
|
<c:forEach items="${regionList}" var="region" varStatus="status">
|
||||||
|
<c:if test="${region.configServiceType eq 'subscribe_id'}">
|
||||||
|
<c:set var="tabName" value="${region.configRegionValue}Tab"></c:set>
|
||||||
|
<h4 class="form-section">
|
||||||
|
<spring:message code="${region.configRegionValue}" />
|
||||||
|
<small> <span
|
||||||
|
class="glyphicon glyphicon-plus ${tabName}Add"
|
||||||
|
onClick="addContent(this,'${tabName}')" title="add"></span></small>
|
||||||
|
</h4>
|
||||||
|
<c:set var="cfgName" value="ntcSubscribeIdCfgList[${subscribeIdCfgIndex}]"></c:set>
|
||||||
|
<c:set var="regionValue" value="${region.configRegionValue}"></c:set>
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${fn:length(_cfg.ntcSubscribeIdCfgList)>0 and (!empty _cfg.ntcSubscribeIdCfgList[subscribeIdCfgIndex].cfgId)}">
|
||||||
|
<c:set var="isBreak" value="false" ></c:set>
|
||||||
|
<c:forEach items="${_cfg.ntcSubscribeIdCfgList}" var="cfg">
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${region.configRegionValue eq cfg.cfgType and !isBreak}">
|
||||||
|
<div class="row boxSolid ${tabName}${status.index}">
|
||||||
|
<%@include file="/WEB-INF/views/cfg/complexCfgForm.jsp"%>
|
||||||
|
</div>
|
||||||
|
<c:set var="isBreak" value="true" ></c:set>
|
||||||
|
<c:set var="subscribeIdCfgIndex" value="${subscribeIdCfgIndex+1 }"></c:set>
|
||||||
|
</c:when>
|
||||||
|
</c:choose>
|
||||||
|
</c:forEach>
|
||||||
|
<c:if test="${!isBreak}">
|
||||||
|
<div class="row boxSolid ${tabName}${status.index} hidden disabled">
|
||||||
|
<%@include file="/WEB-INF/views/cfg/complexCfgForm.jsp"%>
|
||||||
|
</div>
|
||||||
|
<c:set var="subscribeIdCfgIndex" value="${subscribeIdCfgIndex+1 }"></c:set>
|
||||||
|
</c:if>
|
||||||
|
</c:when>
|
||||||
|
<c:otherwise>
|
||||||
|
<div class="row boxSolid ${tabName}${status.index} hidden disabled">
|
||||||
|
<%@include file="/WEB-INF/views/cfg/complexCfgForm.jsp"%>
|
||||||
|
</div>
|
||||||
|
<c:set var="subscribeIdCfgIndex" value="${subscribeIdCfgIndex+1 }"></c:set>
|
||||||
|
</c:otherwise>
|
||||||
|
</c:choose>
|
||||||
|
</c:if>
|
||||||
|
</c:forEach>
|
||||||
<%@include file="/WEB-INF/include/form/areaInfo.jsp"%>
|
<%@include file="/WEB-INF/include/form/areaInfo.jsp"%>
|
||||||
<%@include file="/WEB-INF/include/form/basicInfo.jsp"%>
|
<%@include file="/WEB-INF/include/form/basicInfo.jsp"%>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -36,6 +36,51 @@
|
|||||||
$("#level").attr("value",'');
|
$("#level").attr("value",'');
|
||||||
$("#searchForm")[0].reset();
|
$("#searchForm")[0].reset();
|
||||||
});
|
});
|
||||||
|
//异步获取voip相关信息
|
||||||
|
$("span[id^=open]").click(function(){
|
||||||
|
var openId=$(this).attr("id");
|
||||||
|
var closeId=$(this).attr("id").replace("open","close");
|
||||||
|
var index=$(this).attr("id").replace("open","");
|
||||||
|
$("#"+openId).hide();
|
||||||
|
$("#"+closeId).show();
|
||||||
|
//var compileId=$(this).attr("compileId");
|
||||||
|
var cfgId=$(this).attr("cfgId");
|
||||||
|
if($("#"+openId).parent().parent().next("tr").hasClass("child")){
|
||||||
|
$("#"+openId).parent().parent().next("tr").show();
|
||||||
|
}else{
|
||||||
|
$.ajax({
|
||||||
|
type:'post',
|
||||||
|
async:false,
|
||||||
|
url:'${ctx}/ntc/fileTransfer/ajaxFileDigestSubIdList',
|
||||||
|
data:{"cfgId":cfgId,"index":index},
|
||||||
|
dataType:"html",
|
||||||
|
success:function(data){
|
||||||
|
var subTab="<tr class='child'>"+
|
||||||
|
"<td style='border-right: 1px solid #FFFFFF;'>"+
|
||||||
|
"<input type='checkbox' hidden='hidden'/>"+
|
||||||
|
"</td>"+
|
||||||
|
"<td colspan='"+($(".table tr").eq(0).children("th").length-1)+"'>";
|
||||||
|
var html="";
|
||||||
|
html+="<div class='row'>";
|
||||||
|
html = html+data;
|
||||||
|
subTab=subTab+html;
|
||||||
|
subTab+="</td>";
|
||||||
|
subTab+="</tr>";
|
||||||
|
$("#"+openId).parent().parent().after(subTab);
|
||||||
|
$("div[name='tabTitle"+index+"']").get(0).click();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
$("span[id^=close]").on("click",function(){
|
||||||
|
var closeId=$(this).attr("id");
|
||||||
|
var openId=$(this).attr("id").replace("close","open");
|
||||||
|
$("#"+closeId).hide();
|
||||||
|
$("#"+openId).show();
|
||||||
|
$("#"+closeId).parent().parent().next("tr").hide();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@@ -289,6 +334,7 @@
|
|||||||
<c:forEach items="${page.list }" var="indexCfg" varStatus="status" step="1">
|
<c:forEach items="${page.list }" var="indexCfg" varStatus="status" step="1">
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
|
<span id="open${status.index}" class="" compileId="${indexCfg.compileId}" cfgId="${indexCfg.cfgId}"> ▷ </span><span style="display: none" id="close${status.index}" > ▼ </span>
|
||||||
<input type="checkbox" class="i-checks child-checks" id="${indexCfg.cfgId}" value="${indexCfg.isAudit}">
|
<input type="checkbox" class="i-checks child-checks" id="${indexCfg.cfgId}" value="${indexCfg.isAudit}">
|
||||||
</td>
|
</td>
|
||||||
<td>${indexCfg.cfgDesc }</td>
|
<td>${indexCfg.cfgDesc }</td>
|
||||||
|
|||||||
@@ -0,0 +1,79 @@
|
|||||||
|
<%@ page contentType="text/html;charset=UTF-8"%>
|
||||||
|
<%@ include file="/WEB-INF/include/taglib.jsp"%>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<script>
|
||||||
|
$(document).ready(function() {
|
||||||
|
//$("div[name='tabTitle"+index+"']").get(0).click();
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
<style type="text/css">
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<c:forEach items="${tabList}" var="region" varStatus="regionStatus">
|
||||||
|
<div id="${region[1]}Title${index}" onclick="switchSubCfgTabInfo('${region[1]}',${index})"
|
||||||
|
class="col-md-1 tabInfo" name="tabTitle${index }">
|
||||||
|
<spring:message code='${region[1]}' />
|
||||||
|
<i id="${region[1]}${index}" class="fa" name="tabFlag${index}"></i>
|
||||||
|
</div>
|
||||||
|
</c:forEach>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<c:forEach items="${tabList}" var="region">
|
||||||
|
<c:if test="${region[0] eq 2 }">
|
||||||
|
<c:forEach items="${_cfg.ntcSubscribeIdCfgList}" var="cfg">
|
||||||
|
<c:if test="${region[1] eq cfg.cfgType }">
|
||||||
|
<div id="${region[1]}Info${index}" class="content" name="subCfg${index}">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-8">
|
||||||
|
<div class="form-group">
|
||||||
|
<label><spring:message code='keywords' />:</label><label>
|
||||||
|
${fn:replace(cfg.cfgKeywords, "***and***", " ")}</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="form-group">
|
||||||
|
<label><spring:message code='expression_type' />:</label>
|
||||||
|
<label>
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${cfg.exprType eq 1}"><spring:message code='and_expression'/></c:when>
|
||||||
|
<c:when test="${cfg.exprType eq 0}"><spring:message code='null_expression'/></c:when>
|
||||||
|
</c:choose>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="form-group">
|
||||||
|
<label><spring:message code='match_method' />:</label>
|
||||||
|
<label>
|
||||||
|
<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>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="form-group">
|
||||||
|
<label><spring:message code='whether_hexbinary' />:</label>
|
||||||
|
<label>
|
||||||
|
<c:forEach items="${fns:getDictList('WHETHER_HEXBINARY')}" var="isHexbinC">
|
||||||
|
<c:if test="${cfg.isHexbin==isHexbinC.itemCode }"><spring:message code="${isHexbinC.itemValue}"/></c:if>
|
||||||
|
</c:forEach>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</c:if>
|
||||||
|
</c:forEach>
|
||||||
|
</c:if>
|
||||||
|
|
||||||
|
</c:forEach>
|
||||||
|
</html>
|
||||||
@@ -32,6 +32,7 @@
|
|||||||
$(".Wdate").attr("value",'');
|
$(".Wdate").attr("value",'');
|
||||||
$("#level").attr("value",'');
|
$("#level").attr("value",'');
|
||||||
$("#searchForm")[0].reset();
|
$("#searchForm")[0].reset();
|
||||||
|
$("#intype").attr("placeholder","<spring:message code='input'/> "+$("#seltype").find("option:selected").text());
|
||||||
});
|
});
|
||||||
//异步获取voip相关信息
|
//异步获取voip相关信息
|
||||||
$("span[id^=open]").click(function(){
|
$("span[id^=open]").click(function(){
|
||||||
|
|||||||
@@ -178,7 +178,33 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- dolog begin-->
|
||||||
|
<div class="row">
|
||||||
|
<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>
|
||||||
|
<!-- dolog end-->
|
||||||
|
|
||||||
<c:set var="ipCfgIndex" value="0"></c:set>
|
<c:set var="ipCfgIndex" value="0"></c:set>
|
||||||
|
<c:set var="strCfgIndex" value="0"></c:set>
|
||||||
<c:set var="complexCfgIndex" value="0"></c:set>
|
<c:set var="complexCfgIndex" value="0"></c:set>
|
||||||
<c:forEach items="${regionList}" var="region" varStatus="status">
|
<c:forEach items="${regionList}" var="region" varStatus="status">
|
||||||
<c:if test="${region.regionType eq 1 }">
|
<c:if test="${region.regionType eq 1 }">
|
||||||
@@ -212,6 +238,48 @@
|
|||||||
</c:choose>
|
</c:choose>
|
||||||
<!--/ip info-->
|
<!--/ip info-->
|
||||||
</c:if>
|
</c:if>
|
||||||
|
<c:if test="${region.regionType eq 2 }">
|
||||||
|
<c:if test="${region.configServiceType == 'subscribe_id'}">
|
||||||
|
<c:set var="tabName" value="${region.configRegionValue}Tab"></c:set>
|
||||||
|
<h4 class="form-section">
|
||||||
|
<spring:message code="${region.configRegionValue}" />
|
||||||
|
<small> <span
|
||||||
|
class="glyphicon glyphicon-plus ${tabName}Add"
|
||||||
|
onClick="addContent(this,'${tabName}')" title="add"></span></small>
|
||||||
|
</h4>
|
||||||
|
<c:set var="cfgName" value="ntcSubscribeIdCfgList[${strCfgIndex}]"></c:set>
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${fn:length(_cfg.ntcSubscribeIdCfgList)>0}">
|
||||||
|
<c:set var="isBreak" value="false" ></c:set>
|
||||||
|
<c:forEach items="${_cfg.ntcSubscribeIdCfgList}" var="cfg">
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${region.configRegionValue eq cfg.cfgType and !isBreak}">
|
||||||
|
<div class="row boxSolid ${tabName}${status.index}">
|
||||||
|
<%@include file="/WEB-INF/views/cfg/complexCfgForm.jsp"%>
|
||||||
|
</div>
|
||||||
|
<c:set var="isBreak" value="true" ></c:set>
|
||||||
|
<c:set var="strCfgIndex" value="${strCfgIndex+1 }"></c:set>
|
||||||
|
</c:when>
|
||||||
|
</c:choose>
|
||||||
|
</c:forEach>
|
||||||
|
<c:if test="${!isBreak}">
|
||||||
|
<div class="row boxSolid ${tabName}${status.index} hidden disabled">
|
||||||
|
<%@include file="/WEB-INF/views/cfg/complexCfgForm.jsp"%>
|
||||||
|
</div>
|
||||||
|
<c:set var="strCfgIndex" value="${strCfgIndex+1 }"></c:set>
|
||||||
|
</c:if>
|
||||||
|
</c:when>
|
||||||
|
<c:otherwise>
|
||||||
|
<div class="row boxSolid ${tabName}${status.index} hidden disabled">
|
||||||
|
<%@include file="/WEB-INF/views/cfg/complexCfgForm.jsp"%>
|
||||||
|
</div>
|
||||||
|
<c:set var="strCfgIndex" value="${strCfgIndex+1 }"></c:set>
|
||||||
|
</c:otherwise>
|
||||||
|
</c:choose>
|
||||||
|
</c:if>
|
||||||
|
</c:if>
|
||||||
|
|
||||||
|
|
||||||
<c:if test="${region.regionType eq 3 }">
|
<c:if test="${region.regionType eq 3 }">
|
||||||
<c:set var="tabName" value="${region.configRegionValue}Tab"></c:set>
|
<c:set var="tabName" value="${region.configRegionValue}Tab"></c:set>
|
||||||
<h4 class="form-section">
|
<h4 class="form-section">
|
||||||
|
|||||||
@@ -9,7 +9,9 @@
|
|||||||
//搜索框提示语初始化
|
//搜索框提示语初始化
|
||||||
if("${cfg.cfgDesc}"){
|
if("${cfg.cfgDesc}"){
|
||||||
$("#intype").val("${cfg.cfgDesc}");
|
$("#intype").val("${cfg.cfgDesc}");
|
||||||
}else{
|
}else if("${cfg.compileId}"){
|
||||||
|
$("#intype").val("${cfg.compileId}");
|
||||||
|
} 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());
|
||||||
}
|
}
|
||||||
$("#seltype").change(function(){
|
$("#seltype").change(function(){
|
||||||
@@ -30,6 +32,7 @@
|
|||||||
$(".Wdate").attr("value",'');
|
$(".Wdate").attr("value",'');
|
||||||
$("#level").attr("value",'');
|
$("#level").attr("value",'');
|
||||||
$("#searchForm")[0].reset();
|
$("#searchForm")[0].reset();
|
||||||
|
$("#intype").attr("placeholder","<spring:message code='input'/> "+$("#seltype").find("option:selected").text());
|
||||||
});
|
});
|
||||||
//异步获取voip相关信息
|
//异步获取voip相关信息
|
||||||
$("span[id^=open]").click(function(){
|
$("span[id^=open]").click(function(){
|
||||||
@@ -132,6 +135,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="voipIp.srcIpAddress"><spring:message code="client_ip"/></form:option>
|
<%-- <form:option value="voipIp.srcIpAddress"><spring:message code="client_ip"/></form:option>
|
||||||
<form:option value="voipIp.srcPort"><spring:message code="client_port"/></form:option>
|
<form:option value="voipIp.srcPort"><spring:message code="client_port"/></form:option>
|
||||||
<form:option value="voipAccount.cfgKeywords"><spring:message code="key_word"/></form:option>
|
<form:option value="voipAccount.cfgKeywords"><spring:message code="key_word"/></form:option>
|
||||||
@@ -305,8 +309,10 @@
|
|||||||
<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 class="cfgDesc"><spring:message code="config_describe"/></th>
|
<th class="cfgDesc"><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="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>
|
||||||
@@ -329,6 +335,7 @@
|
|||||||
<span id="open${status.index}" class="" compileId="${indexCfg.compileId}" cfgId="${indexCfg.cfgId}"> ▷ </span><span style="display: none;" id="close${status.index}" > ▼ </span>
|
<span id="open${status.index}" class="" compileId="${indexCfg.compileId}" cfgId="${indexCfg.cfgId}"> ▷ </span><span style="display: none;" id="close${status.index}" > ▼ </span>
|
||||||
<input type="checkbox" class="i-checks child-checks" id="${indexCfg.cfgId}" value="${indexCfg.isAudit}">
|
<input type="checkbox" class="i-checks child-checks" id="${indexCfg.cfgId}" value="${indexCfg.isAudit}">
|
||||||
</td>
|
</td>
|
||||||
|
<td>${indexCfg.compileId }</td>
|
||||||
<td>${indexCfg.cfgDesc }</td>
|
<td>${indexCfg.cfgDesc }</td>
|
||||||
<td>
|
<td>
|
||||||
<c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict">
|
<c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict">
|
||||||
@@ -337,6 +344,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 indexCfg.doLog }">
|
||||||
|
<spring:message code="${dict.itemValue }"/>
|
||||||
|
</c:if>
|
||||||
|
</c:forEach>
|
||||||
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<c:if test="${indexCfg.isAreaEffective==0}"><spring:message code="no"/></c:if>
|
<c:if test="${indexCfg.isAreaEffective==0}"><spring:message code="no"/></c:if>
|
||||||
<c:if test="${indexCfg.isAreaEffective==1}">
|
<c:if test="${indexCfg.isAreaEffective==1}">
|
||||||
|
|||||||
@@ -120,6 +120,60 @@
|
|||||||
</c:if>
|
</c:if>
|
||||||
</c:forEach>
|
</c:forEach>
|
||||||
</c:if>
|
</c:if>
|
||||||
|
|
||||||
|
<c:if test="${region[0] eq 2 }">
|
||||||
|
<c:forEach items="${_cfg.ntcSubscribeIdCfgList}" var="cfg">
|
||||||
|
<c:if test="${region[1] eq cfg.cfgType }">
|
||||||
|
<div id="${region[1]}Info${index}" class="content" name="subCfg${index}">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-8">
|
||||||
|
<div class="form-group">
|
||||||
|
<label><spring:message code='keywords' />:</label><label>
|
||||||
|
${fn:replace(cfg.cfgKeywords, "***and***", " ")}</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="form-group">
|
||||||
|
<label><spring:message code='expression_type' />:</label>
|
||||||
|
<label>
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${cfg.exprType eq 1}"><spring:message code='and_expression'/></c:when>
|
||||||
|
<c:when test="${cfg.exprType eq 0}"><spring:message code='null_expression'/></c:when>
|
||||||
|
</c:choose>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="form-group">
|
||||||
|
<label><spring:message code='match_method' />:</label>
|
||||||
|
<label>
|
||||||
|
<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>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="form-group">
|
||||||
|
<label><spring:message code='whether_hexbinary' />:</label>
|
||||||
|
<label>
|
||||||
|
<c:forEach items="${fns:getDictList('WHETHER_HEXBINARY')}" var="isHexbinC">
|
||||||
|
<c:if test="${cfg.isHexbin==isHexbinC.itemCode }"><spring:message code="${isHexbinC.itemValue}"/></c:if>
|
||||||
|
</c:forEach>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</c:if>
|
||||||
|
</c:forEach>
|
||||||
|
</c:if>
|
||||||
<c:if test="${region[0] eq 3 }">
|
<c:if test="${region[0] eq 3 }">
|
||||||
<c:forEach items="${_cfg.domainList}" var="cfg">
|
<c:forEach items="${_cfg.domainList}" var="cfg">
|
||||||
<c:if test="${region[1] eq cfg.cfgType }">
|
<c:if test="${region[1] eq cfg.cfgType }">
|
||||||
|
|||||||
@@ -32,7 +32,6 @@ $(document).ready(function(){
|
|||||||
<spring:message code="av_content_ip_control"/>
|
<spring:message code="av_content_ip_control"/>
|
||||||
<small><spring:message code="date_list"/></small>
|
<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">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
@@ -216,11 +215,11 @@ $(document).ready(function(){
|
|||||||
|
|
||||||
<td>${log.pid}</td>
|
<td>${log.pid}</td>
|
||||||
<td>
|
<td>
|
||||||
<c:if test="${fn:startsWith(log.url, 'http')}">
|
<c:if test="${fn:startsWith(log.url, 'http://')}">
|
||||||
${log.url}
|
${fn:substring(log.url,7,-1)}
|
||||||
</c:if>
|
</c:if>
|
||||||
<c:if test="${!fn:startsWith(log.url, 'http') and !empty log.url}">
|
<c:if test="${!fn:startsWith(log.url, 'http://') and !empty log.url}">
|
||||||
http://${log.url}
|
${log.url}
|
||||||
</c:if>
|
</c:if>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
|
|||||||
@@ -215,11 +215,11 @@ $(document).ready(function(){
|
|||||||
|
|
||||||
<td>${log.pid}</td>
|
<td>${log.pid}</td>
|
||||||
<td>
|
<td>
|
||||||
<c:if test="${fn:startsWith(log.url, 'http')}">
|
<c:if test="${fn:startsWith(log.url, 'http://')}">
|
||||||
${log.url}
|
${fn:substring(log.url,7,-1)}
|
||||||
</c:if>
|
</c:if>
|
||||||
<c:if test="${!fn:startsWith(log.url, 'http') and !empty log.url}">
|
<c:if test="${!fn:startsWith(log.url, 'http://') and !empty log.url}">
|
||||||
http://${log.url}
|
${log.url}
|
||||||
</c:if>
|
</c:if>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
|
|||||||
@@ -217,12 +217,12 @@ $(document).ready(function(){
|
|||||||
|
|
||||||
<td>${log.pid}</td>
|
<td>${log.pid}</td>
|
||||||
<td>
|
<td>
|
||||||
<c:if test="${fn:startsWith(log.url, 'http')}">
|
<c:if test="${fn:startsWith(log.url, 'http://')}">
|
||||||
${log.url}
|
${fn:substring(log.url,7,-1)}
|
||||||
</c:if>
|
</c:if>
|
||||||
<c:if test="${!fn:startsWith(log.url, 'http') and !empty log.url}">
|
<c:if test="${!fn:startsWith(log.url, 'http://') and !empty log.url}">
|
||||||
http://${log.url}
|
${log.url}
|
||||||
</c:if>
|
</c:if>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<c:if test="${fn:startsWith(log.logUri, 'http')}">
|
<c:if test="${fn:startsWith(log.logUri, 'http')}">
|
||||||
|
|||||||
@@ -217,11 +217,11 @@ $(document).ready(function(){
|
|||||||
|
|
||||||
<td>${log.pid}</td>
|
<td>${log.pid}</td>
|
||||||
<td>
|
<td>
|
||||||
<c:if test="${fn:startsWith(log.url, 'http')}">
|
<c:if test="${fn:startsWith(log.url, 'http://')}">
|
||||||
${log.url}
|
${fn:substring(log.url,7,-1)}
|
||||||
</c:if>
|
</c:if>
|
||||||
<c:if test="${!fn:startsWith(log.url, 'http') and !empty log.url}">
|
<c:if test="${!fn:startsWith(log.url, 'http://') and !empty log.url}">
|
||||||
http://${log.url}
|
${log.url}
|
||||||
</c:if>
|
</c:if>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
|
|||||||
@@ -217,11 +217,11 @@ $(document).ready(function(){
|
|||||||
|
|
||||||
<td>${log.pid}</td>
|
<td>${log.pid}</td>
|
||||||
<td>
|
<td>
|
||||||
<c:if test="${fn:startsWith(log.url, 'http')}">
|
<c:if test="${fn:startsWith(log.url, 'http://')}">
|
||||||
${log.url}
|
${fn:substring(log.url,7,-1)}
|
||||||
</c:if>
|
</c:if>
|
||||||
<c:if test="${!fn:startsWith(log.url, 'http') and !empty log.url}">
|
<c:if test="${!fn:startsWith(log.url, 'http://') and !empty log.url}">
|
||||||
http://${log.url}
|
${log.url}
|
||||||
</c:if>
|
</c:if>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
|
|||||||
@@ -217,11 +217,11 @@ $(document).ready(function(){
|
|||||||
|
|
||||||
<td>${log.pid}</td>
|
<td>${log.pid}</td>
|
||||||
<td>
|
<td>
|
||||||
<c:if test="${fn:startsWith(log.url, 'http')}">
|
<c:if test="${fn:startsWith(log.url, 'http://')}">
|
||||||
${log.url}
|
${fn:substring(log.url,7,-1)}
|
||||||
</c:if>
|
</c:if>
|
||||||
<c:if test="${!fn:startsWith(log.url, 'http') and !empty log.url}">
|
<c:if test="${!fn:startsWith(log.url, 'http://') and !empty log.url}">
|
||||||
http://${log.url}
|
${log.url}
|
||||||
</c:if>
|
</c:if>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
|
|||||||
@@ -275,11 +275,11 @@
|
|||||||
|
|
||||||
<td>${log.pid}</td>
|
<td>${log.pid}</td>
|
||||||
<td>
|
<td>
|
||||||
<c:if test="${fn:startsWith(log.url, 'http')}">
|
<c:if test="${fn:startsWith(log.url, 'http://')}">
|
||||||
${log.url}
|
${fn:substring(log.url,7,-1)}
|
||||||
</c:if>
|
</c:if>
|
||||||
<c:if test="${!fn:startsWith(log.url, 'http') and !empty log.url}">
|
<c:if test="${!fn:startsWith(log.url, 'http://') and !empty log.url}">
|
||||||
http://${log.url}
|
${log.url}
|
||||||
</c:if>
|
</c:if>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
|
|||||||
@@ -217,11 +217,11 @@ $(document).ready(function(){
|
|||||||
|
|
||||||
<td>${log.pid}</td>
|
<td>${log.pid}</td>
|
||||||
<td>
|
<td>
|
||||||
<c:if test="${fn:startsWith(log.url, 'http')}">
|
<c:if test="${fn:startsWith(log.url, 'http://')}">
|
||||||
${log.url}
|
${fn:substring(log.url,7,-1)}
|
||||||
</c:if>
|
</c:if>
|
||||||
<c:if test="${!fn:startsWith(log.url, 'http') and !empty log.url}">
|
<c:if test="${!fn:startsWith(log.url, 'http://') and !empty log.url}">
|
||||||
http://${log.url}
|
${log.url}
|
||||||
</c:if>
|
</c:if>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
|
|||||||
@@ -217,11 +217,11 @@ $(document).ready(function(){
|
|||||||
|
|
||||||
<td>${log.pid}</td>
|
<td>${log.pid}</td>
|
||||||
<td>
|
<td>
|
||||||
<c:if test="${fn:startsWith(log.url, 'http')}">
|
<c:if test="${fn:startsWith(log.url, 'http://')}">
|
||||||
${log.url}
|
${fn:substring(log.url,7,-1)}
|
||||||
</c:if>
|
</c:if>
|
||||||
<c:if test="${!fn:startsWith(log.url, 'http') and !empty log.url}">
|
<c:if test="${!fn:startsWith(log.url, 'http://') and !empty log.url}">
|
||||||
http://${log.url}
|
${log.url}
|
||||||
</c:if>
|
</c:if>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
|
|||||||
@@ -6,12 +6,33 @@
|
|||||||
<title>数据选择</title>
|
<title>数据选择</title>
|
||||||
<link href="${pageContext.request.contextPath}/static/global/plugins/jquery-ztree/3.5.12/css/zTreeStyle/zTreeStyle.min.css" rel="stylesheet" type="text/css"/>
|
<link href="${pageContext.request.contextPath}/static/global/plugins/jquery-ztree/3.5.12/css/zTreeStyle/zTreeStyle.min.css" rel="stylesheet" type="text/css"/>
|
||||||
<script src="${pageContext.request.contextPath}/static/global/plugins/jquery-ztree/3.5.12/js/jquery.ztree.all-3.5.min.js" type="text/javascript"></script>
|
<script src="${pageContext.request.contextPath}/static/global/plugins/jquery-ztree/3.5.12/js/jquery.ztree.all-3.5.min.js" type="text/javascript"></script>
|
||||||
|
<%--解决ztree add小图标丢失 --%>
|
||||||
|
<style type="text/css">
|
||||||
|
.ztree li span.button.add{margin-right:2px;background-position:-144px 0;vertical-align:top;*vertical-align:middle}
|
||||||
|
</style>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var key, lastValue = "", nodeList = [], type = getQueryString("type", "${url}");
|
var key, lastValue = "", nodeList = [], type = getQueryString("type", "${url}");
|
||||||
var tree, setting = {view:{selectedMulti:false,dblClickExpand:false},check:{enable:"${checked}",chkboxType: { "Y" : "${checkedPS}", "N" : "${unCheckedPS}" },nocheckInherit:true},
|
var tree, setting = {
|
||||||
|
view:{
|
||||||
|
addHoverDom: addHoverDom,
|
||||||
|
removeHoverDom: removeHoverDom,
|
||||||
|
selectedMulti:false,
|
||||||
|
dblClickExpand:false
|
||||||
|
},
|
||||||
|
edit: {
|
||||||
|
enable: true,
|
||||||
|
showRemoveBtn: showRemoveBtn,
|
||||||
|
showRenameBtn: showRenameBtn,
|
||||||
|
removeTitle: "remove",
|
||||||
|
renameTitle: "rename",
|
||||||
|
},
|
||||||
|
check:{enable:"${checked}",chkboxType: { "Y" : "${checkedPS}", "N" : "${unCheckedPS}" },nocheckInherit:true},
|
||||||
async:{enable:(type==6),url:"${ctx}/sys/user/treeData",autoParam:["id=officeId"]},
|
async:{enable:(type==6),url:"${ctx}/sys/user/treeData",autoParam:["id=officeId"]},
|
||||||
data:{simpleData:{enable:true}},callback:{
|
data:{simpleData:{enable:true}},
|
||||||
|
callback:{
|
||||||
|
beforeEditName:beforeEditName,
|
||||||
|
beforeRename:beforeRename,
|
||||||
|
beforeRemove:beforeRemove,
|
||||||
//beforeClick: function(treeId, treeNode){
|
//beforeClick: function(treeId, treeNode){
|
||||||
//if("${checked}" == "true"){
|
//if("${checked}" == "true"){
|
||||||
//tree.checkNode(treeNode, !node.checked, true, true);
|
//tree.checkNode(treeNode, !node.checked, true, true);
|
||||||
@@ -36,7 +57,9 @@
|
|||||||
},onDblClick: function(){//<c:if test="${!checked}">
|
},onDblClick: function(){//<c:if test="${!checked}">
|
||||||
top.$.jBox.getBox().find("button[value='ok']").trigger("click");
|
top.$.jBox.getBox().find("button[value='ok']").trigger("click");
|
||||||
//$("input[type='text']", top.mainFrame.document).focus();//</c:if>
|
//$("input[type='text']", top.mainFrame.document).focus();//</c:if>
|
||||||
}
|
},
|
||||||
|
onRename:onRename,
|
||||||
|
onRemove:onRemove
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
function expandNodes(nodes) {
|
function expandNodes(nodes) {
|
||||||
@@ -61,12 +84,15 @@
|
|||||||
}else{
|
}else{
|
||||||
map.name="<spring:message code='root_node' />";
|
map.name="<spring:message code='root_node' />";
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
tree = $.fn.zTree.init($("#tree"), setting, zNodes);
|
tree = $.fn.zTree.init($("#tree"), setting, zNodes);
|
||||||
// 默认展开一级节点
|
// 默认展开一二级节点
|
||||||
var nodes = tree.getNodesByParam("level", 0);
|
var nodes = tree.getNodesByParam("level", 1);
|
||||||
|
for(var i=0; i<nodes.length; i++) {
|
||||||
|
tree.expandNode(nodes[i], true, false, false);
|
||||||
|
}
|
||||||
|
nodes=tree.getNodesByParam("level", 0);
|
||||||
for(var i=0; i<nodes.length; i++) {
|
for(var i=0; i<nodes.length; i++) {
|
||||||
tree.expandNode(nodes[i], true, false, false);
|
tree.expandNode(nodes[i], true, false, false);
|
||||||
}
|
}
|
||||||
@@ -195,7 +221,145 @@
|
|||||||
$("#txt").toggle();
|
$("#txt").toggle();
|
||||||
$("#key").focus();
|
$("#key").focus();
|
||||||
}
|
}
|
||||||
|
function beforeEditName(treeId, treeNode) {
|
||||||
|
var zTree = $.fn.zTree.getZTreeObj("tree");
|
||||||
|
zTree.selectNode(treeNode);
|
||||||
|
return confirm("<spring:message code='edit' />" + treeNode.name + "?");
|
||||||
|
}
|
||||||
|
function beforeRename(treeId, treeNode, newName) {
|
||||||
|
var zTree = $.fn.zTree.getZTreeObj("tree");
|
||||||
|
if (newName.length == 0) {
|
||||||
|
var tip="<spring:message code='can_not_null' />";
|
||||||
|
alert("<spring:message code='${title}' />"+tip.replace("%s"," "));
|
||||||
|
setTimeout(function(){zTree.editName(treeNode)}, 10);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if(confirm("<spring:message code='save' />" + treeNode.name + "?")){
|
||||||
|
return true;
|
||||||
|
}else{
|
||||||
|
setTimeout(function(){zTree.editName(treeNode)}, 10);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
function beforeRemove(treeId, treeNode, newName) {
|
||||||
|
return confirm("<spring:message code='remove' /> " + treeNode.name + "?");
|
||||||
|
}
|
||||||
|
//在重命名节点时,调用后台存储,将返回结果更新
|
||||||
|
function onRename(e, treeId, treeNode) {
|
||||||
|
loading("<spring:message code='loading' />...");
|
||||||
|
$.ajax({
|
||||||
|
type:'post',
|
||||||
|
async:true,
|
||||||
|
cache:false,
|
||||||
|
url:'${ctx}/specific/specificServiceCfg/ajaxSaveOrUpdateApp',
|
||||||
|
data:{
|
||||||
|
"specServiceId":treeNode.id,
|
||||||
|
"specServiceCode":treeNode.serviceCode,
|
||||||
|
"specServiceName":treeNode.name,
|
||||||
|
"cfgType":treeNode.serviceType,
|
||||||
|
"groupId":treeNode.groupId,
|
||||||
|
"businessType":treeNode.pId.replace("businessType",""),
|
||||||
|
"addFlag":treeNode.user
|
||||||
|
},
|
||||||
|
//dataType:"json",
|
||||||
|
//contentType:"application/json; charset=utf-8",
|
||||||
|
success:function(data){
|
||||||
|
treeNode.groupId=data.data;
|
||||||
|
treeNode.specServiceCode=data.specServiceCode;
|
||||||
|
treeNode.user=data.addFlag;
|
||||||
|
var zTree = $.fn.zTree.getZTreeObj("tree");
|
||||||
|
zTree.updateNode(treeNode);
|
||||||
|
closeTip();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
function onRemove(e, treeId, treeNode) {
|
||||||
|
loading("<spring:message code='loading' />...");
|
||||||
|
if(typeof treeNode=="string"){
|
||||||
|
var zTree = $.fn.zTree.getZTreeObj("tree");
|
||||||
|
zTree.removeNode(treeNode,true);
|
||||||
|
}else{
|
||||||
|
$.ajax({
|
||||||
|
type:'post',
|
||||||
|
async:true,
|
||||||
|
cache:false,
|
||||||
|
url:'${ctx}/specific/specificServiceCfg/ajaxRemoveApp',
|
||||||
|
data:{
|
||||||
|
"specServiceId":treeNode.id
|
||||||
|
},
|
||||||
|
//dataType:"json",
|
||||||
|
//contentType:"application/json; charset=utf-8",
|
||||||
|
success:function(data){
|
||||||
|
if(data){
|
||||||
|
var zTree = $.fn.zTree.getZTreeObj("tree");
|
||||||
|
zTree.removeNode(treeNode,false);
|
||||||
|
}
|
||||||
|
closeTip();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
//用户只能rename自己添加的节点
|
||||||
|
function showRenameBtn(treeId, treeNode) {
|
||||||
|
if(treeNode.isParent){
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if("${enableAddBtn}"&&"${enableAddBtn}"=="true"&&treeNode.user&&treeNode.user=="${userId}"){
|
||||||
|
return true;
|
||||||
|
}else{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//用户只能remove自己添加的节点
|
||||||
|
function showRemoveBtn(treeId, treeNode) {
|
||||||
|
if(treeNode.isParent){
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if("${enableAddBtn}"&&"${enableAddBtn}"=="true"&&treeNode.user&&treeNode.user=="${userId}"){
|
||||||
|
return true;
|
||||||
|
}else{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//只有在配置了enableAddBtn的界面上才会显示添加按钮
|
||||||
|
function addHoverDom(treeId, treeNode) {
|
||||||
|
//开启节点增加
|
||||||
|
if("${enableAddBtn}"&&"${enableAddBtn}"=="true"){
|
||||||
|
//根节点不需要增加节点
|
||||||
|
if(treeNode.pId==null||(treeNode.businessType&&treeNode.businessType!=-1)){
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
var sObj = $("#" + treeNode.tId + "_span");
|
||||||
|
if (treeNode.editNameFlag || $("#addBtn_"+treeNode.id).length>0) return;
|
||||||
|
var title="<spring:message code='add' /> <spring:message code='${title}' />";
|
||||||
|
var addStr = "<span class='button add' id='addBtn_" + treeNode.id
|
||||||
|
+ "' title='"+title+"' onfocus='this.blur();'></span>";
|
||||||
|
sObj.after(addStr);
|
||||||
|
var btn = $("#addBtn_"+treeNode.id);
|
||||||
|
if (btn){
|
||||||
|
btn.bind("click", function(){
|
||||||
|
//区别人工添加,在ID前加上manual
|
||||||
|
var id="manual"+new Date().getTime();
|
||||||
|
var zTree = $.fn.zTree.getZTreeObj("tree"); //addSelectedNode
|
||||||
|
zTree.addNodes(treeNode, {id:id, pId:treeNode.id, name:"<spring:message code='new' /> <spring:message code='${title}' />",
|
||||||
|
businessType:treeNode.id.replace("businessType",""),user:"${userId}",serviceType:treeNode.serviceType,groupId:"",
|
||||||
|
serviceCode:""});
|
||||||
|
var node = zTree.getNodeByParam("id", id,treeNode);
|
||||||
|
if(node){
|
||||||
|
zTree.updateNode(node);
|
||||||
|
zTree.editName(node);
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
function removeHoverDom(treeId, treeNode) {
|
||||||
|
$("#addBtn_"+treeNode.id).unbind().remove();
|
||||||
|
};
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
Reference in New Issue
Block a user