|
@@ -658,15 +658,16 @@ public class TaskLogicServiceImpl implements TaskLogicService {
|
|
|
}
|
|
|
String examTaskSign = examTask.getSchoolId() + "-" + examTask.getCourseName() + "-" + examTask.getPaperNumber();
|
|
|
String firstPath = zipLocalRootPath + File.separator + examTaskSign;
|
|
|
- List<ExamTaskDetail> examTaskDetailList = examTaskDetailService.list(new QueryWrapper<ExamTaskDetail>().lambda().eq(ExamTaskDetail::getExamTaskId, id));
|
|
|
- if (examTaskDetailList.size() != 1) {
|
|
|
- throw ExceptionResultEnum.ERROR.exception("获取命题任务详情失败");
|
|
|
- }
|
|
|
- ExamTaskDetail examTaskDetail = examTaskDetailList.get(0);
|
|
|
+// List<ExamTaskDetail> examTaskDetailList = examTaskDetailService.list(new QueryWrapper<ExamTaskDetail>().lambda().eq(ExamTaskDetail::getExamTaskId, id));
|
|
|
+// if (examTaskDetailList.size() != 1) {
|
|
|
+// throw ExceptionResultEnum.ERROR.exception("获取命题任务详情失败");
|
|
|
+// }
|
|
|
+// ExamTaskDetail examTaskDetail = examTaskDetailList.get(0);
|
|
|
+ ReviewSampleDto reviewSampleDto = examTaskService.findReviewSampleInfoByExamTaskId(id);
|
|
|
|
|
|
|
|
|
// 处理试卷样品
|
|
|
- List<Map> paperInfo = JSONObject.parseArray(examTaskDetail.getPaperAttachmentIds(), Map.class);
|
|
|
+ List<Map> paperInfo = JSONObject.parseArray(reviewSampleDto.getPaperAttachmentIds(), Map.class);
|
|
|
if (Objects.isNull(paperInfo)) {
|
|
|
throw ExceptionResultEnum.ERROR.exception("试卷信息不存在");
|
|
|
}
|
|
@@ -689,7 +690,7 @@ public class TaskLogicServiceImpl implements TaskLogicService {
|
|
|
}
|
|
|
|
|
|
// 处理审核样品
|
|
|
- List<Map> confirmInfo = JSONObject.parseArray(examTaskDetail.getPaperConfirmAttachmentIds(), Map.class);
|
|
|
+ List<Map> confirmInfo = JSONObject.parseArray(reviewSampleDto.getPaperConfirmAttachmentIds(), Map.class);
|
|
|
System.out.println("confirmInfo = " + JSON.toJSONString(confirmInfo));
|
|
|
Set<Long> attConfirmIds = new HashSet<>();
|
|
|
for (Map confirmMap : confirmInfo) {
|
|
@@ -710,7 +711,7 @@ public class TaskLogicServiceImpl implements TaskLogicService {
|
|
|
}
|
|
|
|
|
|
// 处理题卡
|
|
|
- Long cardId = examTaskDetail.getCardId();
|
|
|
+ Long cardId = reviewSampleDto.getCardId();
|
|
|
ExamCard examCard = examCardService.getById(cardId);
|
|
|
if (Objects.isNull(examCard)) {
|
|
|
throw ExceptionResultEnum.ERROR.exception("找不到答题卡");
|