Commit e0ccda78 authored by 莫林毅's avatar 莫林毅

1 监控运营/协查单管理/协查单明细

解决EXCEL下载问题 1 监控运营/协查单管理/定制分析 解决'重置按钮'问题
parent 98880f94
...@@ -69,6 +69,7 @@ import com.hp.cmsz.service.monitoroperation.GjfxWarningInfoService; ...@@ -69,6 +69,7 @@ import com.hp.cmsz.service.monitoroperation.GjfxWarningInfoService;
import com.hp.cmsz.service.monitoroperation.XcdWarningInfoViewService; import com.hp.cmsz.service.monitoroperation.XcdWarningInfoViewService;
import com.hp.cmsz.repository.XcdDetailInfoViewDao; import com.hp.cmsz.repository.XcdDetailInfoViewDao;
/** /**
* WorkingOrderReasultControll类负责对协查单管理页面进行控制 * WorkingOrderReasultControll类负责对协查单管理页面进行控制
* *
...@@ -293,7 +294,7 @@ public class WorkingOrderReasultController { ...@@ -293,7 +294,7 @@ public class WorkingOrderReasultController {
model.put("warningSourceList", warningSourceList); model.put("warningSourceList", warningSourceList);
model.put("channelList", channelList); model.put("channelList", channelList);
model.put("datasourceList", datasourceList); model.put("datasourceList", datasourceList);
/*model.put("businessList", businessList);*/ /*model.put("businessList", businessList);*/
model.put("providerList", providerList); model.put("providerList", providerList);
model.put("providerGsonList", gson.toJson(providerList)); model.put("providerGsonList", gson.toJson(providerList));
model.put("provinceList", provinceList); model.put("provinceList", provinceList);
...@@ -303,7 +304,7 @@ public class WorkingOrderReasultController { ...@@ -303,7 +304,7 @@ public class WorkingOrderReasultController {
} }
/* //返回到协查单管理页面(做第一个tab()home的分页) /* //返回到协查单管理页面(做第一个tab()home的分页)
@RequestMapping(method = RequestMethod.GET) @RequestMapping(method = RequestMethod.GET)
public String list0( public String list0(
@RequestParam(value = "sortType0", defaultValue = "failureId") String sortType, //按照哪一个值排序 @RequestParam(value = "sortType0", defaultValue = "failureId") String sortType, //按照哪一个值排序
@RequestParam(value = "page0", defaultValue = "1") int pageNumber,//默认进入第几页 @RequestParam(value = "page0", defaultValue = "1") int pageNumber,//默认进入第几页
...@@ -437,7 +438,7 @@ public class WorkingOrderReasultController { ...@@ -437,7 +438,7 @@ public class WorkingOrderReasultController {
if (size2 >= 4) { if (size2 >= 4) {
if (report == -1) { if (report == -1) {
xcdWorkingOrderInfoS = xcdWorkingOrderInfoService.getAllXcdWorkingOrderInfoNotRelBy(time1, time2, providerS, datasourceS, channelS, provinceS); xcdWorkingOrderInfoS = xcdWorkingOrderInfoService.getAllXcdWorkingOrderInfoNotRelBy(time1, time2, providerS, datasourceS, channelS, provinceS);
}else{ } else {
xcdWorkingOrderInfoS = xcdWorkingOrderInfoService.getAllXcdWorkingOrderInfoNotRelBy1(time1, time2, providerS, datasourceS, channelS, provinceS, report); xcdWorkingOrderInfoS = xcdWorkingOrderInfoService.getAllXcdWorkingOrderInfoNotRelBy1(time1, time2, providerS, datasourceS, channelS, provinceS, report);
} }
staticXcdDetailInfoView = xcdWorkingOrderInfoS; staticXcdDetailInfoView = xcdWorkingOrderInfoS;
...@@ -451,13 +452,13 @@ public class WorkingOrderReasultController { ...@@ -451,13 +452,13 @@ public class WorkingOrderReasultController {
} }
if (report == -1) { if (report == -1) {
xcdWorkingOrderInfoS = xcdWorkingOrderInfoService.getAllXcdWorkingOrderInfoNotRelBy(time1, time2, providerS, datasourceS, channelS, provinceS); xcdWorkingOrderInfoS = xcdWorkingOrderInfoService.getAllXcdWorkingOrderInfoNotRelBy(time1, time2, providerS, datasourceS, channelS, provinceS);
}else{ } else {
xcdWorkingOrderInfoS = xcdWorkingOrderInfoService.getAllXcdWorkingOrderInfoNotRelBy1(time1, time2, providerS, datasourceS, channelS, provinceS, report); xcdWorkingOrderInfoS = xcdWorkingOrderInfoService.getAllXcdWorkingOrderInfoNotRelBy1(time1, time2, providerS, datasourceS, channelS, provinceS, report);
} }
} else { } else {
if (report == -1) { if (report == -1) {
xcdWorkingOrderInfoS = xcdWorkingOrderInfoService.getAllXcdWorkingOrderInfoNotRelBy(time1, time2, providerS, datasourceS, channelS, provinceS); xcdWorkingOrderInfoS = xcdWorkingOrderInfoService.getAllXcdWorkingOrderInfoNotRelBy(time1, time2, providerS, datasourceS, channelS, provinceS);
}else{ } else {
xcdWorkingOrderInfoS = xcdWorkingOrderInfoService.getAllXcdWorkingOrderInfoNotRelBy1(time1, time2, providerS, datasourceS, channelS, provinceS, report); xcdWorkingOrderInfoS = xcdWorkingOrderInfoService.getAllXcdWorkingOrderInfoNotRelBy1(time1, time2, providerS, datasourceS, channelS, provinceS, report);
} }
} }
...@@ -797,6 +798,8 @@ public class WorkingOrderReasultController { ...@@ -797,6 +798,8 @@ public class WorkingOrderReasultController {
if (xcdWorkingOrderInfo.getActualCompletionTime() != null) if (xcdWorkingOrderInfo.getActualCompletionTime() != null)
row.createCell(12).setCellValue(df.format(xcdWorkingOrderInfo.getActualCompletionTime())); row.createCell(12).setCellValue(df.format(xcdWorkingOrderInfo.getActualCompletionTime()));
// if(xcdWorkingOrderInfo.getClosed()!=null)row.createCell(11).setCellValue(xcdWorkingOrderInfo.getClosed()); // if(xcdWorkingOrderInfo.getClosed()!=null)row.createCell(11).setCellValue(xcdWorkingOrderInfo.getClosed());
// if(xcdWorkingOrderInfo.getOccurReason()!=null)row.createCell(12).setCellValue(xcdWorkingOrderInfo.getOccurReason()); // if(xcdWorkingOrderInfo.getOccurReason()!=null)row.createCell(12).setCellValue(xcdWorkingOrderInfo.getOccurReason());
if (xcdWorkingOrderInfo.getResolvingStatus() != null) if (xcdWorkingOrderInfo.getResolvingStatus() != null)
...@@ -814,7 +817,23 @@ public class WorkingOrderReasultController { ...@@ -814,7 +817,23 @@ public class WorkingOrderReasultController {
row.createCell(18).setCellValue(xcdWorkingOrderInfo.getFailureReason()); row.createCell(18).setCellValue(xcdWorkingOrderInfo.getFailureReason());
if (xcdWorkingOrderInfo.getAffectregion() != null) if (xcdWorkingOrderInfo.getAffectregion() != null)
row.createCell(19).setCellValue(xcdWorkingOrderInfo.getAffectregion()); row.createCell(19).setCellValue(xcdWorkingOrderInfo.getAffectregion());
if (xcdWorkingOrderInfo.getIfReportFile() != '\0') {
char c = xcdWorkingOrderInfo.getIfReportFile();
String s = "";
switch (c) {
case '1':
s = "有";
break;
case '0':
s = "无";
break;
default:
s = "";
}
System.out.println("分析报告== "+xcdWorkingOrderInfo.getIfReportFile());
System.out.println("分析报告== "+ s);
row.createCell(20).setCellValue(s);
} ;
} }
......
...@@ -320,6 +320,11 @@ ...@@ -320,6 +320,11 @@
initDataSource();//数据来源 initDataSource();//数据来源
initBusiness();//业务 initBusiness();//业务
initKpi();//指标 initKpi();//指标
$('input[name="allDataSource"]').prop("checked", true);
$('input[name="datasource"]').prop("checked", true);
// initReport();//定制分析 // initReport();//定制分析
}); });
......
...@@ -453,7 +453,8 @@ $(function () { ...@@ -453,7 +453,8 @@ $(function () {
+ "&province2=" + "-1" + "&province2=" + "-1"
+ "&datasource=" + "-1" + "&datasource=" + "-1"
+ "&provider=" + "-1" + "&provider=" + "-1"
+ "&xcdcode=" + "-1"; + "&xcdcode=" + "-1"
+ "&report=" + "-1";
$("#submit2").click(function () { $("#submit2").click(function () {
......
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