瀏覽代碼

线上数据丢失,及重启加载数据过多相关bug修复

lideyin 5 年之前
父節點
當前提交
75a39ac0d8

+ 12 - 1
examcloud-core-oe-student-api-client/src/main/java/cn/com/qmth/examcloud/core/oe/student/client/ExamRecordDataCloudServiceClient.java

@@ -12,7 +12,7 @@ public class ExamRecordDataCloudServiceClient extends AbstractCloudClientSupport
 		ExamRecordDataCloudService {
 
     /**
-     * 
+     *
      */
     private static final long serialVersionUID = 3745318048361113898L;
 
@@ -106,4 +106,15 @@ public class ExamRecordDataCloudServiceClient extends AbstractCloudClientSupport
     public GetExamRecordNumResp getExamRecordNum(GetExamRecordNumReq req) {
         return post("examRecordData/getExamRecordNum", req, GetExamRecordNumResp.class);
     }
+
+    /**
+     * 更新部分考试数据
+     *
+     * @param req
+     * @return
+     */
+    @Override
+    public UpdatePartialExamRecordResp updatePartialExamRecord(UpdatePartialExamRecordReq req) {
+        return post("examRecordData/updatePartialExamRecord", req, UpdatePartialExamRecordResp.class);
+    }
 }

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

@@ -60,4 +60,11 @@ public interface ExamRecordDataCloudService extends CloudService {
      * @return
      */
     GetExamRecordNumResp getExamRecordNum(GetExamRecordNumReq req);
+
+    /**
+     * 更新部分考试数据
+     * @param req
+     * @return
+     */
+    UpdatePartialExamRecordResp updatePartialExamRecord(UpdatePartialExamRecordReq req);
 }

+ 51 - 0
examcloud-core-oe-student-api/src/main/java/cn/com/qmth/examcloud/core/oe/student/api/request/UpdatePartialExamRecordReq.java

@@ -0,0 +1,51 @@
+package cn.com.qmth.examcloud.core.oe.student.api.request;
+
+import cn.com.qmth.examcloud.api.commons.exchange.BaseRequest;
+
+public class UpdatePartialExamRecordReq extends BaseRequest {
+
+
+    /**
+     * @Description 更新部分考试记录数据(只支持非空的更新)
+     * @Author lideyin
+     * @Date 2020/6/10 14:24
+     * @Version 1.0
+     */
+    private static final long serialVersionUID = 5839990527281288779L;
+
+    public UpdatePartialExamRecordReq(){
+        super();
+    }
+
+    public UpdatePartialExamRecordReq(Long id) {
+        this.id = id;
+    }
+
+    /**
+     * 主键必填字段
+     */
+    private Long id;
+
+    /**
+     * 同步状态(UNSYNC/SYNCED)
+     */
+    private String syncStatus;
+
+
+    public Long getId() {
+        return id;
+    }
+
+
+    public void setId(Long id) {
+        this.id = id;
+    }
+
+    public String getSyncStatus() {
+        return syncStatus;
+    }
+
+    public void setSyncStatus(String syncStatus) {
+        this.syncStatus = syncStatus;
+    }
+}

+ 13 - 0
examcloud-core-oe-student-api/src/main/java/cn/com/qmth/examcloud/core/oe/student/api/response/UpdatePartialExamRecordResp.java

@@ -0,0 +1,13 @@
+package cn.com.qmth.examcloud.core.oe.student.api.response;
+
+import cn.com.qmth.examcloud.api.commons.exchange.BaseResponse;
+
+public class UpdatePartialExamRecordResp extends BaseResponse{
+
+    /**
+     *
+     */
+    private static final long serialVersionUID = -4980103192057666500L;
+
+
+}