Commit 9bd0745e authored by 莫林毅's avatar 莫林毅

监控运营 ->告警监控 告警明细页面

排除'报警个数为0'的 数据
parent c389a637
...@@ -101,7 +101,13 @@ public class AssociateDiagosisDetailController { ...@@ -101,7 +101,13 @@ public class AssociateDiagosisDetailController {
String timestamp1 = getLastMonth();//getOld(); String timestamp1 = getLastMonth();//getOld();
String timestamp2 = getNow();//getNew(); String timestamp2 = getNow();//getNew();
List<AssociateDiagosisDetail> associateDiagosisDetails = associateDiagosisDetailService.findAssociateDiagosisDetailByWarnTimeBeginAndEnd(timestamp1, timestamp2); List<AssociateDiagosisDetail> associateDiagosisDetails = associateDiagosisDetailService.findAssociateDiagosisDetailByWarnTimeBeginAndEnd(timestamp1, timestamp2);
Iterator<AssociateDiagosisDetail>iterator=associateDiagosisDetails.iterator();
while (iterator.hasNext()){
AssociateDiagosisDetail detail=iterator.next();
if(detail.getWarningNum().compareTo(BigInteger.ZERO)<=0){
iterator.remove();
}
}
model.put("provinceList", provinceList); model.put("provinceList", provinceList);
Gson gson = new Gson(); Gson gson = new Gson();
model.put("diagosisDetails", gson.toJson(associateDiagosisDetails)); model.put("diagosisDetails", gson.toJson(associateDiagosisDetails));
...@@ -142,6 +148,15 @@ public class AssociateDiagosisDetailController { ...@@ -142,6 +148,15 @@ public class AssociateDiagosisDetailController {
List<AssociateDiagosisDetail> diagosisDetails = associateDiagosisDetailService. List<AssociateDiagosisDetail> diagosisDetails = associateDiagosisDetailService.
findLastMathAssociateDiagosisDetailByWarnTimeBeginAndEndAndDimesionAndProvinceList(warnBeginTime, warnEndTime, dimension, provinceList); findLastMathAssociateDiagosisDetailByWarnTimeBeginAndEndAndDimesionAndProvinceList(warnBeginTime, warnEndTime, dimension, provinceList);
//--
Iterator<AssociateDiagosisDetail>iterator=diagosisDetails.iterator();
while (iterator.hasNext()){
AssociateDiagosisDetail detail=iterator.next();
if(detail.getWarningNum().compareTo(BigInteger.ZERO)<=0){
iterator.remove();
}
}
//--
Gson gson = new Gson(); Gson gson = new Gson();
return gson.toJson(diagosisDetails); return gson.toJson(diagosisDetails);
} }
...@@ -288,6 +303,15 @@ public class AssociateDiagosisDetailController { ...@@ -288,6 +303,15 @@ public class AssociateDiagosisDetailController {
list1.add(detail); list1.add(detail);
}*/ }*/
list1 = associateDiagosisDetailService.findDetailByProvinceIdAndoccurTimeAndCloseTime(provinceId, occurTimes, closeTimes); list1 = associateDiagosisDetailService.findDetailByProvinceIdAndoccurTimeAndCloseTime(provinceId, occurTimes, closeTimes);
//--
Iterator<AssociateDiagosisDetail>iterator=list1.iterator();
while (iterator.hasNext()){
AssociateDiagosisDetail detail=iterator.next();
if(detail.getWarningNum().compareTo(BigInteger.ZERO)<=0){
iterator.remove();
}
}
//--
Gson gson = new Gson(); Gson gson = new Gson();
model.put("diagosisDetails", gson.toJson(list1)); model.put("diagosisDetails", gson.toJson(list1));
return PageURLController.AssociateDiagosisDetail; return PageURLController.AssociateDiagosisDetail;
......
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
//初始化界面 //初始化界面
initTable(); initTable();
var v=document.getElementById('gzfxDetail').value; var v=document.getElementById('gzfxDetail').value;
console.log("v "+v);
}); });
function goClick(e,id){ function goClick(e,id){
var beginTime=""; var beginTime="";
...@@ -272,8 +271,7 @@ ...@@ -272,8 +271,7 @@
var str=""; var str="";
var period=getPeriod(); var period=getPeriod();
str=str+period[0]+"~"+period[1]; str=str+period[0]+"~"+period[1];
console.log("str "+str);
console.log("str leng "+str.length);
return str; return str;
} }
...@@ -290,9 +288,7 @@ ...@@ -290,9 +288,7 @@
}else{ }else{
var detailProvince = getDetailProvinceCheckedValueString(); var detailProvince = getDetailProvinceCheckedValueString();
var dimension=getDetailCheckeddDimension(); var dimension=getDetailCheckeddDimension();
console.log("detailProvince "+detailProvince);
console.log("dimension "+dimension);
console.log("detailtime "+detailtime);
//alert(dimension+"-pi-"); //alert(dimension+"-pi-");
// alert(detailProvince); // alert(detailProvince);
var href="${ctx}/MonitorOperation/AssociateDiagosisDetail/tableList?detailProvince="+detailProvince+"&detailtime="+detailtime+"&dimension="+dimension; var href="${ctx}/MonitorOperation/AssociateDiagosisDetail/tableList?detailProvince="+detailProvince+"&detailtime="+detailtime+"&dimension="+dimension;
......
...@@ -175,7 +175,8 @@ table_pagging.prototype={ ...@@ -175,7 +175,8 @@ table_pagging.prototype={
} }
tdContext = context; tdContext = context;
} else { }
else {
if(tdContext==null){ if(tdContext==null){
tdContext = "&nbsp;"; tdContext = "&nbsp;";
...@@ -198,7 +199,8 @@ table_pagging.prototype={ ...@@ -198,7 +199,8 @@ table_pagging.prototype={
var et=this.getData(this.objectlist[i],this.header[6][1]); var et=this.getData(this.objectlist[i],this.header[6][1]);
// tdContext="<a onclick='goClick("+id+","+new Date(st).getTime()+","+new Date(et).getTime()+")'>详-情</a>"; // tdContext="<a onclick='goClick("+id+","+new Date(st).getTime()+","+new Date(et).getTime()+")'>详-情</a>";
tdContext="<a onclick='goClick(this"+","+id+")'>详-情</a>"; tdContext="<a onclick='goClick(this"+","+id+")'>详-情</a>";
}else{ }
else{
tdContext = this.getData(this.objectlist[i],this.header[k][1]); tdContext = this.getData(this.objectlist[i],this.header[k][1]);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment