|
@@ -222,7 +222,7 @@ public class MonitorCameraServiceImpl extends ServiceImpl<MonitorCameraMapper, M
|
222
|
222
|
|
223
|
223
|
try {
|
224
|
224
|
if (StringUtils.isEmpty(fileName))
|
225
|
|
- fileName = LocalDate.now()+"在线统计分析表";
|
|
225
|
+ fileName = LocalDate.now().toString();
|
226
|
226
|
fileName = URLEncoder.encode(fileName, "UTF-8");
|
227
|
227
|
// 设置响应信息,让浏览器下载文件
|
228
|
228
|
response.setContentType("application/vnd.ms-excel");
|
|
@@ -234,7 +234,7 @@ public class MonitorCameraServiceImpl extends ServiceImpl<MonitorCameraMapper, M
|
234
|
234
|
.sheet(fileName)
|
235
|
235
|
.doWrite(orgInfoMapper.statisticalAnalysis());
|
236
|
236
|
} catch (IOException e) {
|
237
|
|
- log.error("在线统计分析导出异常:{}",e);
|
|
237
|
+ log.error("在线统计分析导出异常:{}", e);
|
238
|
238
|
throw new RuntimeException(e);
|
239
|
239
|
}
|
240
|
240
|
}
|
|
@@ -354,7 +354,7 @@ public class MonitorCameraServiceImpl extends ServiceImpl<MonitorCameraMapper, M
|
354
|
354
|
|
355
|
355
|
try {
|
356
|
356
|
if (StringUtils.isEmpty(fileName))
|
357
|
|
- fileName = LocalDate.now()+ "自动考核数据表";
|
|
357
|
+ fileName = LocalDate.now().toString();
|
358
|
358
|
fileName = URLEncoder.encode(fileName, "UTF-8");
|
359
|
359
|
// 设置响应信息,让浏览器下载文件
|
360
|
360
|
response.setContentType("application/vnd.ms-excel");
|
|
@@ -365,8 +365,9 @@ public class MonitorCameraServiceImpl extends ServiceImpl<MonitorCameraMapper, M
|
365
|
365
|
.excelType(ExcelTypeEnum.XLSX)
|
366
|
366
|
.sheet(fileName)
|
367
|
367
|
.doWrite(this::data);
|
|
368
|
+
|
368
|
369
|
} catch (IOException e) {
|
369
|
|
- log.error("自动考核导出异常:{}",e);
|
|
370
|
+ log.error("自动考核导出异常:{}", e);
|
370
|
371
|
throw new RuntimeException(e);
|
371
|
372
|
}
|
372
|
373
|
|