|
@@ -161,12 +161,13 @@ public class ExtractConfigController {
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "导出单张考试试卷、答案、试卷结构", notes = "导出单张考试试卷、答案、试卷结构")
|
|
|
- @GetMapping(value = "/exportSingleExamPaperInfo/{exportWay}/{examId}/{courseId}/{exportContentList}")
|
|
|
+ @GetMapping(value = "/exportSingleExamPaperInfo/{exportWay}/{examId}/{courseId}/{exportContentList}/{loginName}")
|
|
|
public void exportSingleExamPaperInfo(HttpServletResponse response,
|
|
|
@PathVariable String exportWay,
|
|
|
@PathVariable String examId,
|
|
|
@PathVariable String courseId,
|
|
|
- @PathVariable String exportContentList){
|
|
|
+ @PathVariable String exportContentList,
|
|
|
+ @PathVariable String loginName){
|
|
|
ExportPaperInfoModel exportModel = new ExportPaperInfoModel();
|
|
|
exportModel.setExportWay(ExportWay.strToEnum(exportWay));
|
|
|
exportModel.setExamId(examId);
|
|
@@ -178,7 +179,7 @@ public class ExtractConfigController {
|
|
|
}
|
|
|
exportModel.setExportContentList(list);
|
|
|
try {
|
|
|
- extractConfigFileService.exportExamPaperInfo(exportModel,response);
|
|
|
+ extractConfigFileService.exportExamPaperInfo(exportModel,response,loginName);
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
}
|
|
@@ -203,11 +204,12 @@ public class ExtractConfigController {
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "导出整个考试下所有 课程的试卷、答案、试卷结构", notes = "导出整个考试下所有 课程的试卷、答案、试卷结构")
|
|
|
- @GetMapping(value = "/exportBatchExamPaperInfo/{exportWay}/{examId}/{exportContentList}")
|
|
|
+ @GetMapping(value = "/exportBatchExamPaperInfo/{exportWay}/{examId}/{exportContentList}/{loginName}")
|
|
|
public void exportBatchExamPaperInfo(HttpServletResponse response,
|
|
|
@PathVariable String exportWay,
|
|
|
@PathVariable String examId,
|
|
|
- @PathVariable String exportContentList){
|
|
|
+ @PathVariable String exportContentList,
|
|
|
+ @PathVariable String loginName){
|
|
|
ExportPaperInfoModel exportModel = new ExportPaperInfoModel();
|
|
|
exportModel.setExportWay(ExportWay.strToEnum(exportWay));
|
|
|
exportModel.setExamId(examId);
|
|
@@ -218,7 +220,7 @@ public class ExtractConfigController {
|
|
|
}
|
|
|
exportModel.setExportContentList(list);
|
|
|
try {
|
|
|
- extractConfigFileService.exportExamPaperInfo(exportModel,response);
|
|
|
+ extractConfigFileService.exportExamPaperInfo(exportModel,response,loginName);
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
}
|