配置导入增加‘配置描述’非空限制;dns block配置导入增加默认策略;修改用户行为统计查询时间范围限制
This commit is contained in:
@@ -92,8 +92,12 @@ public class CheckAppFeatureComplexStringFormatThread implements Callable<String
|
|||||||
StringBuffer errInfo = new StringBuffer();
|
StringBuffer errInfo = new StringBuffer();
|
||||||
AppComplexFeatureCfg baseStringCfg = new AppComplexFeatureCfg();
|
AppComplexFeatureCfg baseStringCfg = new AppComplexFeatureCfg();
|
||||||
BeanUtils.copyProperties(list.get(i), baseStringCfg);
|
BeanUtils.copyProperties(list.get(i), baseStringCfg);
|
||||||
// 配置描述长度限制
|
String cfgDesc = baseStringCfg.getCfgDesc();
|
||||||
if(baseStringCfg.getCfgDesc().length() > 128) {
|
// 配置描述限制
|
||||||
|
if(StringUtils.isBlank(cfgDesc)) {
|
||||||
|
errInfo.append(
|
||||||
|
String.format(prop.getProperty("can_not_null"), prop.getProperty("config_describe")) + ";");
|
||||||
|
}else if(cfgDesc.length() > 128) {
|
||||||
errInfo.append(prop.getProperty("config_describe")+prop.getProperty("length_error")+" "+String.format(prop.getProperty("max_length")+":128") + ";");
|
errInfo.append(prop.getProperty("config_describe")+prop.getProperty("length_error")+" "+String.format(prop.getProperty("max_length")+":128") + ";");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -151,14 +155,7 @@ public class CheckAppFeatureComplexStringFormatThread implements Callable<String
|
|||||||
|
|
||||||
if (StringUtils.isNotBlank(dirtrictP)) {
|
if (StringUtils.isNotBlank(dirtrictP)) {
|
||||||
if (StringUtils.isBlank(district)) {
|
if (StringUtils.isBlank(district)) {
|
||||||
if (dirtrictP.indexOf(",") == -1) {
|
baseStringCfg.setDistrict(dirtrictP.split(",")[0]);
|
||||||
baseStringCfg.setDistrict(dirtrictP);
|
|
||||||
} else {
|
|
||||||
// baseStringCfg.setDistrict(dirtrictP.split(",")[0]);
|
|
||||||
errInfo.append(
|
|
||||||
String.format(prop.getProperty("can_not_null"), prop.getProperty("district") + " ")
|
|
||||||
+ ";");
|
|
||||||
}
|
|
||||||
} else if (dirtrictP.indexOf(district) == -1) {
|
} else if (dirtrictP.indexOf(district) == -1) {
|
||||||
errInfo.append(
|
errInfo.append(
|
||||||
String.format(prop.getProperty("is_incorrect"), prop.getProperty("district") + " ")
|
String.format(prop.getProperty("is_incorrect"), prop.getProperty("district") + " ")
|
||||||
|
|||||||
@@ -90,8 +90,12 @@ public class CheckComplexStringFormatThread implements Callable<String>{
|
|||||||
StringBuffer errInfo = new StringBuffer();
|
StringBuffer errInfo = new StringBuffer();
|
||||||
ComplexkeywordCfg baseStringCfg = new ComplexkeywordCfg();
|
ComplexkeywordCfg baseStringCfg = new ComplexkeywordCfg();
|
||||||
BeanUtils.copyProperties(list.get(i), baseStringCfg);
|
BeanUtils.copyProperties(list.get(i), baseStringCfg);
|
||||||
|
String cfgDesc = baseStringCfg.getCfgDesc();
|
||||||
// 配置描述、关键字长度限制
|
// 配置描述、关键字长度限制
|
||||||
if(baseStringCfg.getCfgDesc().length() > 128) {
|
if(StringUtils.isBlank(cfgDesc)) {
|
||||||
|
errInfo.append(
|
||||||
|
String.format(prop.getProperty("can_not_null"), prop.getProperty("config_describe")) + ";");
|
||||||
|
}else if(cfgDesc.length() > 128) {
|
||||||
errInfo.append(prop.getProperty("config_describe")+prop.getProperty("length_error")+" "+String.format(prop.getProperty("max_length")+":128") + ";");
|
errInfo.append(prop.getProperty("config_describe")+prop.getProperty("length_error")+" "+String.format(prop.getProperty("max_length")+":128") + ";");
|
||||||
}
|
}
|
||||||
if(baseStringCfg.getCfgKeywords().length() < 4 || baseStringCfg.getCfgKeywords().length() > 1024){
|
if(baseStringCfg.getCfgKeywords().length() < 4 || baseStringCfg.getCfgKeywords().length() > 1024){
|
||||||
@@ -101,6 +105,9 @@ public class CheckComplexStringFormatThread implements Callable<String>{
|
|||||||
if (regionDict.getRegionType().equals(3)) {
|
if (regionDict.getRegionType().equals(3)) {
|
||||||
if (regionDict.getFunctionId().equals(7)) {
|
if (regionDict.getFunctionId().equals(7)) {
|
||||||
Long dnsStrategyId = baseStringCfg.getDnsStrategyId();
|
Long dnsStrategyId = baseStringCfg.getDnsStrategyId();
|
||||||
|
if(dnsStrategyId == null) { // 默认策略
|
||||||
|
dnsStrategyId = Long.parseLong("0");
|
||||||
|
}
|
||||||
if (dnsStrategyId != null&&dnsStrategyId>0) {
|
if (dnsStrategyId != null&&dnsStrategyId>0) {
|
||||||
List<DnsResStrategy> dnsStrategys = DictUtils.getDnsResStrategyList(dnsStrategyId);
|
List<DnsResStrategy> dnsStrategys = DictUtils.getDnsResStrategyList(dnsStrategyId);
|
||||||
if (dnsStrategys == null || dnsStrategys.size() == 0) {
|
if (dnsStrategys == null || dnsStrategys.size() == 0) {
|
||||||
|
|||||||
@@ -104,8 +104,12 @@ public class CheckIpFormatThread implements Callable<String>{
|
|||||||
StringBuffer errInfo = new StringBuffer();
|
StringBuffer errInfo = new StringBuffer();
|
||||||
IpPortCfg baseIpCfg = new IpPortCfg();
|
IpPortCfg baseIpCfg = new IpPortCfg();
|
||||||
BeanUtils.copyProperties(list.get(i), baseIpCfg);
|
BeanUtils.copyProperties(list.get(i), baseIpCfg);
|
||||||
// 配置描述长度限制
|
String cfgDesc = baseIpCfg.getCfgDesc();
|
||||||
if(baseIpCfg.getCfgDesc()!=null&&baseIpCfg.getCfgDesc().length() > 128) {
|
// 配置描述限制
|
||||||
|
if(StringUtils.isBlank(cfgDesc)) {
|
||||||
|
errInfo.append(
|
||||||
|
String.format(prop.getProperty("can_not_null"), prop.getProperty("config_describe")) + ";");
|
||||||
|
}else if(cfgDesc.length() > 128) {
|
||||||
errInfo.append(prop.getProperty("config_describe")+prop.getProperty("length_error")+" "+String.format(prop.getProperty("max_length")+":128") + ";");
|
errInfo.append(prop.getProperty("config_describe")+prop.getProperty("length_error")+" "+String.format(prop.getProperty("max_length")+":128") + ";");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -182,6 +186,9 @@ public class CheckIpFormatThread implements Callable<String>{
|
|||||||
// dns ip
|
// dns ip
|
||||||
if (regionDict.getFunctionId().equals(7)) {
|
if (regionDict.getFunctionId().equals(7)) {
|
||||||
Integer dnsStrategyId = baseIpCfg.getDnsStrategyId();
|
Integer dnsStrategyId = baseIpCfg.getDnsStrategyId();
|
||||||
|
if(dnsStrategyId == null) { // 默认策略
|
||||||
|
dnsStrategyId = 0;
|
||||||
|
}
|
||||||
if (dnsStrategyId != null&&dnsStrategyId>0) {
|
if (dnsStrategyId != null&&dnsStrategyId>0) {
|
||||||
List<DnsResStrategy> dnsStrategys = DictUtils.getDnsResStrategyList(Long.valueOf(dnsStrategyId));
|
List<DnsResStrategy> dnsStrategys = DictUtils.getDnsResStrategyList(Long.valueOf(dnsStrategyId));
|
||||||
if (dnsStrategys == null || dnsStrategys.size() == 0) {
|
if (dnsStrategys == null || dnsStrategys.size() == 0) {
|
||||||
|
|||||||
@@ -88,8 +88,12 @@ public class CheckStringFormatThread implements Callable<String>{
|
|||||||
StringBuffer errInfo = new StringBuffer();
|
StringBuffer errInfo = new StringBuffer();
|
||||||
BaseStringCfg baseStringCfg = new BaseStringCfg();
|
BaseStringCfg baseStringCfg = new BaseStringCfg();
|
||||||
BeanUtils.copyProperties(list.get(i), baseStringCfg);
|
BeanUtils.copyProperties(list.get(i), baseStringCfg);
|
||||||
// 配置描述、关键字长度限制
|
String cfgDesc = baseStringCfg.getCfgDesc();
|
||||||
if(baseStringCfg.getCfgDesc().length() > 128) {
|
// 配置描述限制
|
||||||
|
if(StringUtils.isBlank(cfgDesc)) {
|
||||||
|
errInfo.append(
|
||||||
|
String.format(prop.getProperty("can_not_null"), prop.getProperty("config_describe")) + ";");
|
||||||
|
}else if(cfgDesc.length() > 128) {
|
||||||
errInfo.append(prop.getProperty("config_describe")+prop.getProperty("length_error")+" "+String.format(prop.getProperty("max_length")+":128") + ";");
|
errInfo.append(prop.getProperty("config_describe")+prop.getProperty("length_error")+" "+String.format(prop.getProperty("max_length")+":128") + ";");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -89,8 +89,12 @@ public class CheckTopicWebsiteFormatThread implements Callable<String>{
|
|||||||
StringBuffer errInfo = new StringBuffer();
|
StringBuffer errInfo = new StringBuffer();
|
||||||
AppTopicDomainCfg baseStringCfg = new AppTopicDomainCfg();
|
AppTopicDomainCfg baseStringCfg = new AppTopicDomainCfg();
|
||||||
BeanUtils.copyProperties(list.get(i), baseStringCfg);
|
BeanUtils.copyProperties(list.get(i), baseStringCfg);
|
||||||
// 配置描述、关键字长度限制
|
String cfgDesc = baseStringCfg.getCfgDesc();
|
||||||
if(baseStringCfg.getCfgDesc().length() > 128) {
|
// 配置描述限制
|
||||||
|
if(StringUtils.isBlank(cfgDesc)) {
|
||||||
|
errInfo.append(
|
||||||
|
String.format(prop.getProperty("can_not_null"), prop.getProperty("config_describe")) + ";");
|
||||||
|
}else if(cfgDesc.length() > 128) {
|
||||||
errInfo.append(prop.getProperty("config_describe")+prop.getProperty("length_error")+" "+String.format(prop.getProperty("max_length")+":128") + ";");
|
errInfo.append(prop.getProperty("config_describe")+prop.getProperty("length_error")+" "+String.format(prop.getProperty("max_length")+":128") + ";");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -222,7 +222,7 @@
|
|||||||
<%-- value="${log.searchFoundStartTime}" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:true,maxDate:'${nowTime}'});"/> --%>
|
<%-- value="${log.searchFoundStartTime}" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:true,maxDate:'${nowTime}'});"/> --%>
|
||||||
|
|
||||||
<input id="searchFoundStartTime" name="searchFoundStartTime" type="text" readonly="readonly" maxlength="20" class="form-control Wdate"
|
<input id="searchFoundStartTime" name="searchFoundStartTime" type="text" readonly="readonly" maxlength="20" class="form-control Wdate"
|
||||||
value="${log.searchFoundStartTime}" onclick="WdatePicker({onpicked:setReportTime,dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:true,maxDate:'#F{$dp.$D(\'searchFoundEndTime\')}'});"/>
|
value="${log.searchFoundStartTime}" onclick="WdatePicker({onpicked:function(){this.onchange()},dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:true,maxDate:'#F{\'new Date()\'}'});" onchange="setStartTime('#searchFoundStartTime','#searchFoundEndTime',1,'w','yyyy-MM-dd hh:mm:ss',false)"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="pull-left">
|
<div class="pull-left">
|
||||||
@@ -234,7 +234,7 @@
|
|||||||
<%-- value="${log.searchFoundEndTime}" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:true,maxDate:'${nowTime}'});"/> --%>
|
<%-- value="${log.searchFoundEndTime}" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:true,maxDate:'${nowTime}'});"/> --%>
|
||||||
|
|
||||||
<input id="searchFoundEndTime" name="searchFoundEndTime" type="text" readonly="readonly" maxlength="20" class="form-control Wdate"
|
<input id="searchFoundEndTime" name="searchFoundEndTime" type="text" readonly="readonly" maxlength="20" class="form-control Wdate"
|
||||||
value="${log.searchFoundEndTime}" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:true,minDate:'#F{$dp.$D(\'searchFoundStartTime\')}',maxDate:'#F{$dp.$D(\'searchFoundStartTime\',{d:7})}'});"/>
|
value="${log.searchFoundEndTime}" onclick="WdatePicker({onpicked:function(){this.onchange()},dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:true,maxDate:'#F{\'new Date()\'}'});" onchange="setEndTime('#searchFoundStartTime','#searchFoundEndTime',1,'w','yyyy-MM-dd hh:mm:ss',false)"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="pull-left accountSearch">
|
<div class="pull-left accountSearch">
|
||||||
|
|||||||
Reference in New Issue
Block a user