Commit a78932ea by 阳浪

试题导出

parent 06bfe990
......@@ -276,15 +276,16 @@ public class TrExamOnlineReadOverController {
Map<String, Object> map = new HashMap<>();
RequestContext res = ContextHolder.get();
Long taskId = System.currentTimeMillis();
com.yizhi.application.domain.Exam examEntity = iExamService.selectById(examId);
String serialNo = "READ-ONLINE-EXAM-EXPORT" + taskId.toString();
String taskName = "阅卷管理考试结果导出" + taskId.toString();
String taskName =examEntity.getName() + "考试导出结果" + taskId.toString();
map.put("taskId", taskId);
map.put("serialNo", serialNo);
map.put("taskName", taskName);
map.put("res", res);
map.put("examId", examId);
readOnLineExamsExport.execute(map, true);
return serialNo;
return taskName;
}
/**
......
......@@ -188,7 +188,7 @@ public class ReadOnLineExamsExport extends AbstractDefaultTask<String, Map<Strin
}
String fileName = exam.getName() + "考试结果" + sdf2.format(comitTime) + ".xlsx";
String fileName = taskName + ".xlsx";
// String requestPath = "/Users/dingxiaowei/aaa";
String requestPath = FileConstant.SAVE_PATH;
File fileDir = new File(requestPath);
......
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