|
@@ -29,7 +29,6 @@ import cn.com.qmth.examcloud.common.uac.entity.AccessUser;
|
|
|
import cn.com.qmth.examcloud.common.util.ErrorMsg;
|
|
|
|
|
|
import com.qmth.cqb.paper.dto.ExportPaperInfoModel;
|
|
|
-import com.qmth.cqb.paper.model.ExamFile;
|
|
|
import com.qmth.cqb.paper.model.ExtractConfig;
|
|
|
import com.qmth.cqb.paper.service.ExtractConfigService;
|
|
|
import com.qmth.cqb.utils.enums.ExportWay;
|
|
@@ -164,6 +163,7 @@ public class ExtractConfigController {
|
|
|
try {
|
|
|
extractConfigService.exportExamPaperInfo(exportModel,response);
|
|
|
} catch (Exception e) {
|
|
|
+ logger.error("Method:exportExamPaperInfo"+e.getMessage());
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
}
|
|
@@ -180,6 +180,7 @@ public class ExtractConfigController {
|
|
|
extractConfigService.exportExamPaperInfoCheck(exportModel,response);
|
|
|
return new ResponseEntity<String>(HttpStatus.OK);
|
|
|
} catch (Exception e) {
|
|
|
+ logger.error("Method:exportExamPaperInfoCheck"+e.getMessage());
|
|
|
return new ResponseEntity<String>(e.getMessage(),HttpStatus.OK);
|
|
|
}
|
|
|
}
|
|
@@ -203,14 +204,9 @@ public class ExtractConfigController {
|
|
|
try {
|
|
|
extractConfigService.exportExamPaperInfo(exportModel,response);
|
|
|
} catch (Exception e) {
|
|
|
+ logger.error("Method:exportExamPaperInfo"+e.getMessage());
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "检查该考试下该课程是否生成试卷文件", notes = "检查该考试下该课程是否生成试卷文件")
|
|
|
- @GetMapping(value = "/findPaperStructure/{examId}/{courseId}")
|
|
|
- public ResponseEntity findPaperStructure(@PathVariable String examId,@PathVariable String courseId){
|
|
|
- List<ExamFile> examFiles = extractConfigService.findPaperStructure(examId,courseId);
|
|
|
- return new ResponseEntity(examFiles,HttpStatus.OK);
|
|
|
- }
|
|
|
}
|