Pārlūkot izejas kodu

111111111111111

chenken 6 gadi atpakaļ
vecāks
revīzija
578b79c308

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

@@ -7,6 +7,7 @@ import org.springframework.web.client.RestTemplate;
 import cn.com.qmth.examcloud.commons.web.redis.RedisClient;
 import cn.com.qmth.examcloud.core.oe.admin.api.ExamRecordQuestionsCloudService;
 import cn.com.qmth.examcloud.core.oe.admin.api.request.QuerySubjectiveAnswerListReq;
+import cn.com.qmth.examcloud.core.oe.admin.api.request.SaveSubjectiveQuestionScoreReq;
 import cn.com.qmth.examcloud.core.oe.admin.api.response.QuerySubjectiveAnswerListResp;
 
 @Service
@@ -33,4 +34,9 @@ public class ExamRecordQuestionsCloudServiceClient extends AdminCloudClientSuppo
 		return post("examRecordQuestions/querySubjectiveAnswerList", req, QuerySubjectiveAnswerListResp.class);
 	}
 
+	@Override
+	public void saveSubjectiveQuestionScore(SaveSubjectiveQuestionScoreReq req) {
+		post("examRecordQuestions/saveSubjectiveQuestionScore", req, null);
+	}
+
 }

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

@@ -1,6 +1,7 @@
 package cn.com.qmth.examcloud.core.oe.admin.api;
 
 import cn.com.qmth.examcloud.core.oe.admin.api.request.QuerySubjectiveAnswerListReq;
+import cn.com.qmth.examcloud.core.oe.admin.api.request.SaveSubjectiveQuestionScoreReq;
 import cn.com.qmth.examcloud.core.oe.admin.api.response.QuerySubjectiveAnswerListResp;
 
 public interface ExamRecordQuestionsCloudService {
@@ -11,4 +12,10 @@ public interface ExamRecordQuestionsCloudService {
 	 * @return
 	 */
 	public QuerySubjectiveAnswerListResp querySubjectiveAnswerList(QuerySubjectiveAnswerListReq req);
+	
+	/**
+	 * 阅卷回传主观题分数
+	 * @param req
+	 */
+	public void saveSubjectiveQuestionScore(SaveSubjectiveQuestionScoreReq req);
 }

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

@@ -1,6 +1,8 @@
 package cn.com.qmth.examcloud.core.oe.admin.api.bean;
 
-public class ExamRecordForMarkingBean {
+import cn.com.qmth.examcloud.commons.web.cloud.api.JsonSerializable;
+
+public class ExamRecordForMarkingBean implements JsonSerializable{
 
 	private Long id;
 	

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

@@ -0,0 +1,66 @@
+package cn.com.qmth.examcloud.core.oe.admin.api.bean;
+
+import cn.com.qmth.examcloud.commons.web.cloud.api.JsonSerializable;
+
+/**
+ * 
+ * @author  	chenken
+ * @date    	2018年9月21日 下午4:36:00
+ * @company 	QMTH
+ * @description 阅卷回传主观题分数
+ */
+public class SaveSubjectiveQuestionScoreBean implements JsonSerializable{
+
+	/**
+	 * 考试记录ID
+	 */
+	private Long examRecordDataId;
+	
+	/**
+	 * 
+	 */
+	private String questionId;
+	
+	/**
+	 * 小题序号
+	 */
+	private Integer order;
+	
+	/**
+	 * 得分
+	 */
+	private Double score;
+
+	public Long getExamRecordDataId() {
+		return examRecordDataId;
+	}
+
+	public void setExamRecordDataId(Long examRecordDataId) {
+		this.examRecordDataId = examRecordDataId;
+	}
+
+	public String getQuestionId() {
+		return questionId;
+	}
+
+	public void setQuestionId(String questionId) {
+		this.questionId = questionId;
+	}
+
+	public Integer getOrder() {
+		return order;
+	}
+
+	public void setOrder(Integer order) {
+		this.order = order;
+	}
+
+	public Double getScore() {
+		return score;
+	}
+
+	public void setScore(Double score) {
+		this.score = score;
+	}
+	
+}

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

@@ -0,0 +1,39 @@
+package cn.com.qmth.examcloud.core.oe.admin.api.request;
+
+import java.util.List;
+
+import cn.com.qmth.examcloud.commons.web.cloud.api.BaseRequest;
+import cn.com.qmth.examcloud.core.oe.admin.api.bean.SaveSubjectiveQuestionScoreBean;
+
+/**
+ * 
+ * @author  	chenken
+ * @date    	2018年9月21日 下午4:38:10
+ * @company 	QMTH
+ * @description 阅卷回传主观题分数
+ */
+public class SaveSubjectiveQuestionScoreReq extends BaseRequest {
+
+	private Long examRecordDataId;
+	
+	private List<SaveSubjectiveQuestionScoreBean> saveSubjectiveQuestionScoreList;
+
+	public Long getExamRecordDataId() {
+		return examRecordDataId;
+	}
+
+	public void setExamRecordDataId(Long examRecordDataId) {
+		this.examRecordDataId = examRecordDataId;
+	}
+
+	public List<SaveSubjectiveQuestionScoreBean> getSaveSubjectiveQuestionScoreList() {
+		return saveSubjectiveQuestionScoreList;
+	}
+
+	public void setSaveSubjectiveQuestionScoreList(
+			List<SaveSubjectiveQuestionScoreBean> saveSubjectiveQuestionScoreList) {
+		this.saveSubjectiveQuestionScoreList = saveSubjectiveQuestionScoreList;
+	}
+	
+	
+}