|
@@ -8,6 +8,11 @@ import java.util.List;
|
|
|
|
|
|
import javax.persistence.criteria.Predicate;
|
|
import javax.persistence.criteria.Predicate;
|
|
|
|
|
|
|
|
+import cn.com.qmth.examcloud.core.oe.admin.api.request.GetSingleExamRecordDataReq;
|
|
|
|
+import cn.com.qmth.examcloud.core.oe.admin.api.response.GetSingleExamRecordDataResp;
|
|
|
|
+import cn.com.qmth.examcloud.core.oe.common.entity.ExamRecordDataEntity;
|
|
|
|
+import cn.com.qmth.examcloud.core.oe.common.repository.ExamRecordDataRepo;
|
|
|
|
+import cn.com.qmth.examcloud.web.helpers.GlobalHelper;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.data.domain.Page;
|
|
import org.springframework.data.domain.Page;
|
|
import org.springframework.data.domain.PageRequest;
|
|
import org.springframework.data.domain.PageRequest;
|
|
@@ -56,6 +61,8 @@ public class ExamRecordForMarkingCloudServiceProvider extends ControllerSupport
|
|
private ExamRecordForMarkingService examRecordForMarkingService;
|
|
private ExamRecordForMarkingService examRecordForMarkingService;
|
|
@Autowired
|
|
@Autowired
|
|
private ExamStudentRepo examStudentRepo;
|
|
private ExamStudentRepo examStudentRepo;
|
|
|
|
+ @Autowired
|
|
|
|
+ private ExamRecordDataRepo examRecordDataRepo;
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@ApiOperation(value = "根据条件查询阅卷需要的信息")
|
|
@ApiOperation(value = "根据条件查询阅卷需要的信息")
|
|
@@ -163,7 +170,7 @@ public class ExamRecordForMarkingCloudServiceProvider extends ControllerSupport
|
|
List<ExamRecordForMarkingBean> examRecordForMarkingBeanList = new ArrayList<ExamRecordForMarkingBean>();
|
|
List<ExamRecordForMarkingBean> examRecordForMarkingBeanList = new ArrayList<ExamRecordForMarkingBean>();
|
|
if (stuIdList.size() > 0) {
|
|
if (stuIdList.size() > 0) {
|
|
List<ExamRecordForMarkingEntity> examRecordForMarkingList =
|
|
List<ExamRecordForMarkingEntity> examRecordForMarkingList =
|
|
- examRecordForMarkingService.queryValidExamRecordInfoByStuIds(examId, courseId, stuIdList,req.getBatchNum());
|
|
|
|
|
|
+ examRecordForMarkingService.queryValidExamRecordInfoByStuIds(examId, courseId, stuIdList, req.getBatchNum());
|
|
for (ExamRecordForMarkingEntity entity : examRecordForMarkingList) {
|
|
for (ExamRecordForMarkingEntity entity : examRecordForMarkingList) {
|
|
ExamRecordForMarkingBean examRecordForMarkingBean = new ExamRecordForMarkingBean();
|
|
ExamRecordForMarkingBean examRecordForMarkingBean = new ExamRecordForMarkingBean();
|
|
examRecordForMarkingBean.setId(entity.getId());
|
|
examRecordForMarkingBean.setId(entity.getId());
|
|
@@ -182,4 +189,66 @@ public class ExamRecordForMarkingCloudServiceProvider extends ControllerSupport
|
|
return resp;
|
|
return resp;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 获取单个考试记录信息
|
|
|
|
+ *
|
|
|
|
+ * @param req
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ @Override
|
|
|
|
+ public GetSingleExamRecordDataResp getSingleExamRecordData(GetSingleExamRecordDataReq req) {
|
|
|
|
+ Check.isNull(req.getId(), "id不能为空");
|
|
|
|
+ ExamRecordDataEntity entity = GlobalHelper.getEntity(examRecordDataRepo, req.getId(), ExamRecordDataEntity.class);
|
|
|
|
+ if (entity == null) {
|
|
|
|
+ return null;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ return copyGetSingleExamRecordDataRespFrom(entity);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ private GetSingleExamRecordDataResp copyGetSingleExamRecordDataRespFrom(ExamRecordDataEntity entity) {
|
|
|
|
+ GetSingleExamRecordDataResp resp = new GetSingleExamRecordDataResp();
|
|
|
|
+ resp.setId(entity.getId());
|
|
|
|
+ resp.setExamId(entity.getExamId());
|
|
|
|
+ resp.setExamType(entity.getExamType().toString());
|
|
|
|
+ resp.setExamStudentId(entity.getExamStudentId());
|
|
|
|
+ resp.setStudentId(entity.getStudentId());
|
|
|
|
+ resp.setStudentCode(entity.getStudentCode());
|
|
|
|
+ resp.setStudentName(entity.getStudentName());
|
|
|
|
+ resp.setIdentityNumber(entity.getIdentityNumber());
|
|
|
|
+ resp.setCourseId(entity.getCourseId());
|
|
|
|
+ resp.setCourseLevel(entity.getCourseLevel());
|
|
|
|
+ resp.setOrgId(entity.getOrgId());
|
|
|
|
+ resp.setRootOrgId(entity.getRootOrgId());
|
|
|
|
+ resp.setBasePaperId(entity.getBasePaperId());
|
|
|
|
+ resp.setPaperType(entity.getPaperType());
|
|
|
|
+ resp.setPaperStructId(entity.getPaperStructId());
|
|
|
|
+ resp.setInfoCollector(entity.getInfoCollector());
|
|
|
|
+ resp.setExamRecordQuestionsId(entity.getExamRecordQuestionsId());
|
|
|
|
+ resp.setExamRecordStatus(entity.getExamRecordStatus().toString());
|
|
|
|
+ resp.setStartTime(entity.getStartTime());
|
|
|
|
+ resp.setEndTime(entity.getEndTime());
|
|
|
|
+ resp.setCleanTime(entity.getCleanTime());
|
|
|
|
+ resp.setWarn(entity.getIsWarn());
|
|
|
|
+ resp.setAudit(entity.getIsAudit());
|
|
|
|
+ resp.setIllegality(entity.getIsIllegality());
|
|
|
|
+ resp.setUsedExamTime(entity.getUsedExamTime());
|
|
|
|
+ resp.setExamOrder(entity.getExamOrder());
|
|
|
|
+ resp.setReexamine(entity.getIsReexamine());
|
|
|
|
+ resp.setContinued(entity.getIsContinued());
|
|
|
|
+ resp.setAllObjectivePaper(entity.getIsAllObjectivePaper());
|
|
|
|
+ resp.setContinuedCount(entity.getContinuedCount());
|
|
|
|
+ resp.setExceed(entity.getIsExceed());
|
|
|
|
+ resp.setFaceSuccessCount(entity.getFaceSuccessCount());
|
|
|
|
+ resp.setFaceFailedCount(entity.getFaceFailedCount());
|
|
|
|
+ resp.setFaceStrangerCount(entity.getFaceStrangerCount());
|
|
|
|
+ resp.setFaceTotalCount(entity.getFaceTotalCount());
|
|
|
|
+ resp.setFaceSuccessPercent(entity.getFaceSuccessPercent());
|
|
|
|
+ resp.setFaceVerifyResult(entity.getFaceVerifyResult().toString());
|
|
|
|
+ resp.setBaiduFaceLivenessSuccessPercent(entity.getBaiduFaceLivenessSuccessPercent());
|
|
|
|
+ resp.setFaceLandmarkVal(entity.getFaceLandmarkVal());
|
|
|
|
+ return resp;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
}
|
|
}
|