|
@@ -60,7 +60,7 @@ public class ExamTaskWholeServiceImpl extends ServiceImpl<ExamTaskWholeMapper, E
|
|
}
|
|
}
|
|
examTaskWholeList.add(key);
|
|
examTaskWholeList.add(key);
|
|
boolean isAllPrintFinish = examDetailService.allExamDetailIsExist(examId, courseId, paperNumber);
|
|
boolean isAllPrintFinish = examDetailService.allExamDetailIsExist(examId, courseId, paperNumber);
|
|
- ExamTaskWhole examTaskWhole = this.getByExamIdAndCourseIdAndPaperNumber(examId, courseId, paperNumber);
|
|
|
|
|
|
+ ExamTaskWhole examTaskWhole = this.getByExamIdAndCourseIdAndPaperNumber(examId, paperNumber);
|
|
if (isAllPrintFinish) {
|
|
if (isAllPrintFinish) {
|
|
if (examTaskWhole != null) {
|
|
if (examTaskWhole != null) {
|
|
if (ExamTaskWholeStatusEnum.RUNNING.equals(examTaskWhole.getStatus())) {
|
|
if (ExamTaskWholeStatusEnum.RUNNING.equals(examTaskWhole.getStatus())) {
|
|
@@ -94,17 +94,16 @@ public class ExamTaskWholeServiceImpl extends ServiceImpl<ExamTaskWholeMapper, E
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- public ExamTaskWhole getByExamIdAndCourseIdAndPaperNumber(Long examId, Long courseId, String paperNumber) {
|
|
|
|
|
|
+ public ExamTaskWhole getByExamIdAndCourseIdAndPaperNumber(Long examId, String paperNumber) {
|
|
QueryWrapper<ExamTaskWhole> queryWrapper = new QueryWrapper<>();
|
|
QueryWrapper<ExamTaskWhole> queryWrapper = new QueryWrapper<>();
|
|
queryWrapper.lambda().eq(ExamTaskWhole::getExamId, examId)
|
|
queryWrapper.lambda().eq(ExamTaskWhole::getExamId, examId)
|
|
- .eq(ExamTaskWhole::getCourseId, courseId)
|
|
|
|
.eq(ExamTaskWhole::getPaperNumber, paperNumber);
|
|
.eq(ExamTaskWhole::getPaperNumber, paperNumber);
|
|
return this.getOne(queryWrapper);
|
|
return this.getOne(queryWrapper);
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- public Map getWholePdf(Long examId, Long courseId, String paperNumber) {
|
|
|
|
- ExamTaskWhole examTaskWhole = getByExamIdAndCourseIdAndPaperNumber(examId, courseId, paperNumber);
|
|
|
|
|
|
+ public Map getWholePdf(Long examId, String paperNumber) {
|
|
|
|
+ ExamTaskWhole examTaskWhole = getByExamIdAndCourseIdAndPaperNumber(examId, paperNumber);
|
|
Map map = new HashMap();
|
|
Map map = new HashMap();
|
|
map.put("status", examTaskWhole != null ? examTaskWhole.getStatus() : ExamTaskWholeStatusEnum.INIT);
|
|
map.put("status", examTaskWhole != null ? examTaskWhole.getStatus() : ExamTaskWholeStatusEnum.INIT);
|
|
map.put("url", examTaskWhole != null && StringUtils.isNotBlank(examTaskWhole.getAttachmentPath()) ? fileUploadService.filePreview(examTaskWhole.getAttachmentPath()) : null);
|
|
map.put("url", examTaskWhole != null && StringUtils.isNotBlank(examTaskWhole.getAttachmentPath()) ? fileUploadService.filePreview(examTaskWhole.getAttachmentPath()) : null);
|