修改dns日志字段名

This commit is contained in:
chenjinsong
2018-08-01 09:41:20 +08:00
parent 066f1c3d1d
commit 6bd5be9722
3 changed files with 53 additions and 53 deletions

View File

@@ -9,10 +9,10 @@ public class NtcDnsLog extends BaseLogEntity<NtcDnsLog> {
private Integer ra; private Integer ra;
private String rr; private String rr;
private Integer qType; private Integer qType;
private Integer qClass; private Integer qclass;
private Integer opCode; private Integer opcode;
private String qName; private String qname;
private String cName; private String cname;
private Integer dnsSub; private Integer dnsSub;
/*以下字段无需反馈到界面*/ /*以下字段无需反馈到界面*/
@@ -20,32 +20,6 @@ public class NtcDnsLog extends BaseLogEntity<NtcDnsLog> {
private Integer cheatRcode; private Integer cheatRcode;
private String cheatStrategy; private String cheatStrategy;
private String cheatRr; private String cheatRr;
public String getCheatType() {
return cheatType;
}
public void setCheatType(String cheatType) {
this.cheatType = cheatType;
}
public Integer getCheatRcode() {
return cheatRcode;
}
public void setCheatRcode(Integer cheatRcode) {
this.cheatRcode = cheatRcode;
}
public String getCheatStrategy() {
return cheatStrategy;
}
public void setCheatStrategy(String cheatStrategy) {
this.cheatStrategy = cheatStrategy;
}
public String getCheatRr() {
return cheatRr;
}
public void setCheatRr(String cheatRr) {
this.cheatRr = cheatRr;
}
public Integer getQr() { public Integer getQr() {
return qr; return qr;
} }
@@ -76,29 +50,29 @@ public class NtcDnsLog extends BaseLogEntity<NtcDnsLog> {
public void setqType(Integer qType) { public void setqType(Integer qType) {
this.qType = qType; this.qType = qType;
} }
public Integer getqClass() { public Integer getQclass() {
return qClass; return qclass;
} }
public void setqClass(Integer qClass) { public void setQclass(Integer qclass) {
this.qClass = qClass; this.qclass = qclass;
} }
public Integer getOpCode() { public Integer getOpcode() {
return opCode; return opcode;
} }
public void setOpCode(Integer opCode) { public void setOpcode(Integer opcode) {
this.opCode = opCode; this.opcode = opcode;
} }
public String getqName() { public String getQname() {
return qName; return qname;
} }
public void setqName(String qName) { public void setQname(String qname) {
this.qName = qName; this.qname = qname;
} }
public String getcName() { public String getCname() {
return cName; return cname;
} }
public void setcName(String cName) { public void setCname(String cname) {
this.cName = cName; this.cname = cname;
} }
public Integer getDnsSub() { public Integer getDnsSub() {
return dnsSub; return dnsSub;
@@ -106,4 +80,30 @@ public class NtcDnsLog extends BaseLogEntity<NtcDnsLog> {
public void setDnsSub(Integer dnsSub) { public void setDnsSub(Integer dnsSub) {
this.dnsSub = dnsSub; this.dnsSub = dnsSub;
} }
public String getCheatType() {
return cheatType;
}
public void setCheatType(String cheatType) {
this.cheatType = cheatType;
}
public Integer getCheatRcode() {
return cheatRcode;
}
public void setCheatRcode(Integer cheatRcode) {
this.cheatRcode = cheatRcode;
}
public String getCheatStrategy() {
return cheatStrategy;
}
public void setCheatStrategy(String cheatStrategy) {
this.cheatStrategy = cheatStrategy;
}
public String getCheatRr() {
return cheatRr;
}
public void setCheatRr(String cheatRr) {
this.cheatRr = cheatRr;
}
} }

View File

@@ -37,8 +37,8 @@ public class DnsLogController extends BaseController {
Map<String, Object> params = new HashMap<String, Object>(); Map<String, Object> params = new HashMap<String, Object>();
params.put("pageSize", page.getPageSize()); params.put("pageSize", page.getPageSize());
params.put("pageNo", page.getPageNo()); params.put("pageNo", page.getPageNo());
if (StringUtils.isNotBlank(log.getqName())) { if (StringUtils.isNotBlank(log.getQname())) {
params.put("searchQName", log.getqName()); params.put("searchQName", log.getQname());
} }
initLogSearchValue(log, params); initLogSearchValue(log, params);

View File

@@ -150,7 +150,7 @@
<div class="col-md-4"> <div class="col-md-4">
<div class="form-group"> <div class="form-group">
<label><spring:message code="qname"/></label> <label><spring:message code="qname"/></label>
<input name="qName" type="text" class="form-control" value="${log.qName }"/> <input name="qname" type="text" class="form-control" value="${log.qname }"/>
</div> </div>
</div> </div>
</div> </div>
@@ -232,16 +232,16 @@
</td> </td>
<td> <td>
<c:forEach items="${fns:getDictList('DNS_QCLASS')}" var="qclass"> <c:forEach items="${fns:getDictList('DNS_QCLASS')}" var="qclass">
<c:if test="${qclass.itemCode eq _log.qClass}">${qclass.itemValue}</c:if> <c:if test="${qclass.itemCode eq _log.qclass}">${qclass.itemValue}</c:if>
</c:forEach> </c:forEach>
</td> </td>
<td> <td>
<c:forEach items="${fns:getDictList('DNS_OPCODE')}" var="opcode"> <c:forEach items="${fns:getDictList('DNS_OPCODE')}" var="opcode">
<c:if test="${opcode.itemCode eq _log.opCode}">${opcode.itemValue}</c:if> <c:if test="${opcode.itemCode eq _log.opcode}">${opcode.itemValue}</c:if>
</c:forEach> </c:forEach>
</td> </td>
<td title="${_log.qName }">${fns:abbr(_log.qName, 30)}</td> <td title="${_log.qname }">${fns:abbr(_log.qname, 30)}</td>
<td>${_log.cName }</td> <td>${_log.cname }</td>
<%-- <td>${_log.dnsSub }</td> --%> <%-- <td>${_log.dnsSub }</td> --%>
<td>${_log.capIp }</td> <td>${_log.capIp }</td>