Parcourir la source

更新客观分

xiatian il y a 1 mois
Parent
commit
e17cd3042f

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

@@ -7,6 +7,7 @@ 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.request.UpdateObjectiveScoreReq;
 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;
@@ -38,8 +39,13 @@ public class StudentPaperCloudServiceClient extends AbstractCloudClientSupport i
         return post("studentPaper/getBasePaperList", req, GetBasePaperListResp.class);
     }
 
-	@Override
-	public GetSubjectiveScoreResp subjectiveScore(GetSubjectiveScoreReq req) {
-		return post("studentPaper/subjective/score", req, GetSubjectiveScoreResp.class);
-	}
+    @Override
+    public GetSubjectiveScoreResp subjectiveScore(GetSubjectiveScoreReq req) {
+        return post("studentPaper/subjective/score", req, GetSubjectiveScoreResp.class);
+    }
+
+    @Override
+    public void updateObjectiveScore(UpdateObjectiveScoreReq req) {
+        post("studentPaper/objective/score/update", req);
+    }
 }

+ 38 - 35
examcloud-core-marking-api/src/main/java/cn/com/qmth/examcloud/marking/api/StudentPaperCloudService.java

@@ -1,35 +1,38 @@
-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;
-
-/**
- * @ClassName StudentPaperCloudService
- * @Description TODO
- * @Author nikang
- * @Date 2018/9/20 18:19
- * @Version 3.0
- */
-public interface StudentPaperCloudService extends CloudService {
-
-    /**
-     * 获取下一张待评试卷(或获取指定答卷)
-     */
-    GetStudentPaperResp getStudentPaper(GetStudentPaperReq req);
-
-    /**
-     * 批量保存考生
-     */
-    SaveStudentPaperResp saveStudentPaper(SaveStudentPaperReq req);
-
-    GetBasePaperListResp getBasePaperList(GetBasePaperListReq req);
-
-	GetSubjectiveScoreResp subjectiveScore(GetSubjectiveScoreReq req);
-}
+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.request.UpdateObjectiveScoreReq;
+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 StudentPaperCloudService
+ * @Description TODO
+ * @Author nikang
+ * @Date 2018/9/20 18:19
+ * @Version 3.0
+ */
+public interface StudentPaperCloudService extends CloudService {
+
+    /**
+     * 获取下一张待评试卷(或获取指定答卷)
+     */
+    GetStudentPaperResp getStudentPaper(GetStudentPaperReq req);
+
+    /**
+     * 批量保存考生
+     */
+    SaveStudentPaperResp saveStudentPaper(SaveStudentPaperReq req);
+
+    GetBasePaperListResp getBasePaperList(GetBasePaperListReq req);
+
+    GetSubjectiveScoreResp subjectiveScore(GetSubjectiveScoreReq req);
+
+    void updateObjectiveScore(UpdateObjectiveScoreReq req);
+}

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

@@ -0,0 +1,29 @@
+package cn.com.qmth.examcloud.marking.api.request;
+
+import cn.com.qmth.examcloud.api.commons.exchange.BaseRequest;
+
+public class UpdateObjectiveScoreReq extends BaseRequest {
+
+    private static final long serialVersionUID = 2589023055968985565L;
+
+    private Long examRecordDataId;
+
+    private Double score;
+
+    public Long getExamRecordDataId() {
+        return examRecordDataId;
+    }
+
+    public void setExamRecordDataId(Long examRecordDataId) {
+        this.examRecordDataId = examRecordDataId;
+    }
+
+    public Double getScore() {
+        return score;
+    }
+
+    public void setScore(Double score) {
+        this.score = score;
+    }
+
+}