提交 d9642907 authored 作者: gongwenjie's avatar gongwenjie

合并分支 'gwj' 到 'master'

通知 查看合并请求 !128
流水线 #186 已失败 于阶段
...@@ -14,6 +14,8 @@ import com.zjty.tynotes.pas.service.IUserService; ...@@ -14,6 +14,8 @@ import com.zjty.tynotes.pas.service.IUserService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.apache.poi.ss.usermodel.Workbook; import org.apache.poi.ss.usermodel.Workbook;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.io.ClassPathResource; import org.springframework.core.io.ClassPathResource;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
...@@ -45,6 +47,7 @@ import static org.springframework.http.ResponseEntity.ok; ...@@ -45,6 +47,7 @@ import static org.springframework.http.ResponseEntity.ok;
@RequestMapping("/pas/excel") @RequestMapping("/pas/excel")
@AutoDocument @AutoDocument
public class ExcelController { public class ExcelController {
private final static Logger logger = LoggerFactory.getLogger(ExcelController.class);
@Autowired @Autowired
private IUserService iUserService; private IUserService iUserService;
@Autowired @Autowired
...@@ -153,6 +156,8 @@ public class ExcelController { ...@@ -153,6 +156,8 @@ public class ExcelController {
} catch (Exception e) { } catch (Exception e) {
// TODO Auto-generated catch block // TODO Auto-generated catch block
e.printStackTrace(); e.printStackTrace();
logger.error(e.getMessage());
} }
System.out.println("----------file download---" + filename); System.out.println("----------file download---" + filename);
try { try {
...@@ -161,6 +166,7 @@ public class ExcelController { ...@@ -161,6 +166,7 @@ public class ExcelController {
} catch (IOException e) { } catch (IOException e) {
// TODO Auto-generated catch block // TODO Auto-generated catch block
e.printStackTrace(); e.printStackTrace();
logger.error(e.getMessage());
} }
} }
return ok("下载失败"); return ok("下载失败");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论