|
@@ -17,6 +17,7 @@ import cn.com.qmth.examcloud.core.print.enums.PaperStatus;
|
|
|
import cn.com.qmth.examcloud.core.print.repository.CoursePaperRepository;
|
|
|
import cn.com.qmth.examcloud.core.print.repository.CourseStatisticRepository;
|
|
|
import cn.com.qmth.examcloud.core.print.service.CoursePaperService;
|
|
|
+import cn.com.qmth.examcloud.core.print.service.QuestionStructureService;
|
|
|
import cn.com.qmth.examcloud.core.print.service.bean.coursepaper.CoursePaperConvert;
|
|
|
import cn.com.qmth.examcloud.core.print.service.bean.coursepaper.CoursePaperInfo;
|
|
|
import cn.com.qmth.examcloud.core.print.service.bean.coursepaper.CoursePaperQuery;
|
|
@@ -45,6 +46,8 @@ public class CoursePaperServiceImpl implements CoursePaperService {
|
|
|
private CoursePaperRepository coursePaperRepository;
|
|
|
@Autowired
|
|
|
private CourseStatisticRepository courseStatisticRepository;
|
|
|
+ @Autowired
|
|
|
+ private QuestionStructureService questionStructureService;
|
|
|
|
|
|
@Override
|
|
|
public List<CoursePaperInfo> getCoursePaperList(CoursePaperQuery query) {
|
|
@@ -99,8 +102,8 @@ public class CoursePaperServiceImpl implements CoursePaperService {
|
|
|
//否则新增
|
|
|
coursePaperRepository.save(coursePaper);
|
|
|
|
|
|
- //保存试卷结构
|
|
|
- this.savePaperQuestionStructure(coursePaper.getExamId(), coursePaper.getPaperId());
|
|
|
+ //保存试卷试题结构
|
|
|
+ questionStructureService.savePaperQuestionStructure(coursePaper.getExamId(), coursePaper.getPaperId());
|
|
|
|
|
|
//如果当前考试课程"只有一种试卷类型"且"未分配试卷",则默认分配该试卷
|
|
|
SearchBuilder searches = new SearchBuilder()
|
|
@@ -129,10 +132,6 @@ public class CoursePaperServiceImpl implements CoursePaperService {
|
|
|
courseStatisticRepository.save(statistics);
|
|
|
}
|
|
|
|
|
|
- private void savePaperQuestionStructure(Long examId, String paperId) {
|
|
|
- //todo
|
|
|
- }
|
|
|
-
|
|
|
@Override
|
|
|
public File downloadPaperStructure(Long examId, String paperId) {
|
|
|
//todo
|