|
|
@ -210,10 +210,10 @@ public class ExamController extends Controller {
|
|
|
|
//转成 json对象
|
|
|
|
//转成 json对象
|
|
|
|
JSONObject jo = FileUtil.readJsonFile(filePath);
|
|
|
|
JSONObject jo = FileUtil.readJsonFile(filePath);
|
|
|
|
//导出
|
|
|
|
//导出
|
|
|
|
String excelFile = excelPath + "excelTemp/" + UUID.randomUUID().toString().toUpperCase() + ".xls";
|
|
|
|
String excelFile = excelPath + "excelTemp/" + UUID.randomUUID().toString().toUpperCase() + ".xlsx";
|
|
|
|
ExcelCommonUtil.export(list, jo, excelFile, null, "名次");
|
|
|
|
ExcelCommonUtil.export(list, jo, excelFile, null, "名次");
|
|
|
|
//提供下载
|
|
|
|
//提供下载
|
|
|
|
String filename = "排名结果.xls";
|
|
|
|
String filename = "排名结果.xlsx";
|
|
|
|
renderFile(new File(excelFile), filename);
|
|
|
|
renderFile(new File(excelFile), filename);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|