|
|
|
@ -127,7 +127,6 @@ public class YunXiaoController extends Controller {
|
|
|
|
|
|
|
|
|
|
//1、生成Excel
|
|
|
|
|
YunXiaoExportExcelUtil exporter = new YunXiaoExportExcelUtil();
|
|
|
|
|
//使用guid生成一个临时文件名,然后拼接到tmpDir后面,生成完整的临时文件路径
|
|
|
|
|
//文件上传路径
|
|
|
|
|
String fileName = UUID.randomUUID() + ".xlsx";
|
|
|
|
|
String excelPath = CommonUtil.basePath + File.separator + fileName;
|
|
|
|
@ -180,7 +179,6 @@ public class YunXiaoController extends Controller {
|
|
|
|
|
exporter.LessonConstructionInfoByXzqhSchool(excelPath, list1, list2, list3, list4);
|
|
|
|
|
|
|
|
|
|
//2、提供EXCEL
|
|
|
|
|
//文件名称
|
|
|
|
|
String excel_filename = "区域单位课程建设情况统计报表.xlsx";
|
|
|
|
|
String pdfName = excel_filename.replace(".xlsx", ".pdf");
|
|
|
|
|
if (type_id < 2) {
|
|
|
|
@ -220,7 +218,6 @@ public class YunXiaoController extends Controller {
|
|
|
|
|
String url = YunXiaoVideoUtil.getUrlByLessonId(lessonId);
|
|
|
|
|
//获取系统临时目录
|
|
|
|
|
String tmpDir = System.getProperty("java.io.tmpdir");
|
|
|
|
|
//使用guid生成一个临时文件名,然后拼接到tmpDir后面,生成完整的临时文件路径
|
|
|
|
|
String tmpFile = tmpDir + UUID.randomUUID() + ".jpg";
|
|
|
|
|
YunXiaoVideoUtil.getCover(url, tmpFile);
|
|
|
|
|
File imgFile = new File(tmpFile);
|
|
|
|
|