|
|
|
@ -69,6 +69,10 @@ public class ScanDataSituationController { |
|
|
|
public void export(ScanDataSituationBo bo, HttpServletResponse response) { |
|
|
|
try { |
|
|
|
List<ScanDataSituationVo> list = scanDataSituationService.selectScanDataSituationAreaList(bo); |
|
|
|
// 按行号填充序号列
|
|
|
|
for (int i = 0; i < list.size(); i++) { |
|
|
|
list.get(i).setSerialNumber(i + 1); |
|
|
|
} |
|
|
|
String sheetName = "各区扫码情况"; |
|
|
|
FileUtils.setAttachmentResponseHeader(response, ExcelUtil.encodingFilename(sheetName)); |
|
|
|
response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8"); |
|
|
|
@ -96,6 +100,10 @@ public class ScanDataSituationController { |
|
|
|
public void exportAreaDetails(ScanDataSituationBo bo, HttpServletResponse response) { |
|
|
|
try { |
|
|
|
List<ScanDataSituationVo> list = scanDataSituationService.selectScanDataSituationAreaDetailsList(bo); |
|
|
|
// 按行号填充序号列
|
|
|
|
for (int i = 0; i < list.size(); i++) { |
|
|
|
list.get(i).setSerialNumber(i + 1); |
|
|
|
} |
|
|
|
String sheetName = "区街道扫码情况"; |
|
|
|
FileUtils.setAttachmentResponseHeader(response, ExcelUtil.encodingFilename(sheetName)); |
|
|
|
response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8"); |
|
|
|
@ -140,6 +148,10 @@ public class ScanDataSituationController { |
|
|
|
public void exportDomain(ScanDataSituationBo bo, HttpServletResponse response) { |
|
|
|
try { |
|
|
|
List<ScanDataSituationVo> list = scanDataSituationService.selectScanDataSituationDomainList(bo); |
|
|
|
// 按行号填充序号列
|
|
|
|
for (int i = 0; i < list.size(); i++) { |
|
|
|
list.get(i).setSerialNumber(i + 1); |
|
|
|
} |
|
|
|
String sheetName = "各领域扫码情况"; |
|
|
|
FileUtils.setAttachmentResponseHeader(response, ExcelUtil.encodingFilename(sheetName)); |
|
|
|
response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8"); |
|
|
|
@ -166,6 +178,10 @@ public class ScanDataSituationController { |
|
|
|
public void exportDomainDetails(ScanDataSituationBo bo, HttpServletResponse response) { |
|
|
|
try { |
|
|
|
List<ScanDataSituationVo> list = scanDataSituationService.selectScanDataSituationDomainDetailsList(bo); |
|
|
|
// 按行号填充序号列
|
|
|
|
for (int i = 0; i < list.size(); i++) { |
|
|
|
list.get(i).setSerialNumber(i + 1); |
|
|
|
} |
|
|
|
String sheetName = "各领域扫码情况"; |
|
|
|
FileUtils.setAttachmentResponseHeader(response, ExcelUtil.encodingFilename(sheetName)); |
|
|
|
response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8"); |
|
|
|
|