导出excel
提供统一的导出excel服务,通过此接口可以自动调用bus接口
下载数据,最后生成excel
文件。如果接口返回的是Page
对象,那么会自动循环调用,一直到最后一页数据为止。
接口请求
- 接口地址:
/download/excel/功能号
可以通过 get
请求方式传参
导出配置
导出模板依赖easypoi
,可以查看官方的使用文档。https://opensource.afterturn.cn/doc/easypoi.html
excel
:导出excel的集合funcNo
:需要导出的功能号tempPath
:导出excel的模板fileName
:导出的文件名称fileExtName
:导出的文件后缀
wueasy:
download:
excel:
- funcNo: S1092
tempPath: conf/temp/excel/loginLog.xls
fileName: 用户登录记录
fileExtName: xls