Ver código fonte

新加接口

lideyin 5 anos atrás
pai
commit
8d80b42c78

+ 8 - 0
examcloud-core-oe-admin-api-client/src/main/java/cn/com/qmth/examcloud/core/oe/admin/client/ExamRecordForMarkingCloudServiceClient.java

@@ -1,5 +1,7 @@
 package cn.com.qmth.examcloud.core.oe.admin.client;
 
+import cn.com.qmth.examcloud.core.oe.admin.api.request.GetSingleExamRecordDataReq;
+import cn.com.qmth.examcloud.core.oe.admin.api.response.GetSingleExamRecordDataResp;
 import org.springframework.stereotype.Service;
 
 import cn.com.qmth.examcloud.core.oe.admin.api.ExamRecordForMarkingCloudService;
@@ -35,4 +37,10 @@ public class ExamRecordForMarkingCloudServiceClient extends AbstractCloudClientS
 				QueryValidExamRecordInfoPageResp.class);
 	}
 
+	@Override
+	public GetSingleExamRecordDataResp getSingleExamRecordData(GetSingleExamRecordDataReq req) {
+		return post("examRecordForMarking/getSingleExamRecordData", req,
+				GetSingleExamRecordDataResp.class);
+	}
+
 }

+ 9 - 0
examcloud-core-oe-admin-api/src/main/java/cn/com/qmth/examcloud/core/oe/admin/api/ExamRecordForMarkingCloudService.java

@@ -3,9 +3,11 @@ package cn.com.qmth.examcloud.core.oe.admin.api;
 
 import cn.com.qmth.examcloud.api.commons.CloudService;
 import cn.com.qmth.examcloud.core.oe.admin.api.request.FindExamRecordForMarkingInfoReq;
+import cn.com.qmth.examcloud.core.oe.admin.api.request.GetSingleExamRecordDataReq;
 import cn.com.qmth.examcloud.core.oe.admin.api.request.QueryValidExamRecordInfoPageReq;
 import cn.com.qmth.examcloud.core.oe.admin.api.request.QueryValidExamRecordInfoReq;
 import cn.com.qmth.examcloud.core.oe.admin.api.response.FindExamRecordForMarkingInfoResp;
+import cn.com.qmth.examcloud.core.oe.admin.api.response.GetSingleExamRecordDataResp;
 import cn.com.qmth.examcloud.core.oe.admin.api.response.QueryValidExamRecordInfoPageResp;
 import cn.com.qmth.examcloud.core.oe.admin.api.response.QueryValidExamRecordInfoResp;
 
@@ -30,4 +32,11 @@ public interface ExamRecordForMarkingCloudService extends CloudService{
 	 * @return
 	 */
 	public QueryValidExamRecordInfoPageResp queryValidExamRecordInfoPage(QueryValidExamRecordInfoPageReq req);
+
+	/**
+	 * 获取单个考试记录信息
+	 * @param req
+	 * @return
+	 */
+	GetSingleExamRecordDataResp getSingleExamRecordData(GetSingleExamRecordDataReq req);
 }

+ 23 - 0
examcloud-core-oe-admin-api/src/main/java/cn/com/qmth/examcloud/core/oe/admin/api/request/GetSingleExamRecordDataReq.java

@@ -0,0 +1,23 @@
+package cn.com.qmth.examcloud.core.oe.admin.api.request;
+
+import cn.com.qmth.examcloud.api.commons.exchange.BaseRequest;
+
+/**
+ * @Description 获取单个考试记录数据的请求类
+ * @Author lideyin
+ * @Date 2019/10/29 15:14
+ * @Version 1.0
+ */
+public class GetSingleExamRecordDataReq extends BaseRequest {
+    private static final long serialVersionUID = -600411762240741711L;
+    //主键id
+    private Long id;
+
+    public Long getId() {
+        return id;
+    }
+
+    public void setId(Long id) {
+        this.id = id;
+    }
+}

+ 484 - 0
examcloud-core-oe-admin-api/src/main/java/cn/com/qmth/examcloud/core/oe/admin/api/response/GetSingleExamRecordDataResp.java

@@ -0,0 +1,484 @@
+package cn.com.qmth.examcloud.core.oe.admin.api.response;
+
+import cn.com.qmth.examcloud.api.commons.enums.ExamType;
+import cn.com.qmth.examcloud.api.commons.exchange.BaseResponse;
+
+import java.util.Date;
+
+/**
+ * @Description 获取单个考试记录
+ * @Author lideyin
+ * @Date 2019/10/29 15:13
+ * @Version 1.0
+ */
+public class GetSingleExamRecordDataResp extends BaseResponse {
+    private static final long serialVersionUID = -2051958208366851291L;
+
+    private Long id;
+    /**
+     * 考试ID
+     */
+    private Long examId;
+    /**
+     * 考试类型
+     */
+    private String examType;
+    /**
+     * 考生ID
+     */
+    private Long examStudentId;
+    /**
+     * 学生ID
+     */
+    private Long studentId;
+    /**
+     * 学号
+     */
+    private String studentCode;
+    /**
+     * 学生姓名
+     */
+    private String studentName;
+    /**
+     * 身份证号
+     */
+    private String identityNumber;
+    /**
+     * 课程ID
+     */
+    private Long courseId;
+
+    private String courseLevel;
+    /**
+     * 学习中心ID
+     */
+    private Long orgId;
+    /**
+     * 顶级机构ID
+     */
+    private Long rootOrgId;
+    /**
+     * 基础试卷ID
+     */
+    private String basePaperId;
+
+    /**
+     * 试卷类型
+     */
+    private String paperType;
+    /**
+     * 试卷结构 ID
+     */
+    private String paperStructId;
+    /**
+     * 采集人
+     */
+    private String infoCollector;
+
+    /**
+     * 考试作答记录id
+     */
+    private String examRecordQuestionsId;
+    /**
+     * 考试记录状态(考试中,考试结束,考试过期,考试作废)
+     */
+    private String examRecordStatus;
+    /**
+     * 考试开始时间
+     */
+    private Date startTime;
+    /**
+     * 考试结束时间
+     */
+    private Date endTime;
+    /**
+     * 考试被清理时间
+     */
+    private Date cleanTime;
+    /**
+     * 是否异常数据
+     */
+    private Boolean isWarn;
+    /**
+     * 是否被审核过
+     */
+    private Boolean isAudit;
+    /**
+     * 是否违纪
+     */
+    private Boolean isIllegality;
+
+    /**
+     * 考试时长
+     */
+    private Long usedExamTime;
+    /**
+     * 第几次考试
+     */
+    private Integer examOrder;
+    /**
+     * 是否为重考
+     */
+    private Boolean isReexamine;
+    /**
+     * 是否断点续考
+     */
+    private Boolean isContinued;
+    /**
+     * 是否是全客观题卷  1:是   0:否
+     */
+    private Boolean isAllObjectivePaper;
+    /**
+     * 断点续考次数
+     */
+    private Integer continuedCount;
+    /**
+     * 是否达到最大断点限制
+     */
+    private Boolean isExceed;
+    /**
+     * 抓拍比对成功次数
+     */
+    private Integer faceSuccessCount;
+    /**
+     * 抓拍比对失败次数
+     */
+    private Integer faceFailedCount;
+    /**
+     * 抓拍存在陌生人的次数
+     */
+    private Integer faceStrangerCount;
+    /**
+     * 抓拍比对总次数
+     */
+    private Integer faceTotalCount;
+    /**
+     * 抓拍比对成功比率
+     */
+    private Double faceSuccessPercent;
+    /**
+     * 活体检测结果
+     */
+    private String faceVerifyResult;
+
+    /**
+     * 百度人脸活体检测通过率
+     */
+    private Double baiduFaceLivenessSuccessPercent;
+    /**
+     * 人脸五官坐标比对值
+     */
+    private Double faceLandmarkVal;
+
+    public Long getId() {
+        return id;
+    }
+
+    public void setId(Long id) {
+        this.id = id;
+    }
+
+    public Long getExamId() {
+        return examId;
+    }
+
+    public void setExamId(Long examId) {
+        this.examId = examId;
+    }
+
+    public String getExamType() {
+        return examType;
+    }
+
+    public void setExamType(String examType) {
+        this.examType = examType;
+    }
+
+    public Long getExamStudentId() {
+        return examStudentId;
+    }
+
+    public void setExamStudentId(Long examStudentId) {
+        this.examStudentId = examStudentId;
+    }
+
+    public Long getStudentId() {
+        return studentId;
+    }
+
+    public void setStudentId(Long studentId) {
+        this.studentId = studentId;
+    }
+
+    public String getStudentCode() {
+        return studentCode;
+    }
+
+    public void setStudentCode(String studentCode) {
+        this.studentCode = studentCode;
+    }
+
+    public String getStudentName() {
+        return studentName;
+    }
+
+    public void setStudentName(String studentName) {
+        this.studentName = studentName;
+    }
+
+    public String getIdentityNumber() {
+        return identityNumber;
+    }
+
+    public void setIdentityNumber(String identityNumber) {
+        this.identityNumber = identityNumber;
+    }
+
+    public Long getCourseId() {
+        return courseId;
+    }
+
+    public void setCourseId(Long courseId) {
+        this.courseId = courseId;
+    }
+
+    public String getCourseLevel() {
+        return courseLevel;
+    }
+
+    public void setCourseLevel(String courseLevel) {
+        this.courseLevel = courseLevel;
+    }
+
+    public Long getOrgId() {
+        return orgId;
+    }
+
+    public void setOrgId(Long orgId) {
+        this.orgId = orgId;
+    }
+
+    public Long getRootOrgId() {
+        return rootOrgId;
+    }
+
+    public void setRootOrgId(Long rootOrgId) {
+        this.rootOrgId = rootOrgId;
+    }
+
+    public String getBasePaperId() {
+        return basePaperId;
+    }
+
+    public void setBasePaperId(String basePaperId) {
+        this.basePaperId = basePaperId;
+    }
+
+    public String getPaperType() {
+        return paperType;
+    }
+
+    public void setPaperType(String paperType) {
+        this.paperType = paperType;
+    }
+
+    public String getPaperStructId() {
+        return paperStructId;
+    }
+
+    public void setPaperStructId(String paperStructId) {
+        this.paperStructId = paperStructId;
+    }
+
+    public String getInfoCollector() {
+        return infoCollector;
+    }
+
+    public void setInfoCollector(String infoCollector) {
+        this.infoCollector = infoCollector;
+    }
+
+    public String getExamRecordQuestionsId() {
+        return examRecordQuestionsId;
+    }
+
+    public void setExamRecordQuestionsId(String examRecordQuestionsId) {
+        this.examRecordQuestionsId = examRecordQuestionsId;
+    }
+
+    public String getExamRecordStatus() {
+        return examRecordStatus;
+    }
+
+    public void setExamRecordStatus(String examRecordStatus) {
+        this.examRecordStatus = examRecordStatus;
+    }
+
+    public Date getStartTime() {
+        return startTime;
+    }
+
+    public void setStartTime(Date startTime) {
+        this.startTime = startTime;
+    }
+
+    public Date getEndTime() {
+        return endTime;
+    }
+
+    public void setEndTime(Date endTime) {
+        this.endTime = endTime;
+    }
+
+    public Date getCleanTime() {
+        return cleanTime;
+    }
+
+    public void setCleanTime(Date cleanTime) {
+        this.cleanTime = cleanTime;
+    }
+
+    public Boolean getWarn() {
+        return isWarn;
+    }
+
+    public void setWarn(Boolean warn) {
+        isWarn = warn;
+    }
+
+    public Boolean getAudit() {
+        return isAudit;
+    }
+
+    public void setAudit(Boolean audit) {
+        isAudit = audit;
+    }
+
+    public Boolean getIllegality() {
+        return isIllegality;
+    }
+
+    public void setIllegality(Boolean illegality) {
+        isIllegality = illegality;
+    }
+
+    public Long getUsedExamTime() {
+        return usedExamTime;
+    }
+
+    public void setUsedExamTime(Long usedExamTime) {
+        this.usedExamTime = usedExamTime;
+    }
+
+    public Integer getExamOrder() {
+        return examOrder;
+    }
+
+    public void setExamOrder(Integer examOrder) {
+        this.examOrder = examOrder;
+    }
+
+    public Boolean getReexamine() {
+        return isReexamine;
+    }
+
+    public void setReexamine(Boolean reexamine) {
+        isReexamine = reexamine;
+    }
+
+    public Boolean getContinued() {
+        return isContinued;
+    }
+
+    public void setContinued(Boolean continued) {
+        isContinued = continued;
+    }
+
+    public Boolean getAllObjectivePaper() {
+        return isAllObjectivePaper;
+    }
+
+    public void setAllObjectivePaper(Boolean allObjectivePaper) {
+        isAllObjectivePaper = allObjectivePaper;
+    }
+
+    public Integer getContinuedCount() {
+        return continuedCount;
+    }
+
+    public void setContinuedCount(Integer continuedCount) {
+        this.continuedCount = continuedCount;
+    }
+
+    public Boolean getExceed() {
+        return isExceed;
+    }
+
+    public void setExceed(Boolean exceed) {
+        isExceed = exceed;
+    }
+
+    public Integer getFaceSuccessCount() {
+        return faceSuccessCount;
+    }
+
+    public void setFaceSuccessCount(Integer faceSuccessCount) {
+        this.faceSuccessCount = faceSuccessCount;
+    }
+
+    public Integer getFaceFailedCount() {
+        return faceFailedCount;
+    }
+
+    public void setFaceFailedCount(Integer faceFailedCount) {
+        this.faceFailedCount = faceFailedCount;
+    }
+
+    public Integer getFaceStrangerCount() {
+        return faceStrangerCount;
+    }
+
+    public void setFaceStrangerCount(Integer faceStrangerCount) {
+        this.faceStrangerCount = faceStrangerCount;
+    }
+
+    public Integer getFaceTotalCount() {
+        return faceTotalCount;
+    }
+
+    public void setFaceTotalCount(Integer faceTotalCount) {
+        this.faceTotalCount = faceTotalCount;
+    }
+
+    public Double getFaceSuccessPercent() {
+        return faceSuccessPercent;
+    }
+
+    public void setFaceSuccessPercent(Double faceSuccessPercent) {
+        this.faceSuccessPercent = faceSuccessPercent;
+    }
+
+    public String getFaceVerifyResult() {
+        return faceVerifyResult;
+    }
+
+    public void setFaceVerifyResult(String faceVerifyResult) {
+        this.faceVerifyResult = faceVerifyResult;
+    }
+
+    public Double getBaiduFaceLivenessSuccessPercent() {
+        return baiduFaceLivenessSuccessPercent;
+    }
+
+    public void setBaiduFaceLivenessSuccessPercent(Double baiduFaceLivenessSuccessPercent) {
+        this.baiduFaceLivenessSuccessPercent = baiduFaceLivenessSuccessPercent;
+    }
+
+    public Double getFaceLandmarkVal() {
+        return faceLandmarkVal;
+    }
+
+    public void setFaceLandmarkVal(Double faceLandmarkVal) {
+        this.faceLandmarkVal = faceLandmarkVal;
+    }
+}