Răsfoiți Sursa

代码优化及调整

lideyin 5 ani în urmă
părinte
comite
7b7dec2ded

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

@@ -1,18 +1,17 @@
 package cn.com.qmth.examcloud.core.oe.student.client;
 
+import cn.com.qmth.examcloud.core.oe.student.api.ExamRecordDataCloudService;
 import cn.com.qmth.examcloud.core.oe.student.api.request.*;
 import cn.com.qmth.examcloud.core.oe.student.api.response.*;
 import org.springframework.stereotype.Service;
 
-import cn.com.qmth.examcloud.core.oe.student.api.ExamRecordDataCloudService;
-
 @Service("examRecordDataCloudService")
 public class ExamRecordDataCloudServiceClient extends AbstractCloudClientSupport
-		implements
-		ExamRecordDataCloudService {
+        implements
+        ExamRecordDataCloudService {
 
     /**
-     * 
+     *
      */
     private static final long serialVersionUID = 3745318048361113898L;
 
@@ -80,5 +79,16 @@ public class ExamRecordDataCloudServiceClient extends AbstractCloudClientSupport
         return post("examRecordData/getExamRecordPaperStruct", req, GetExamRecordPaperStructResp.class);
     }
 
+    /**
+     * 交卷
+     *
+     * @param req
+     * @return
+     */
+    @Override
+    public HandInExamResp handInExam(HandInExamReq req) {
+        return post("examRecordData/handInExam", req, HandInExamResp.class);
+    }
+
 
 }

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

@@ -4,8 +4,6 @@ import cn.com.qmth.examcloud.api.commons.CloudService;
 import cn.com.qmth.examcloud.core.oe.student.api.request.*;
 import cn.com.qmth.examcloud.core.oe.student.api.response.*;
 
-import java.util.List;
-
 public interface ExamRecordDataCloudService extends CloudService {
 
     GetExamRecordDataIdsResp getExamRecordDataIds(GetExamRecordDataIdsReq req);
@@ -30,6 +28,7 @@ public interface ExamRecordDataCloudService extends CloudService {
 
     /**
      * 获取旧活体检测结果
+     *
      * @param req
      * @return
      */
@@ -37,6 +36,7 @@ public interface ExamRecordDataCloudService extends CloudService {
 
     /**
      * 获取新活检
+     *
      * @param req
      * @return
      */
@@ -46,4 +46,11 @@ public interface ExamRecordDataCloudService extends CloudService {
 
     GetExamRecordPaperStructResp getExamRecordPaperStruct(GetExamRecordPaperStructReq req);
 
+    /**
+     * 交卷
+     *
+     * @param req
+     * @return
+     */
+    HandInExamResp handInExam(HandInExamReq req);
 }

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

@@ -0,0 +1,37 @@
+package cn.com.qmth.examcloud.core.oe.student.api.request;
+
+import cn.com.qmth.examcloud.api.commons.exchange.BaseRequest;
+import cn.com.qmth.examcloud.support.enums.HandInExamType;
+
+/**
+ * @Description 交卷
+ * @Author lideyin
+ * @Date 2020/1/16 16:55
+ * @Version 1.0
+ */
+public class HandInExamReq extends BaseRequest {
+
+    private static final long serialVersionUID = 7287520603393647287L;
+    /**
+     * 考试记录id
+     */
+    private Long examRecordDataId;
+
+    private HandInExamType handInExamType;
+
+    public Long getExamRecordDataId() {
+        return examRecordDataId;
+    }
+
+    public void setExamRecordDataId(Long examRecordDataId) {
+        this.examRecordDataId = examRecordDataId;
+    }
+
+    public HandInExamType getHandInExamType() {
+        return handInExamType;
+    }
+
+    public void setHandInExamType(HandInExamType handInExamType) {
+        this.handInExamType = handInExamType;
+    }
+}

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

@@ -0,0 +1,15 @@
+package cn.com.qmth.examcloud.core.oe.student.api.response;
+
+import cn.com.qmth.examcloud.api.commons.exchange.BaseResponse;
+
+/**
+ * @Description 交卷
+ * @Author lideyin
+ * @Date 2020/1/16 16:54
+ * @Version 1.0
+ */
+public class HandInExamResp extends BaseResponse {
+
+    private static final long serialVersionUID = 447818414172174225L;
+
+}