Browse Source

1.获取考试成绩接口添加考试id,考试编码,考试名称3个返回值
2.开始考试和结束考试相关代码添加了一些注释

THINKPAD 6 năm trước cách đây
mục cha
commit
05adddf0d3

+ 61 - 61
examcloud-core-oe-admin-api-client/src/main/java/cn/com/qmth/examcloud/core/oe/admin/client/ExamRecordCloudServiceClient.java

@@ -1,61 +1,61 @@
-package cn.com.qmth.examcloud.core.oe.admin.client;
-
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.stereotype.Service;
-import org.springframework.web.client.RestTemplate;
-
-import cn.com.qmth.examcloud.commons.web.redis.RedisClient;
-import cn.com.qmth.examcloud.core.oe.admin.api.ExamRecordCloudService;
-import cn.com.qmth.examcloud.core.oe.admin.api.request.CheckExamIsStartedReq;
-import cn.com.qmth.examcloud.core.oe.admin.api.request.GetExamPhotoVerifyDataReq;
-import cn.com.qmth.examcloud.core.oe.admin.api.request.QueryExamRecordForSelectScoreReq;
-import cn.com.qmth.examcloud.core.oe.admin.api.response.CheckExamIsStartedResp;
-import cn.com.qmth.examcloud.core.oe.admin.api.response.GetExamPhotoVerifyDataResp;
-import cn.com.qmth.examcloud.core.oe.admin.api.response.QueryExamRecordForSelectScoreResp;
-
-
-@Service("examRecordCloudService")
-public class ExamRecordCloudServiceClient extends AdminCloudClientSupport implements ExamRecordCloudService {
-
-	/**
-	 * 
-	 */
-	private static final long serialVersionUID = 6596862028883396367L;
-
-	@Autowired
-    private RestTemplate restTemplate;
-	
-    @Autowired
-    private RedisClient redisClient;
-	
-	@Override
-	protected RestTemplate getRestTemplate() {
-		return restTemplate;
-	}
-
-	@Override
-	protected RedisClient getRedisClient() {
-		return redisClient;
-	}
-
-	@Override
-	public CheckExamIsStartedResp checkExamIsStarted(CheckExamIsStartedReq examRecordReq) {
-		return post("examRecord/checkExamIsStarted", examRecordReq,CheckExamIsStartedResp.class);
-	}
-
-	@Override
-	public QueryExamRecordForSelectScoreResp queryExamRecordForSelectScoreByScoreId(QueryExamRecordForSelectScoreReq req) {
-		return post("examRecord/queryExamRecordForSelectScoreByScoreId", req, QueryExamRecordForSelectScoreResp.class);
-	}
-
-	@Override
-	public QueryExamRecordForSelectScoreResp queryExamRecordForSelectScoreByExamStudentId(QueryExamRecordForSelectScoreReq req) {
-		return post("examRecord/queryExamRecordForSelectScoreByExamStudentId", req, QueryExamRecordForSelectScoreResp.class);
-	}
-
-	@Override
-	public GetExamPhotoVerifyDataResp getExamPhotoVerifyData(GetExamPhotoVerifyDataReq req) {
-		return post("examRecord/getExamPhotoVerifyData", req, GetExamPhotoVerifyDataResp.class);
-	}
-
-}
+package cn.com.qmth.examcloud.core.oe.admin.client;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import org.springframework.web.client.RestTemplate;
+
+import cn.com.qmth.examcloud.commons.web.redis.RedisClient;
+import cn.com.qmth.examcloud.core.oe.admin.api.ExamRecordCloudService;
+import cn.com.qmth.examcloud.core.oe.admin.api.request.CheckExamIsStartedReq;
+import cn.com.qmth.examcloud.core.oe.admin.api.request.GetExamPhotoVerifyDataReq;
+import cn.com.qmth.examcloud.core.oe.admin.api.request.QueryExamRecordForSelectScoreReq;
+import cn.com.qmth.examcloud.core.oe.admin.api.response.CheckExamIsStartedResp;
+import cn.com.qmth.examcloud.core.oe.admin.api.response.GetExamPhotoVerifyDataResp;
+import cn.com.qmth.examcloud.core.oe.admin.api.response.QueryExamRecordForSelectScoreResp;
+
+
+@Service("examRecordCloudService")
+public class ExamRecordCloudServiceClient extends AdminCloudClientSupport implements ExamRecordCloudService {
+
+	/**
+	 * 
+	 */
+	private static final long serialVersionUID = 6596862028883396367L;
+
+	@Autowired
+    private RestTemplate restTemplate;
+	
+    @Autowired
+    private RedisClient redisClient;
+	
+	@Override
+	protected RestTemplate getRestTemplate() {
+		return restTemplate;
+	}
+
+	@Override
+	protected RedisClient getRedisClient() {
+		return redisClient;
+	}
+
+	@Override
+	public CheckExamIsStartedResp checkExamIsStarted(CheckExamIsStartedReq examRecordReq) {
+		return post("examRecord/checkExamIsStarted", examRecordReq,CheckExamIsStartedResp.class);
+	}
+
+	@Override
+	public QueryExamRecordForSelectScoreResp queryExamRecordForSelectScoreByScoreId(QueryExamRecordForSelectScoreReq req) {
+		return post("examRecord/queryExamRecordForSelectScoreByScoreId", req, QueryExamRecordForSelectScoreResp.class);
+	}
+
+	@Override
+	public QueryExamRecordForSelectScoreResp queryExamRecordForSelectScoreByExamStudentId(QueryExamRecordForSelectScoreReq req) {
+		return post("examRecord/queryExamRecordForSelectScoreByExamStudentId", req, QueryExamRecordForSelectScoreResp.class);
+	}
+
+	@Override
+	public GetExamPhotoVerifyDataResp getExamPhotoVerifyData(GetExamPhotoVerifyDataReq req) {
+		return post("examRecord/getExamPhotoVerifyData", req, GetExamPhotoVerifyDataResp.class);
+	}
+
+}

+ 48 - 37
examcloud-core-oe-admin-api/src/main/java/cn/com/qmth/examcloud/core/oe/admin/api/response/GetTopExamScoreQueueResp.java

@@ -1,37 +1,48 @@
-package cn.com.qmth.examcloud.core.oe.admin.api.response;
-
-import cn.com.qmth.examcloud.commons.web.cloud.api.BaseResponse;
-
-public class GetTopExamScoreQueueResp extends BaseResponse{
-
-	/**
-	 * 
-	 */
-	private static final long serialVersionUID = -3972638145165513830L;
-
-	/**
-	 * 队列ID
-	 */
-	private Long queueId;
-	/**
-	 * 考试记录ID
-	 */
-	private Long examRecordDataId;
-
-	public Long getQueueId() {
-		return queueId;
-	}
-
-	public void setQueueId(Long queueId) {
-		this.queueId = queueId;
-	}
-
-	public Long getExamRecordDataId() {
-		return examRecordDataId;
-	}
-
-	public void setExamRecordDataId(Long examRecordDataId) {
-		this.examRecordDataId = examRecordDataId;
-	}
-	
-}
+package cn.com.qmth.examcloud.core.oe.admin.api.response;
+
+import cn.com.qmth.examcloud.commons.web.cloud.api.BaseResponse;
+
+public class GetTopExamScoreQueueResp extends BaseResponse{
+
+	/**
+	 * 
+	 */
+	private static final long serialVersionUID = -3972638145165513830L;
+
+	/**
+	 * 队列ID
+	 */
+	private Long queueId;
+	/**
+	 * 考试记录ID
+	 */
+	private Long examRecordDataId;
+	/**
+	 * 考试ID
+	 */
+	private Long examId;
+	public Long getExamId() {
+		return examId;
+	}
+
+	public void setExamId(Long examId) {
+		this.examId = examId;
+	}
+
+	public Long getQueueId() {
+		return queueId;
+	}
+
+	public void setQueueId(Long queueId) {
+		this.queueId = queueId;
+	}
+
+	public Long getExamRecordDataId() {
+		return examRecordDataId;
+	}
+
+	public void setExamRecordDataId(Long examRecordDataId) {
+		this.examRecordDataId = examRecordDataId;
+	}
+	
+}

+ 23 - 23
examcloud-core-questions-api/pom.xml

@@ -1,24 +1,24 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-  <modelVersion>4.0.0</modelVersion>
-  <parent>
-		<groupId>cn.com.qmth.examcloud.rmi</groupId>
-		<artifactId>examcloud-rmi</artifactId>
-		<version>master-SNAPSHOT</version>
-	</parent>
-  <artifactId>examcloud-core-questions-api</artifactId>
-
-  <dependencies>
-    	<dependency>
-			<groupId>cn.com.qmth.examcloud.commons</groupId>
-			<artifactId>examcloud-commons-web</artifactId>
-			<version>${examcloud.version}</version>
-		</dependency>
-		<dependency>
-			<groupId>cn.com.qmth.examcloud.question</groupId>
-			<artifactId>examcloud-question-commons</artifactId>
-			<version>${examcloud.version}</version>
-		</dependency>
-  </dependencies>
-
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <parent>
+		<groupId>cn.com.qmth.examcloud.rmi</groupId>
+		<artifactId>examcloud-rmi</artifactId>
+		<version>master-SNAPSHOT</version>
+	</parent>
+  <artifactId>examcloud-core-questions-api</artifactId>
+
+  <dependencies>
+    	<dependency>
+			<groupId>cn.com.qmth.examcloud.commons</groupId>
+			<artifactId>examcloud-commons-web</artifactId>
+			<version>${examcloud.version}</version>
+		</dependency>
+		<dependency>
+			<groupId>cn.com.qmth.examcloud.question</groupId>
+			<artifactId>examcloud-question-commons</artifactId>
+			<version>${examcloud.version}</version>
+		</dependency>
+  </dependencies>
+
 </project>