浏览代码

添加阅卷接口

chenken 6 年之前
父节点
当前提交
33e16392cf

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

@@ -0,0 +1,11 @@
+package cn.com.qmth.examcloud.core.oe.admin.api;
+
+
+import cn.com.qmth.examcloud.core.oe.admin.api.request.FindExamRecordForMarkingInfoReq;
+import cn.com.qmth.examcloud.core.oe.admin.api.response.FindExamRecordForMarkingInfoResp;
+
+public interface ExamRecordForMarkingCloudService {
+
+	public FindExamRecordForMarkingInfoResp findExamRecordForMarkingInfo(FindExamRecordForMarkingInfoReq findExamRecordForMarkingInfoReq);
+	
+}

+ 65 - 0
examcloud-core-oe-admin-api/src/main/java/cn/com/qmth/examcloud/core/oe/admin/api/bean/ExamRecordForMarkingBean.java

@@ -0,0 +1,65 @@
+package cn.com.qmth.examcloud.core.oe.admin.api.bean;
+
+public class ExamRecordForMarkingBean {
+
+	private Long id;
+	
+	private String basePaperId;
+	
+	private String basePaperName;
+	
+	private String paperType;
+	
+	private String courseCode;
+	
+	private String courseName;
+
+	public Long getId() {
+		return id;
+	}
+
+	public void setId(Long id) {
+		this.id = id;
+	}
+
+	public String getBasePaperId() {
+		return basePaperId;
+	}
+
+	public void setBasePaperId(String basePaperId) {
+		this.basePaperId = basePaperId;
+	}
+
+	public String getBasePaperName() {
+		return basePaperName;
+	}
+
+	public void setBasePaperName(String basePaperName) {
+		this.basePaperName = basePaperName;
+	}
+
+	public String getPaperType() {
+		return paperType;
+	}
+
+	public void setPaperType(String paperType) {
+		this.paperType = paperType;
+	}
+
+	public String getCourseCode() {
+		return courseCode;
+	}
+
+	public void setCourseCode(String courseCode) {
+		this.courseCode = courseCode;
+	}
+
+	public String getCourseName() {
+		return courseName;
+	}
+
+	public void setCourseName(String courseName) {
+		this.courseName = courseName;
+	}
+	
+}

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

@@ -0,0 +1,37 @@
+package cn.com.qmth.examcloud.core.oe.admin.api.request;
+
+import cn.com.qmth.examcloud.commons.web.cloud.api.BaseRequest;
+
+public class FindExamRecordForMarkingInfoReq extends BaseRequest{
+
+	private Long id;
+	
+	private Long examId;
+	
+	private String courseCode;
+
+	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 getCourseCode() {
+		return courseCode;
+	}
+
+	public void setCourseCode(String courseCode) {
+		this.courseCode = courseCode;
+	}
+	
+}

+ 5 - 1
examcloud-core-oe-admin-api/src/main/java/cn/com/qmth/examcloud/core/oe/admin/api/response/ExamStudentSyncAllDataResp.java

@@ -14,7 +14,11 @@ import cn.com.qmth.examcloud.commons.web.cloud.api.BaseResponse;
  * @since: 2018/8/15
  */
 public class ExamStudentSyncAllDataResp<T> extends BaseResponse {
-    private T data;
+    /**
+	 * 
+	 */
+	private static final long serialVersionUID = -1040646496788237880L;
+	private T data;
 
     public ExamStudentSyncAllDataResp(T data) {
         this.data = data;

+ 5 - 1
examcloud-core-oe-admin-api/src/main/java/cn/com/qmth/examcloud/core/oe/admin/api/response/ExamStudentSyncPartDataResp.java

@@ -14,7 +14,11 @@ import cn.com.qmth.examcloud.commons.web.cloud.api.BaseResponse;
  * @since: 2018/8/15
  */
 public class ExamStudentSyncPartDataResp<T> extends BaseResponse {
-    private T data;
+    /**
+	 * 
+	 */
+	private static final long serialVersionUID = 4392057126839888762L;
+	private T data;
 
     public ExamStudentSyncPartDataResp(T data) {
         this.data = data;

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

@@ -0,0 +1,25 @@
+package cn.com.qmth.examcloud.core.oe.admin.api.response;
+
+import java.util.List;
+
+import cn.com.qmth.examcloud.commons.web.cloud.api.BaseResponse;
+import cn.com.qmth.examcloud.core.oe.admin.api.bean.ExamRecordForMarkingBean;
+
+public class FindExamRecordForMarkingInfoResp extends BaseResponse {
+
+	/**
+	 * 
+	 */
+	private static final long serialVersionUID = 3280021281705457587L;
+	private List<ExamRecordForMarkingBean> examRecordForMarkingBeanList;
+
+	public List<ExamRecordForMarkingBean> getExamRecordForMarkingBeanList() {
+		return examRecordForMarkingBeanList;
+	}
+
+	public void setExamRecordForMarkingBeanList(
+			List<ExamRecordForMarkingBean> examRecordForMarkingBeanList) {
+		this.examRecordForMarkingBeanList = examRecordForMarkingBeanList;
+	}
+	
+}

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

@@ -0,0 +1,38 @@
+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.ExamRecordForMarkingCloudService;
+import cn.com.qmth.examcloud.core.oe.admin.api.request.FindExamRecordForMarkingInfoReq;
+import cn.com.qmth.examcloud.core.oe.admin.api.response.FindExamRecordForMarkingInfoResp;
+
+@Service
+public class ExamRecordForMarkingCloudServiceClient extends AdminCloudClientSupport implements ExamRecordForMarkingCloudService{
+	@Autowired
+    private RestTemplate restTemplate;
+	
+    @Autowired
+    private RedisClient redisClient;
+	
+	@Override
+	public FindExamRecordForMarkingInfoResp findExamRecordForMarkingInfo(
+			FindExamRecordForMarkingInfoReq findExamRecordForMarkingInfoReq) {
+		return post("examRecordForMarking/findExamRecordForMarkingInfo", findExamRecordForMarkingInfoReq, FindExamRecordForMarkingInfoResp.class);
+	}
+
+	@Override
+	protected RestTemplate getRestTemplate() {
+		return restTemplate;
+	}
+
+	@Override
+	protected RedisClient getRedisClient() {
+		return redisClient;
+	}
+
+	
+	
+}