提交 cea04baa authored 作者: yucaiwei's avatar yucaiwei

--no commit message

上级 bc4b14ba
......@@ -582,4 +582,17 @@ public class FileController {
}
return service.queryAll(pageParam);
}
@ApiOperation("税可知标签导入模板文件下载")
@GetMapping("/download/labelTemplate")
public String downLoad(HttpServletRequest request, HttpServletResponse response) {
String fileName = "D:/opt/upload/skz/标签模板.xlsx";
File file = new File(fileName);
try {
DownloadUtil.start(response, file, "标签模板.xlsx");
} catch (Exception e) {
throw new BaseException("文件下载失败!");
}
return null;
}
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论