Commit 4bd83e95 by guojuxing

下载组件测试类修复

parent a520e061
......@@ -73,6 +73,8 @@ public class CollaboratorController extends DownloadUtils{
report.setReportEndTime(DateUtil.strToDate("2019-01-01 00:00:00", "yyyy-MM-dd HH:mm:ss"));
report.setReportStartTime(DateUtil.strToDate("2018-01-01 00:00:00", "yyyy-MM-dd HH:mm:ss"));
Integer reportId = DataDownloadUtils.createDownloadReport(report);
//临时路径
String path = request.getSession().getServletContext().getRealPath("/excel/csv/collaborator/file/");
//异步生成文件并上传到腾讯云
ExecutorPoolSingleton.getInstance().executeTask(new Runnable() {
@Override
......@@ -87,7 +89,6 @@ public class CollaboratorController extends DownloadUtils{
};
String[] headers = new String[] {"协作人名称", "手机号"};
String[] fields = new String[] { "collaboratorName", "phone" };
String path = request.getSession().getServletContext().getRealPath("/excel/csv/collaborator/file/");
try {
download(path, reportId, fileName, excelExtensionCode, Arrays.asList(headers), Arrays.asList(fields), loader, null);
} catch (Exception e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment