Kaynağa Gözat

考生id改为后台自己取,前端参数中不再传

lideyin 6 yıl önce
ebeveyn
işleme
7137ca1252

+ 7 - 0
examcloud-core-oe-student-api-client/src/main/java/cn/com/qmth/examcloud/core/oe/student/api/client/OeStudentExamRecordCloudServiceClient.java

@@ -6,7 +6,9 @@ import org.springframework.web.client.RestTemplate;
 
 import cn.com.qmth.examcloud.core.oe.student.api.OeStudentExamRecordCloudService;
 import cn.com.qmth.examcloud.core.oe.student.api.request.DeleteExamAudioAnswerTempReq;
+import cn.com.qmth.examcloud.core.oe.student.api.request.GetExamSessionInfoReq;
 import cn.com.qmth.examcloud.core.oe.student.api.request.GetQrCodeReq;
+import cn.com.qmth.examcloud.core.oe.student.api.response.GetExamSessionInfoResp;
 import cn.com.qmth.examcloud.core.oe.student.api.response.GetQrCodeResp;
 import cn.com.qmth.examcloud.web.redis.RedisClient;
 
@@ -28,4 +30,9 @@ public class OeStudentExamRecordCloudServiceClient extends AbstractCloudClientSu
 		return post("examRecord/getQrCode",req,GetQrCodeResp.class);
 	}
 
+	@Override
+	public GetExamSessionInfoResp getExamSessionInfo(GetExamSessionInfoReq req) {
+		return post("examRecord/getExamSessionInfo",req,GetExamSessionInfoResp.class);
+	}
+
 }

+ 7 - 0
examcloud-core-oe-student-api/src/main/java/cn/com/qmth/examcloud/core/oe/student/api/OeStudentExamRecordCloudService.java

@@ -1,7 +1,9 @@
 package cn.com.qmth.examcloud.core.oe.student.api;
 
 import cn.com.qmth.examcloud.api.commons.CloudService;
+import cn.com.qmth.examcloud.core.oe.student.api.request.GetExamSessionInfoReq;
 import cn.com.qmth.examcloud.core.oe.student.api.request.GetQrCodeReq;
+import cn.com.qmth.examcloud.core.oe.student.api.response.GetExamSessionInfoResp;
 import cn.com.qmth.examcloud.core.oe.student.api.response.GetQrCodeResp;
 
 public interface OeStudentExamRecordCloudService extends CloudService{
@@ -12,4 +14,9 @@ public interface OeStudentExamRecordCloudService extends CloudService{
 	 * @return
 	 */
 	public GetQrCodeResp getQrCode(GetQrCodeReq req);
+	/**
+	 * 获取考试会话
+	 * @return
+	 */
+	public GetExamSessionInfoResp getExamSessionInfo(GetExamSessionInfoReq req);
 }

+ 22 - 0
examcloud-core-oe-student-api/src/main/java/cn/com/qmth/examcloud/core/oe/student/api/request/GetExamSessionInfoReq.java

@@ -0,0 +1,22 @@
+package cn.com.qmth.examcloud.core.oe.student.api.request;
+
+import cn.com.qmth.examcloud.api.commons.exchange.BaseRequest;
+
+public class GetExamSessionInfoReq extends BaseRequest {
+
+	
+	/**
+	 * 
+	 */
+	private static final long serialVersionUID = 8396483254837575367L;
+	private Long studentId;
+
+	public Long getStudentId() {
+		return studentId;
+	}
+
+	public void setStudentId(Long studentId) {
+		this.studentId = studentId;
+	}
+
+}

+ 41 - 0
examcloud-core-oe-student-api/src/main/java/cn/com/qmth/examcloud/core/oe/student/api/response/GetExamSessionInfoResp.java

@@ -0,0 +1,41 @@
+package cn.com.qmth.examcloud.core.oe.student.api.response;
+
+import cn.com.qmth.examcloud.api.commons.exchange.BaseResponse;
+
+public class GetExamSessionInfoResp extends BaseResponse{
+	/**
+	 * 
+	 */
+	private static final long serialVersionUID = -1827508359397025274L;
+	/**
+     * 考试记录ID
+     */
+    private Long examRecordId;
+    /**
+     * 考试记录DataID
+     */
+    private Long examRecordDataId;
+    /**
+     * 考生ID
+     */
+    private Long examStudentId;
+	public Long getExamRecordId() {
+		return examRecordId;
+	}
+	public void setExamRecordId(Long examRecordId) {
+		this.examRecordId = examRecordId;
+	}
+	public Long getExamRecordDataId() {
+		return examRecordDataId;
+	}
+	public void setExamRecordDataId(Long examRecordDataId) {
+		this.examRecordDataId = examRecordDataId;
+	}
+	public Long getExamStudentId() {
+		return examStudentId;
+	}
+	public void setExamStudentId(Long examStudentId) {
+		this.examStudentId = examStudentId;
+	}
+	
+}