浏览代码

格式化

bihuisong 5 月之前
父节点
当前提交
ea79a37eef
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      zhjq-business/src/main/java/com/zhjq/controller/ZhjqVoiceController.java

+ 2 - 2
zhjq-business/src/main/java/com/zhjq/controller/ZhjqVoiceController.java

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