main
黄海 2 years ago
parent e1c61da2e7
commit 8fc56b30cc

@ -1608,8 +1608,14 @@ public class CollectController extends Controller {
String job_name = jobRecord.getStr("job_name");
String temp_excel_filename = UUID.randomUUID().toString().toLowerCase() + ".xlsx";
String excelPath = basePath + "/" + temp_excel_filename;
cm.getSummaryExcel(job_id, excelPath);
//提供下载
renderFile(new File(excelPath), "【" + job_name + "】汇总表.xlsx");
//这里需要知道是哪种类型的因为不同的类型生成EXCEL汇总表的方法不同
int job_type = jobRecord.getInt("job_type");//任务类型1表单2EXCEL模板
if (job_type == 2) {
cm.getSummaryExcel(job_id, excelPath);
//提供下载
renderFile(new File(excelPath), "【" + job_name + "】汇总表.xlsx");
} else {
//暂未实现
}
}
}

Loading…
Cancel
Save