浏览代码

获取主观分明细

xiatian 2 年之前
父节点
当前提交
ee8ff08353

+ 7 - 1
examcloud-core-marking-api-client/src/main/java/cn/com/qmth/examcloud/marking/api/client/StudentPaperCloudServiceClient.java

@@ -5,14 +5,15 @@ import org.springframework.stereotype.Service;
 import cn.com.qmth.examcloud.marking.api.StudentPaperCloudService;
 import cn.com.qmth.examcloud.marking.api.request.GetBasePaperListReq;
 import cn.com.qmth.examcloud.marking.api.request.GetStudentPaperReq;
+import cn.com.qmth.examcloud.marking.api.request.GetSubjectiveScoreReq;
 import cn.com.qmth.examcloud.marking.api.request.SaveStudentPaperReq;
 import cn.com.qmth.examcloud.marking.api.response.GetBasePaperListResp;
 import cn.com.qmth.examcloud.marking.api.response.GetStudentPaperResp;
+import cn.com.qmth.examcloud.marking.api.response.GetSubjectiveScoreResp;
 import cn.com.qmth.examcloud.marking.api.response.SaveStudentPaperResp;
 
 /**
  * @ClassName StudentPaperCloudServiceClient
- * @Description TODO
  * @Author nikang
  * @Date 2018/9/20 18:25
  * @Version 3.0
@@ -36,4 +37,9 @@ public class StudentPaperCloudServiceClient extends AbstractCloudClientSupport i
     public GetBasePaperListResp getBasePaperList(GetBasePaperListReq req) {
         return post("studentPaper/getBasePaperList", req, GetBasePaperListResp.class);
     }
+
+	@Override
+	public GetSubjectiveScoreResp subjectiveScore(GetSubjectiveScoreReq req) {
+		return post("studentPaper/subjective/score", req, GetSubjectiveScoreResp.class);
+	}
 }

+ 4 - 0
examcloud-core-marking-api/src/main/java/cn/com/qmth/examcloud/marking/api/StudentPaperCloudService.java

@@ -3,9 +3,11 @@ package cn.com.qmth.examcloud.marking.api;
 import cn.com.qmth.examcloud.api.commons.CloudService;
 import cn.com.qmth.examcloud.marking.api.request.GetBasePaperListReq;
 import cn.com.qmth.examcloud.marking.api.request.GetStudentPaperReq;
+import cn.com.qmth.examcloud.marking.api.request.GetSubjectiveScoreReq;
 import cn.com.qmth.examcloud.marking.api.request.SaveStudentPaperReq;
 import cn.com.qmth.examcloud.marking.api.response.GetBasePaperListResp;
 import cn.com.qmth.examcloud.marking.api.response.GetStudentPaperResp;
+import cn.com.qmth.examcloud.marking.api.response.GetSubjectiveScoreResp;
 import cn.com.qmth.examcloud.marking.api.response.SaveStudentPaperResp;
 
 /**
@@ -28,4 +30,6 @@ public interface StudentPaperCloudService extends CloudService {
     SaveStudentPaperResp saveStudentPaper(SaveStudentPaperReq req);
 
     GetBasePaperListResp getBasePaperList(GetBasePaperListReq req);
+
+	GetSubjectiveScoreResp subjectiveScore(GetSubjectiveScoreReq req);
 }

+ 32 - 0
examcloud-core-marking-api/src/main/java/cn/com/qmth/examcloud/marking/api/bean/SubjectiveScoreBean.java

@@ -0,0 +1,32 @@
+package cn.com.qmth.examcloud.marking.api.bean;
+
+import cn.com.qmth.examcloud.api.commons.exchange.JsonSerializable;
+
+public class SubjectiveScoreBean implements JsonSerializable {
+
+	/**
+	 * 
+	 */
+	private static final long serialVersionUID = -2522829579622400375L;
+
+	private Integer order;
+
+	private Double score;
+
+	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;
+	}
+
+}

+ 22 - 0
examcloud-core-marking-api/src/main/java/cn/com/qmth/examcloud/marking/api/request/GetSubjectiveScoreReq.java

@@ -0,0 +1,22 @@
+package cn.com.qmth.examcloud.marking.api.request;
+
+import cn.com.qmth.examcloud.api.commons.exchange.BaseRequest;
+
+public class GetSubjectiveScoreReq extends BaseRequest {
+
+	/**
+	 * 
+	 */
+	private static final long serialVersionUID = 6786321031898485485L;
+
+	private Long examRecordDataId;
+
+	public Long getExamRecordDataId() {
+		return examRecordDataId;
+	}
+
+	public void setExamRecordDataId(Long examRecordDataId) {
+		this.examRecordDataId = examRecordDataId;
+	}
+
+}

+ 25 - 0
examcloud-core-marking-api/src/main/java/cn/com/qmth/examcloud/marking/api/response/GetSubjectiveScoreResp.java

@@ -0,0 +1,25 @@
+package cn.com.qmth.examcloud.marking.api.response;
+
+import java.util.List;
+
+import cn.com.qmth.examcloud.api.commons.exchange.BaseResponse;
+import cn.com.qmth.examcloud.marking.api.bean.SubjectiveScoreBean;
+
+public class GetSubjectiveScoreResp extends BaseResponse {
+
+	/**
+	 * 
+	 */
+	private static final long serialVersionUID = -7792901445207032499L;
+
+	private List<SubjectiveScoreBean> scores;
+
+	public List<SubjectiveScoreBean> getScores() {
+		return scores;
+	}
+
+	public void setScores(List<SubjectiveScoreBean> scores) {
+		this.scores = scores;
+	}
+
+}