(1)maatCfg 加入requestId字段,注解为affairId,用来来函的实时统计

(2)IP白名单导入,调整来函不验证
(3)基础协议,加密隧道行为,修改部分界面字段名
This commit is contained in:
wangxin
2018-07-26 11:04:57 +08:00
parent 05736d7d41
commit 6705bf02ec
6 changed files with 29 additions and 10 deletions

View File

@@ -73,6 +73,9 @@ public class MaatCfg implements Serializable {
@Expose
private Integer fatherCfgId;
@Expose
@SerializedName("affairId")
private Integer requestId;
@Expose
@SerializedName("opTime")
private Date auditTime;
@Expose
@@ -652,6 +655,13 @@ public class MaatCfg implements Serializable {
public void setIsValid(Integer isValid) {
this.isValid = isValid;
}
public Integer getRequestId() {
return requestId;
}
public void setRequestId(Integer requestId) {
this.requestId = requestId;
}
public void initDefaultValue() {
this.doLog=2;
this.doBlackList=1;

View File

@@ -818,8 +818,16 @@ public class BaseController {
// requestId check start
Integer requestId=value.getRequestId();
if(requestId==null){
if("whitelistip".equals(specialItem)) {
value.setRequestId(0);
}else {
errInfo.append(String.format(prop.getProperty("can_not_null"), prop.getProperty("letter"))+";");
}
}else{//查询数据库是否存在ID
if("whitelistip".equals(specialItem)) {
value.setRequestId(0);
}else {
RequestInfo info=requestInfoService.getRequestInfoById((long)requestId.intValue());
if(info==null){
errInfo.append(String.format(prop.getProperty("id_not_exists"),requestId, prop.getProperty("letter"))+";");
@@ -827,6 +835,7 @@ public class BaseController {
errInfo.append(String.format(prop.getProperty("id_not_valid"),requestId, prop.getProperty("letter"))+";");
}
}
}
// requestId check end
//classification check start
String classification=value.getClassify();

View File

@@ -2,7 +2,7 @@
<%@ include file="/WEB-INF/include/taglib.jsp"%>
<html>
<head>
<title><spring:message code="${cfgName}"></spring:message></title>
<title><spring:message code="basic_protocol"></spring:message></title>
<script type="text/javascript">
$(function(){
$("#cancel").on("click",function(){

View File

@@ -312,7 +312,7 @@
<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="basic_protocol"/></th>
<%-- <th><spring:message code="behaviour_type"/></th> --%>
<th><spring:message code="ratelimit"/></th>
<th><spring:message code="block_type"/></th>

View File

@@ -181,7 +181,7 @@ var delContent = function(contentClassName, addBtnClassName) {
<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="social_app"/></label>
<label class="control-label col-md-3"><font color="red">*</font><spring:message code="encrypted_tunnel_behavior"/></label>
<div class="col-md-6">
<sys:treeselect id="specServiceId" name="specServiceId" value="${_cfg.specServiceId}"
labelName="parent.specServiceName"

View File

@@ -312,7 +312,7 @@
<tr>
<th><input type="checkbox" class="i-checks" id="checkAll"></th>
<th class="cfgDesc"><spring:message code="config_describe"/></th>
<th><spring:message code="encrypted_protocol_behavior"/></th>
<th><spring:message code="encrypted_tunnel_behavior"/></th>
<th><spring:message code="behaviour_type"/></th>
<th><spring:message code="ratelimit"/></th>
<th><spring:message code="block_type"/></th>