|
@@ -2,11 +2,8 @@ package cn.com.qmth.examcloud.task.service.consumer;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
-import java.util.stream.Collectors;
|
|
|
|
|
|
|
|
import cn.com.qmth.examcloud.core.oe.admin.api.bean.ExamRecordForMarkingBean;
|
|
import cn.com.qmth.examcloud.core.oe.admin.api.bean.ExamRecordForMarkingBean;
|
|
-import cn.com.qmth.examcloud.core.oe.student.api.OeExamRecordForMarkingCloudService;
|
|
|
|
-import cn.com.qmth.examcloud.core.oe.student.api.request.UpdateExamRecordForMarkingBatchNumReq;
|
|
|
|
import cn.com.qmth.examcloud.examwork.api.ExamStudentCloudService;
|
|
import cn.com.qmth.examcloud.examwork.api.ExamStudentCloudService;
|
|
import cn.com.qmth.examcloud.examwork.api.bean.ExamCourseRelationBean;
|
|
import cn.com.qmth.examcloud.examwork.api.bean.ExamCourseRelationBean;
|
|
import cn.com.qmth.examcloud.examwork.api.bean.ExamStudentBean;
|
|
import cn.com.qmth.examcloud.examwork.api.bean.ExamStudentBean;
|
|
@@ -27,8 +24,6 @@ public class MarkWorkCreateConsumer extends Consumer<MarkWorkCreateDto> {
|
|
private ExamStudentCloudService examStudentCloudService = SpringContextHolder
|
|
private ExamStudentCloudService examStudentCloudService = SpringContextHolder
|
|
.getBean(ExamStudentCloudService.class);
|
|
.getBean(ExamStudentCloudService.class);
|
|
|
|
|
|
- private OeExamRecordForMarkingCloudService oeExamRecordForMarkingCloudService = SpringContextHolder
|
|
|
|
- .getBean(OeExamRecordForMarkingCloudService.class);
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public void consume(MarkWorkCreateDto dto) {
|
|
public void consume(MarkWorkCreateDto dto) {
|
|
@@ -54,10 +49,10 @@ public class MarkWorkCreateConsumer extends Consumer<MarkWorkCreateDto> {
|
|
sreq.setWorkId(workId);
|
|
sreq.setWorkId(workId);
|
|
sreq.setStudentPaperBeanList(studentPapers);
|
|
sreq.setStudentPaperBeanList(studentPapers);
|
|
studentPaperCloudService.saveStudentPaper(sreq);
|
|
studentPaperCloudService.saveStudentPaper(sreq);
|
|
- UpdateExamRecordForMarkingBatchNumReq req = new UpdateExamRecordForMarkingBatchNumReq();
|
|
|
|
- List<Long> ids = studentPapers.stream().map(m -> m.getExamRecordMarkingPk()).collect(Collectors.toList());
|
|
|
|
- req.setIdList(ids);
|
|
|
|
- req.setBatchNum(workId + "");
|
|
|
|
- oeExamRecordForMarkingCloudService.updateExamRecordForMarkingBatchNum(req);
|
|
|
|
|
|
+// UpdateExamRecordForMarkingBatchNumReq req = new UpdateExamRecordForMarkingBatchNumReq();
|
|
|
|
+// List<Long> ids = studentPapers.stream().map(m -> m.getExamRecordMarkingPk()).collect(Collectors.toList());
|
|
|
|
+// req.setIdList(ids);
|
|
|
|
+// req.setBatchNum(workId + "");
|
|
|
|
+// oeExamRecordForMarkingCloudService.updateExamRecordForMarkingBatchNum(req);
|
|
}
|
|
}
|
|
}
|
|
}
|