浏览代码

update oe admin api.

deason 6 年之前
父节点
当前提交
2df76a7e2b

+ 11 - 4
examcloud-core-oe-admin-api/src/main/java/cn/com/qmth/examcloud/core/oe/admin/api/ExamStudentCloudService.java

@@ -8,8 +8,10 @@
 package cn.com.qmth.examcloud.core.oe.admin.api;
 
 import cn.com.qmth.examcloud.commons.web.cloud.api.CloudService;
-import cn.com.qmth.examcloud.core.oe.admin.api.request.SyncExamStudentReq;
-import cn.com.qmth.examcloud.core.oe.admin.api.response.SyncExamStudentResp;
+import cn.com.qmth.examcloud.core.oe.admin.api.request.ExamStudentSyncAllDataReq;
+import cn.com.qmth.examcloud.core.oe.admin.api.request.ExamStudentSyncPartDataReq;
+import cn.com.qmth.examcloud.core.oe.admin.api.response.ExamStudentSyncAllDataResp;
+import cn.com.qmth.examcloud.core.oe.admin.api.response.ExamStudentSyncPartDataResp;
 
 /**
  * 考生信息接口
@@ -20,8 +22,13 @@ import cn.com.qmth.examcloud.core.oe.admin.api.response.SyncExamStudentResp;
 public interface ExamStudentCloudService extends CloudService {
 
     /**
-     * 同步考生数据
+     * 同步考生(全部)数据
      */
-    SyncExamStudentResp syncExamStudent(SyncExamStudentReq req);
+    ExamStudentSyncAllDataResp syncExamStudentAllData(ExamStudentSyncAllDataReq req);
+
+    /**
+     * 同步考生(部分)数据
+     */
+    ExamStudentSyncPartDataResp syncExamStudentPartData(ExamStudentSyncPartDataReq req);
 
 }

+ 3 - 3
examcloud-core-oe-admin-api/src/main/java/cn/com/qmth/examcloud/core/oe/admin/api/bean/ExamStudentBean.java → examcloud-core-oe-admin-api/src/main/java/cn/com/qmth/examcloud/core/oe/admin/api/bean/ExamStudentSyncAllDataBean.java

@@ -13,7 +13,7 @@ import cn.com.qmth.examcloud.commons.web.cloud.api.JsonSerializable;
  * @author: fengdesheng
  * @since: 2018/8/15
  */
-public class ExamStudentBean implements JsonSerializable {
+public class ExamStudentSyncAllDataBean implements JsonSerializable {
     /**
      * 考生ID
      */
@@ -27,7 +27,7 @@ public class ExamStudentBean implements JsonSerializable {
      */
     private Long studentId;
     /**
-     * 学生code
+     * 学
      */
     private String studentCode;
     /**
@@ -35,7 +35,7 @@ public class ExamStudentBean implements JsonSerializable {
      */
     private String studentName;
     /**
-     * 身份证号
+     * 身份证号
      */
     private String identityNumber;
     /**

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

@@ -0,0 +1,114 @@
+/*
+ * *************************************************
+ * Copyright (c) 2018 QMTH. All Rights Reserved.
+ * Created by Deason on 2018-08-21 16:44:30.
+ * *************************************************
+ */
+
+package cn.com.qmth.examcloud.core.oe.admin.api.bean;
+
+import cn.com.qmth.examcloud.commons.web.cloud.api.JsonSerializable;
+
+/**
+ * @author: fengdesheng
+ * @since: 2018/8/15
+ */
+public class ExamStudentSyncPartDataBean implements JsonSerializable {
+    /**
+     * 考试ID
+     */
+    private Long examId;
+    /**
+     * 学生ID
+     */
+    private Long studentId;
+    /**
+     * 学号
+     */
+    private String studentCode;
+    /**
+     * 学生姓名
+     */
+    private String studentName;
+    /**
+     * 身份证号
+     */
+    private String identityNumber;
+    /**
+     * 课程ID
+     */
+    private Long courseId;
+    /**
+     * 课程名称
+     */
+    private String courseName;
+    /**
+     * 学习中心名称
+     */
+    private String orgName;
+
+    public Long getExamId() {
+        return examId;
+    }
+
+    public void setExamId(Long examId) {
+        this.examId = examId;
+    }
+
+    public Long getStudentId() {
+        return studentId;
+    }
+
+    public void setStudentId(Long studentId) {
+        this.studentId = studentId;
+    }
+
+    public String getStudentCode() {
+        return studentCode;
+    }
+
+    public void setStudentCode(String studentCode) {
+        this.studentCode = studentCode;
+    }
+
+    public String getStudentName() {
+        return studentName;
+    }
+
+    public void setStudentName(String studentName) {
+        this.studentName = studentName;
+    }
+
+    public String getIdentityNumber() {
+        return identityNumber;
+    }
+
+    public void setIdentityNumber(String identityNumber) {
+        this.identityNumber = identityNumber;
+    }
+
+    public Long getCourseId() {
+        return courseId;
+    }
+
+    public void setCourseId(Long courseId) {
+        this.courseId = courseId;
+    }
+
+    public String getCourseName() {
+        return courseName;
+    }
+
+    public void setCourseName(String courseName) {
+        this.courseName = courseName;
+    }
+
+    public String getOrgName() {
+        return orgName;
+    }
+
+    public void setOrgName(String orgName) {
+        this.orgName = orgName;
+    }
+
+}

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

@@ -0,0 +1,30 @@
+/*
+ * *************************************************
+ * Copyright (c) 2018 QMTH. All Rights Reserved.
+ * Created by Deason on 2018-08-16 15:58:12.
+ * *************************************************
+ */
+
+package cn.com.qmth.examcloud.core.oe.admin.api.request;
+
+import cn.com.qmth.examcloud.commons.web.cloud.api.BaseRequest;
+import cn.com.qmth.examcloud.core.oe.admin.api.bean.ExamStudentSyncAllDataBean;
+
+import java.util.List;
+
+/**
+ * @author: fengdesheng
+ * @since: 2018/8/15
+ */
+public class ExamStudentSyncAllDataReq extends BaseRequest {
+    private List<ExamStudentSyncAllDataBean> examStudents;
+
+    public List<ExamStudentSyncAllDataBean> getExamStudents() {
+        return examStudents;
+    }
+
+    public void setExamStudents(List<ExamStudentSyncAllDataBean> examStudents) {
+        this.examStudents = examStudents;
+    }
+
+}

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

@@ -0,0 +1,30 @@
+/*
+ * *************************************************
+ * Copyright (c) 2018 QMTH. All Rights Reserved.
+ * Created by Deason on 2018-08-21 16:36:01.
+ * *************************************************
+ */
+
+package cn.com.qmth.examcloud.core.oe.admin.api.request;
+
+import cn.com.qmth.examcloud.commons.web.cloud.api.BaseRequest;
+import cn.com.qmth.examcloud.core.oe.admin.api.bean.ExamStudentSyncPartDataBean;
+
+import java.util.List;
+
+/**
+ * @author: fengdesheng
+ * @since: 2018/8/21
+ */
+public class ExamStudentSyncPartDataReq extends BaseRequest {
+    private List<ExamStudentSyncPartDataBean> examStudents;
+
+    public List<ExamStudentSyncPartDataBean> getExamStudents() {
+        return examStudents;
+    }
+
+    public void setExamStudents(List<ExamStudentSyncPartDataBean> examStudents) {
+        this.examStudents = examStudents;
+    }
+
+}

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

@@ -1,284 +0,0 @@
-/*
- * *************************************************
- * Copyright (c) 2018 QMTH. All Rights Reserved.
- * Created by Deason on 2018-08-16 15:58:12.
- * *************************************************
- */
-
-package cn.com.qmth.examcloud.core.oe.admin.api.request;
-
-import cn.com.qmth.examcloud.commons.web.cloud.api.BaseRequest;
-
-/**
- * 考生信息
- *
- * @author: fengdesheng
- * @since: 2018/8/15
- */
-public class SyncExamStudentReq extends BaseRequest {
-    /**
-     * 考生ID
-     */
-    private Long examStudentId;
-    /**
-     * 考试ID
-     */
-    private Long examId;
-    /**
-     * 学生ID
-     */
-    private Long studentId;
-    /**
-     * 学生code
-     */
-    private String studentCode;
-    /**
-     * 学生姓名
-     */
-    private String studentName;
-    /**
-     * 身份证号码
-     */
-    private String identityNumber;
-    /**
-     * 课程ID
-     */
-    private Long courseId;
-    /**
-     * 课程Code
-     */
-    private String courseCode;
-    /**
-     * 课程名称
-     */
-    private String courseName;
-    /**
-     * 课程层次
-     */
-    private String courseLevel;
-    /**
-     * 学习中心ID
-     */
-    private Long orgId;
-    /**
-     * 学习中心代码
-     */
-    private String orgCode;
-    /**
-     * 学习中心名称
-     */
-    private String orgName;
-    /**
-     * 顶级机构ID
-     */
-    private Long rootOrgId;
-    /**
-     * 专业code
-     */
-    private String specialtyCode;
-    /**
-     * 专业名称
-     */
-    private String specialtyName;
-    /**
-     * 试卷类型
-     */
-    private String paperType;
-    /**
-     * 采集人
-     */
-    private String infoCollector;
-    /**
-     * 是否完成考试
-     */
-    private Boolean finished;
-    /**
-     * 正常考试次数
-     */
-    private Integer normalExamTimes;
-    /**
-     * 是否重考
-     */
-    private Boolean isReExamine;
-    /**
-     * 重考是否已完成
-     */
-    private Boolean reExamineCompleted;
-
-    public Long getExamStudentId() {
-        return examStudentId;
-    }
-
-    public void setExamStudentId(Long examStudentId) {
-        this.examStudentId = examStudentId;
-    }
-
-    public Long getExamId() {
-        return examId;
-    }
-
-    public void setExamId(Long examId) {
-        this.examId = examId;
-    }
-
-    public Long getStudentId() {
-        return studentId;
-    }
-
-    public void setStudentId(Long studentId) {
-        this.studentId = studentId;
-    }
-
-    public String getStudentCode() {
-        return studentCode;
-    }
-
-    public void setStudentCode(String studentCode) {
-        this.studentCode = studentCode;
-    }
-
-    public String getStudentName() {
-        return studentName;
-    }
-
-    public void setStudentName(String studentName) {
-        this.studentName = studentName;
-    }
-
-    public String getIdentityNumber() {
-        return identityNumber;
-    }
-
-    public void setIdentityNumber(String identityNumber) {
-        this.identityNumber = identityNumber;
-    }
-
-    public Long getCourseId() {
-        return courseId;
-    }
-
-    public void setCourseId(Long courseId) {
-        this.courseId = courseId;
-    }
-
-    public String getCourseCode() {
-        return courseCode;
-    }
-
-    public void setCourseCode(String courseCode) {
-        this.courseCode = courseCode;
-    }
-
-    public String getCourseName() {
-        return courseName;
-    }
-
-    public void setCourseName(String courseName) {
-        this.courseName = courseName;
-    }
-
-    public String getCourseLevel() {
-        return courseLevel;
-    }
-
-    public void setCourseLevel(String courseLevel) {
-        this.courseLevel = courseLevel;
-    }
-
-    public Long getOrgId() {
-        return orgId;
-    }
-
-    public void setOrgId(Long orgId) {
-        this.orgId = orgId;
-    }
-
-    public String getOrgCode() {
-        return orgCode;
-    }
-
-    public void setOrgCode(String orgCode) {
-        this.orgCode = orgCode;
-    }
-
-    public String getOrgName() {
-        return orgName;
-    }
-
-    public void setOrgName(String orgName) {
-        this.orgName = orgName;
-    }
-
-    public Long getRootOrgId() {
-        return rootOrgId;
-    }
-
-    public void setRootOrgId(Long rootOrgId) {
-        this.rootOrgId = rootOrgId;
-    }
-
-    public String getSpecialtyCode() {
-        return specialtyCode;
-    }
-
-    public void setSpecialtyCode(String specialtyCode) {
-        this.specialtyCode = specialtyCode;
-    }
-
-    public String getSpecialtyName() {
-        return specialtyName;
-    }
-
-    public void setSpecialtyName(String specialtyName) {
-        this.specialtyName = specialtyName;
-    }
-
-    public String getPaperType() {
-        return paperType;
-    }
-
-    public void setPaperType(String paperType) {
-        this.paperType = paperType;
-    }
-
-    public String getInfoCollector() {
-        return infoCollector;
-    }
-
-    public void setInfoCollector(String infoCollector) {
-        this.infoCollector = infoCollector;
-    }
-
-    public Boolean getFinished() {
-        return finished;
-    }
-
-    public void setFinished(Boolean finished) {
-        this.finished = finished;
-    }
-
-    public Integer getNormalExamTimes() {
-        return normalExamTimes;
-    }
-
-    public void setNormalExamTimes(Integer normalExamTimes) {
-        this.normalExamTimes = normalExamTimes;
-    }
-
-    public Boolean getReExamine() {
-        return isReExamine;
-    }
-
-    public void setReExamine(Boolean reExamine) {
-        this.isReExamine = reExamine;
-    }
-
-    public Boolean getReExamineCompleted() {
-        return reExamineCompleted;
-    }
-
-    public void setReExamineCompleted(Boolean reExamineCompleted) {
-        this.reExamineCompleted = reExamineCompleted;
-    }
-
-}

+ 1 - 18
examcloud-core-oe-admin-api/src/main/java/cn/com/qmth/examcloud/core/oe/admin/api/response/SyncExamStudentResp.java → examcloud-core-oe-admin-api/src/main/java/cn/com/qmth/examcloud/core/oe/admin/api/response/ExamStudentSyncAllDataResp.java

@@ -13,23 +13,6 @@ import cn.com.qmth.examcloud.commons.web.cloud.api.BaseResponse;
  * @author: fengdesheng
  * @since: 2018/8/15
  */
-public class SyncExamStudentResp extends BaseResponse {
-    private boolean success;
-
-    public SyncExamStudentResp(boolean success) {
-        this.success = success;
-    }
-
-    public SyncExamStudentResp() {
-
-    }
-
-    public boolean isSuccess() {
-        return success;
-    }
-
-    public void setSuccess(boolean success) {
-        this.success = success;
-    }
+public class ExamStudentSyncAllDataResp extends BaseResponse {
 
 }

+ 18 - 0
examcloud-core-oe-admin-api/src/main/java/cn/com/qmth/examcloud/core/oe/admin/api/response/ExamStudentSyncPartDataResp.java

@@ -0,0 +1,18 @@
+/*
+ * *************************************************
+ * Copyright (c) 2018 QMTH. All Rights Reserved.
+ * Created by Deason on 2018-08-21 16:37:07.
+ * *************************************************
+ */
+
+package cn.com.qmth.examcloud.core.oe.admin.api.response;
+
+import cn.com.qmth.examcloud.commons.web.cloud.api.BaseResponse;
+
+/**
+ * @author: fengdesheng
+ * @since: 2018/8/15
+ */
+public class ExamStudentSyncPartDataResp extends BaseResponse {
+
+}