|
|
|
@ -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:表单,2:EXCEL模板
|
|
|
|
|
if (job_type == 2) {
|
|
|
|
|
cm.getSummaryExcel(job_id, excelPath);
|
|
|
|
|
//提供下载
|
|
|
|
|
renderFile(new File(excelPath), "【" + job_name + "】汇总表.xlsx");
|
|
|
|
|
} else {
|
|
|
|
|
//暂未实现
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|