|
@@ -95,7 +95,7 @@ public class ZhjqVoiceController extends BaseController {
|
|
|
@Log(title = "导出景区播报导出列表", businessType = BusinessType.EXPORT)
|
|
|
@PostMapping("/export")
|
|
|
public AjaxResult export(HttpServletResponse response, ZhjqVoice zhjqVoice) throws IOException {
|
|
|
- try{
|
|
|
+ try {
|
|
|
String fileName = "景区播报统计" + DateUtils.dateTimeNow() + ".xlsx";
|
|
|
Map<String, String> map = zhjqVoiceService.export(response, zhjqVoice);
|
|
|
File file = new File(map.get("localFilePath"));
|
|
@@ -106,7 +106,7 @@ public class ZhjqVoiceController extends BaseController {
|
|
|
toClient.write(FileUtil.readBytes(file));
|
|
|
toClient.flush();
|
|
|
toClient.close();
|
|
|
- }catch (Exception e){
|
|
|
+ } catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
return null;
|