wangwei %!s(int64=6) %!d(string=hai) anos
pai
achega
ad5bea5bc8
Modificáronse 17 ficheiros con 616 adicións e 43 borrados
  1. 19 0
      examcloud-commons-api-client/pom.xml
  2. 18 0
      examcloud-commons-api/pom.xml
  3. 80 0
      examcloud-commons-api/src/main/java/cn/com/qmth/examcloud/commons/api/HandleSyncCloudService.java
  4. 32 0
      examcloud-commons-api/src/main/java/cn/com/qmth/examcloud/commons/api/request/SyncBaseRequest.java
  5. 67 0
      examcloud-commons-api/src/main/java/cn/com/qmth/examcloud/commons/api/request/SyncCourseReq.java
  6. 6 0
      examcloud-commons-api/src/main/java/cn/com/qmth/examcloud/commons/api/request/SyncExamReq.java
  7. 7 0
      examcloud-commons-api/src/main/java/cn/com/qmth/examcloud/commons/api/request/SyncExamStudentReq.java
  8. 67 0
      examcloud-commons-api/src/main/java/cn/com/qmth/examcloud/commons/api/request/SyncOrgReq.java
  9. 57 0
      examcloud-commons-api/src/main/java/cn/com/qmth/examcloud/commons/api/request/SyncSpecialtyReq.java
  10. 163 0
      examcloud-commons-api/src/main/java/cn/com/qmth/examcloud/commons/api/request/SyncStudentReq.java
  11. 9 0
      examcloud-commons-api/src/main/java/cn/com/qmth/examcloud/commons/api/response/SyncCourseResp.java
  12. 9 0
      examcloud-commons-api/src/main/java/cn/com/qmth/examcloud/commons/api/response/SyncExamResp.java
  13. 9 0
      examcloud-commons-api/src/main/java/cn/com/qmth/examcloud/commons/api/response/SyncExamStudentResp.java
  14. 9 0
      examcloud-commons-api/src/main/java/cn/com/qmth/examcloud/commons/api/response/SyncOrgResp.java
  15. 9 0
      examcloud-commons-api/src/main/java/cn/com/qmth/examcloud/commons/api/response/SyncSpecialtyResp.java
  16. 9 0
      examcloud-commons-api/src/main/java/cn/com/qmth/examcloud/commons/api/response/SyncStudentResp.java
  17. 46 43
      pom.xml

+ 19 - 0
examcloud-commons-api-client/pom.xml

@@ -0,0 +1,19 @@
+<?xml version="1.0"?>
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+	<modelVersion>4.0.0</modelVersion>
+	<parent>
+		<groupId>cn.com.qmth.examcloud.rmi</groupId>
+		<artifactId>examcloud-rmi</artifactId>
+		<version>2.0-SNAPSHOT</version>
+	</parent>
+	<artifactId>examcloud-commons-api-client</artifactId>
+	<packaging>jar</packaging>
+
+	<dependencies>
+		<dependency>
+			<groupId>cn.com.qmth.examcloud.rmi</groupId>
+			<artifactId>examcloud-commons-api</artifactId>
+			<version>${examcloud.version}</version>
+		</dependency>
+	</dependencies>
+</project>

+ 18 - 0
examcloud-commons-api/pom.xml

@@ -0,0 +1,18 @@
+<?xml version="1.0"?>
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+	<modelVersion>4.0.0</modelVersion>
+	<parent>
+		<groupId>cn.com.qmth.examcloud.rmi</groupId>
+		<artifactId>examcloud-rmi</artifactId>
+		<version>2.0-SNAPSHOT</version>
+	</parent>
+	<artifactId>examcloud-commons-api</artifactId>
+
+	<dependencies>
+		<dependency>
+			<groupId>cn.com.qmth.examcloud.commons</groupId>
+			<artifactId>examcloud-commons-web</artifactId>
+			<version>${examcloud.version}</version>
+		</dependency>
+	</dependencies>
+</project>

+ 80 - 0
examcloud-commons-api/src/main/java/cn/com/qmth/examcloud/commons/api/HandleSyncCloudService.java

@@ -0,0 +1,80 @@
+package cn.com.qmth.examcloud.commons.api;
+
+import cn.com.qmth.examcloud.commons.api.request.SyncCourseReq;
+import cn.com.qmth.examcloud.commons.api.request.SyncExamReq;
+import cn.com.qmth.examcloud.commons.api.request.SyncExamStudentReq;
+import cn.com.qmth.examcloud.commons.api.request.SyncOrgReq;
+import cn.com.qmth.examcloud.commons.api.request.SyncSpecialtyReq;
+import cn.com.qmth.examcloud.commons.api.request.SyncStudentReq;
+import cn.com.qmth.examcloud.commons.api.response.SyncCourseResp;
+import cn.com.qmth.examcloud.commons.api.response.SyncExamResp;
+import cn.com.qmth.examcloud.commons.api.response.SyncExamStudentResp;
+import cn.com.qmth.examcloud.commons.api.response.SyncOrgResp;
+import cn.com.qmth.examcloud.commons.api.response.SyncSpecialtyResp;
+import cn.com.qmth.examcloud.commons.api.response.SyncStudentResp;
+import cn.com.qmth.examcloud.commons.web.cloud.api.CloudService;
+
+/**
+ * 处理同步服务
+ *
+ * @author WANGWEI
+ * @date 2018年9月18日
+ * @Copyright (c) 2018-? http://qmth.com.cn All Rights Reserved.
+ */
+public interface HandleSyncCloudService extends CloudService {
+
+	/**
+	 * 同步课程
+	 *
+	 * @author WANGWEI
+	 * @param req
+	 * @return
+	 */
+	SyncCourseResp syncCourse(SyncCourseReq req);
+
+	/**
+	 * 同步机构
+	 *
+	 * @author WANGWEI
+	 * @param req
+	 * @return
+	 */
+	SyncOrgResp syncOrg(SyncOrgReq req);
+
+	/**
+	 * 同步学生
+	 *
+	 * @author WANGWEI
+	 * @param req
+	 * @return
+	 */
+	SyncStudentResp syncStudent(SyncStudentReq req);
+
+	/**
+	 * 同步考生
+	 *
+	 * @author WANGWEI
+	 * @param req
+	 * @return
+	 */
+	SyncExamStudentResp syncExamStudent(SyncExamStudentReq req);
+
+	/**
+	 * 同步专业
+	 *
+	 * @author WANGWEI
+	 * @param req
+	 * @return
+	 */
+	SyncSpecialtyResp syncSpecialty(SyncSpecialtyReq req);
+
+	/**
+	 * 同步考试
+	 *
+	 * @author WANGWEI
+	 * @param req
+	 * @return
+	 */
+	SyncExamResp syncExam(SyncExamReq req);
+
+}

+ 32 - 0
examcloud-commons-api/src/main/java/cn/com/qmth/examcloud/commons/api/request/SyncBaseRequest.java

@@ -0,0 +1,32 @@
+package cn.com.qmth.examcloud.commons.api.request;
+
+import cn.com.qmth.examcloud.commons.web.cloud.api.BaseRequest;
+
+/**
+ * 同步请求基类
+ *
+ * @author WANGWEI
+ * @date 2018年9月18日
+ * @Copyright (c) 2018-? http://qmth.com.cn All Rights Reserved.
+ */
+public abstract class SyncBaseRequest extends BaseRequest {
+
+	/**
+	 * 属性注释
+	 */
+	private static final long serialVersionUID = -8613637552589526722L;
+
+	/**
+	 * 同步类型. "update","delete"
+	 */
+	private String syncType;
+
+	public String getSyncType() {
+		return syncType;
+	}
+
+	public void setSyncType(String syncType) {
+		this.syncType = syncType;
+	}
+
+}

+ 67 - 0
examcloud-commons-api/src/main/java/cn/com/qmth/examcloud/commons/api/request/SyncCourseReq.java

@@ -0,0 +1,67 @@
+package cn.com.qmth.examcloud.commons.api.request;
+
+public class SyncCourseReq extends SyncBaseRequest {
+
+	private static final long serialVersionUID = -1031140605770551820L;
+
+	private Long id;
+
+	private String code;
+
+	private String name;
+
+	private Long rootOrgId;
+
+	private String level;
+
+	private Boolean enable;
+
+	public Long getId() {
+		return id;
+	}
+
+	public void setId(Long id) {
+		this.id = id;
+	}
+
+	public String getCode() {
+		return code;
+	}
+
+	public void setCode(String code) {
+		this.code = code;
+	}
+
+	public String getName() {
+		return name;
+	}
+
+	public void setName(String name) {
+		this.name = name;
+	}
+
+	public Long getRootOrgId() {
+		return rootOrgId;
+	}
+
+	public void setRootOrgId(Long rootOrgId) {
+		this.rootOrgId = rootOrgId;
+	}
+
+	public String getLevel() {
+		return level;
+	}
+
+	public void setLevel(String level) {
+		this.level = level;
+	}
+
+	public Boolean getEnable() {
+		return enable;
+	}
+
+	public void setEnable(Boolean enable) {
+		this.enable = enable;
+	}
+
+}

+ 6 - 0
examcloud-commons-api/src/main/java/cn/com/qmth/examcloud/commons/api/request/SyncExamReq.java

@@ -0,0 +1,6 @@
+package cn.com.qmth.examcloud.commons.api.request;
+
+public class SyncExamReq extends SyncBaseRequest {
+	private static final long serialVersionUID = -1174285249211340119L;
+
+}

+ 7 - 0
examcloud-commons-api/src/main/java/cn/com/qmth/examcloud/commons/api/request/SyncExamStudentReq.java

@@ -0,0 +1,7 @@
+package cn.com.qmth.examcloud.commons.api.request;
+
+public class SyncExamStudentReq extends SyncBaseRequest			 {
+
+	private static final long serialVersionUID = 7987888927141546802L;
+
+}

+ 67 - 0
examcloud-commons-api/src/main/java/cn/com/qmth/examcloud/commons/api/request/SyncOrgReq.java

@@ -0,0 +1,67 @@
+package cn.com.qmth.examcloud.commons.api.request;
+
+public class SyncOrgReq extends SyncBaseRequest {
+
+	private static final long serialVersionUID = -2104134978729044084L;
+
+	private Long id;
+
+	private Long rootId;
+
+	private Long parentId;
+
+	private Integer level;
+
+	private String name;
+
+	private Boolean enable;
+
+	public Long getId() {
+		return id;
+	}
+
+	public void setId(Long id) {
+		this.id = id;
+	}
+
+	public Long getRootId() {
+		return rootId;
+	}
+
+	public void setRootId(Long rootId) {
+		this.rootId = rootId;
+	}
+
+	public Long getParentId() {
+		return parentId;
+	}
+
+	public void setParentId(Long parentId) {
+		this.parentId = parentId;
+	}
+
+	public Integer getLevel() {
+		return level;
+	}
+
+	public void setLevel(Integer level) {
+		this.level = level;
+	}
+
+	public String getName() {
+		return name;
+	}
+
+	public void setName(String name) {
+		this.name = name;
+	}
+
+	public Boolean getEnable() {
+		return enable;
+	}
+
+	public void setEnable(Boolean enable) {
+		this.enable = enable;
+	}
+
+}

+ 57 - 0
examcloud-commons-api/src/main/java/cn/com/qmth/examcloud/commons/api/request/SyncSpecialtyReq.java

@@ -0,0 +1,57 @@
+package cn.com.qmth.examcloud.commons.api.request;
+
+public class SyncSpecialtyReq extends SyncBaseRequest {
+
+	private static final long serialVersionUID = 1668418232494824050L;
+
+	private Long id;
+
+	private String code;
+
+	private String name;
+
+	private Long rootOrgId;
+
+	private Boolean enable;
+
+	public Long getId() {
+		return id;
+	}
+
+	public void setId(Long id) {
+		this.id = id;
+	}
+
+	public String getCode() {
+		return code;
+	}
+
+	public void setCode(String code) {
+		this.code = code;
+	}
+
+	public String getName() {
+		return name;
+	}
+
+	public void setName(String name) {
+		this.name = name;
+	}
+
+	public Long getRootOrgId() {
+		return rootOrgId;
+	}
+
+	public void setRootOrgId(Long rootOrgId) {
+		this.rootOrgId = rootOrgId;
+	}
+
+	public Boolean getEnable() {
+		return enable;
+	}
+
+	public void setEnable(Boolean enable) {
+		this.enable = enable;
+	}
+
+}

+ 163 - 0
examcloud-commons-api/src/main/java/cn/com/qmth/examcloud/commons/api/request/SyncStudentReq.java

@@ -0,0 +1,163 @@
+package cn.com.qmth.examcloud.commons.api.request;
+
+public class SyncStudentReq extends SyncBaseRequest {
+
+	private static final long serialVersionUID = -8613202479412809385L;
+
+	/**
+	 * 学生ID
+	 */
+	private Long id;
+
+	/**
+	 * 学生姓名
+	 */
+	private String name;
+
+	/**
+	 * 顶级机构ID
+	 */
+	private Long rootOrgId;
+
+	/**
+	 * 机构ID
+	 */
+	private Long orgId;
+
+	/**
+	 * 学习中心编码
+	 */
+	private String orgCode;
+
+	/**
+	 * 学习中心名称
+	 */
+	private String orgName;
+
+	/**
+	 * 学生code
+	 */
+	private String studentCode;
+
+	/**
+	 * 身份证号码
+	 */
+	private String identityNumber;
+
+	/**
+	 * 图片地址
+	 */
+	private String photoPath;
+
+	/**
+	 * 手机号码
+	 */
+	private String phoneNumber;
+
+	/**
+	 * 是否可用
+	 */
+	private Boolean enable;
+
+	/**
+	 * 安全手机号码(用于登录)
+	 */
+	private String securityPhone;
+
+	public Long getId() {
+		return id;
+	}
+
+	public void setId(Long id) {
+		this.id = id;
+	}
+
+	public String getName() {
+		return name;
+	}
+
+	public void setName(String name) {
+		this.name = name;
+	}
+
+	public Long getRootOrgId() {
+		return rootOrgId;
+	}
+
+	public void setRootOrgId(Long rootOrgId) {
+		this.rootOrgId = rootOrgId;
+	}
+
+	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 String getStudentCode() {
+		return studentCode;
+	}
+
+	public void setStudentCode(String studentCode) {
+		this.studentCode = studentCode;
+	}
+
+	public String getIdentityNumber() {
+		return identityNumber;
+	}
+
+	public void setIdentityNumber(String identityNumber) {
+		this.identityNumber = identityNumber;
+	}
+
+	public String getPhotoPath() {
+		return photoPath;
+	}
+
+	public void setPhotoPath(String photoPath) {
+		this.photoPath = photoPath;
+	}
+
+	public String getPhoneNumber() {
+		return phoneNumber;
+	}
+
+	public void setPhoneNumber(String phoneNumber) {
+		this.phoneNumber = phoneNumber;
+	}
+
+	public Boolean getEnable() {
+		return enable;
+	}
+
+	public void setEnable(Boolean enable) {
+		this.enable = enable;
+	}
+
+	public String getSecurityPhone() {
+		return securityPhone;
+	}
+
+	public void setSecurityPhone(String securityPhone) {
+		this.securityPhone = securityPhone;
+	}
+
+}

+ 9 - 0
examcloud-commons-api/src/main/java/cn/com/qmth/examcloud/commons/api/response/SyncCourseResp.java

@@ -0,0 +1,9 @@
+package cn.com.qmth.examcloud.commons.api.response;
+
+import cn.com.qmth.examcloud.commons.web.cloud.api.BaseResponse;
+
+public class SyncCourseResp extends BaseResponse {
+
+	private static final long serialVersionUID = 7936504812326252001L;
+
+}

+ 9 - 0
examcloud-commons-api/src/main/java/cn/com/qmth/examcloud/commons/api/response/SyncExamResp.java

@@ -0,0 +1,9 @@
+package cn.com.qmth.examcloud.commons.api.response;
+
+import cn.com.qmth.examcloud.commons.web.cloud.api.BaseResponse;
+
+public class SyncExamResp extends BaseResponse {
+
+	private static final long serialVersionUID = -2525511284759482508L;
+
+}

+ 9 - 0
examcloud-commons-api/src/main/java/cn/com/qmth/examcloud/commons/api/response/SyncExamStudentResp.java

@@ -0,0 +1,9 @@
+package cn.com.qmth.examcloud.commons.api.response;
+
+import cn.com.qmth.examcloud.commons.web.cloud.api.BaseResponse;
+
+public class SyncExamStudentResp extends BaseResponse {
+
+	private static final long serialVersionUID = -5737186324930608232L;
+
+}

+ 9 - 0
examcloud-commons-api/src/main/java/cn/com/qmth/examcloud/commons/api/response/SyncOrgResp.java

@@ -0,0 +1,9 @@
+package cn.com.qmth.examcloud.commons.api.response;
+
+import cn.com.qmth.examcloud.commons.web.cloud.api.BaseResponse;
+
+public class SyncOrgResp extends BaseResponse {
+
+	private static final long serialVersionUID = -805572917696214078L;
+
+}

+ 9 - 0
examcloud-commons-api/src/main/java/cn/com/qmth/examcloud/commons/api/response/SyncSpecialtyResp.java

@@ -0,0 +1,9 @@
+package cn.com.qmth.examcloud.commons.api.response;
+
+import cn.com.qmth.examcloud.commons.web.cloud.api.BaseResponse;
+
+public class SyncSpecialtyResp extends BaseResponse {
+
+	private static final long serialVersionUID = 3408737667742502112L;
+
+}

+ 9 - 0
examcloud-commons-api/src/main/java/cn/com/qmth/examcloud/commons/api/response/SyncStudentResp.java

@@ -0,0 +1,9 @@
+package cn.com.qmth.examcloud.commons.api.response;
+
+import cn.com.qmth.examcloud.commons.web.cloud.api.BaseResponse;
+
+public class SyncStudentResp extends BaseResponse {
+
+	private static final long serialVersionUID = -7642849789026746525L;
+
+}

+ 46 - 43
pom.xml

@@ -1,46 +1,49 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-    <modelVersion>4.0.0</modelVersion>
-    <parent>
-        <groupId>cn.com.qmth.examcloud</groupId>
-        <artifactId>examcloud-parent</artifactId>
-        <version>2.0-SNAPSHOT</version>
-    </parent>
-    <groupId>cn.com.qmth.examcloud.rmi</groupId>
-    <artifactId>examcloud-rmi</artifactId>
-    <packaging>pom</packaging>
-
-    <modules>
-        <module>examcloud-core-basic-api</module>
-        <module>examcloud-core-basic-api-client</module>
-
-        <module>examcloud-core-examwork-api</module>
-        <module>examcloud-core-examwork-api-client</module>
-
-        <module>examcloud-exchange-inner-api</module>
-        <module>examcloud-exchange-inner-api-client</module>
-
-        <module>examcloud-task-api</module>
-        <module>examcloud-task-api-client</module>
-
-        <module>examcloud-core-oe-admin-api</module>
-        <module>examcloud-core-oe-admin-client</module>
-
-        <module>examcloud-core-questions-api</module>
-        <module>examcloud-core-questions-api-client</module>
-        
-        <module>examcloud-core-oe-student-face-api</module>
-        <module>examcloud-core-oe-student-face-api-client</module>
-        
-        <module>examcloud-core-oe-student-api</module>
-        <module>examcloud-core-oe-student-api-client</module>
-        
-        <module>examcloud-core-oe-websocket-api</module>
-        <module>examcloud-core-oe-websocket-api-client</module>
-
-        <module>examcloud-core-marking-api</module>
-        <module>examcloud-core-marking-api-client</module>
-    </modules>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+	<modelVersion>4.0.0</modelVersion>
+	<parent>
+		<groupId>cn.com.qmth.examcloud</groupId>
+		<artifactId>examcloud-parent</artifactId>
+		<version>2.0-SNAPSHOT</version>
+	</parent>
+	<groupId>cn.com.qmth.examcloud.rmi</groupId>
+	<artifactId>examcloud-rmi</artifactId>
+	<packaging>pom</packaging>
+
+	<modules>
+		<module>examcloud-core-basic-api</module>
+		<module>examcloud-core-basic-api-client</module>
+
+		<module>examcloud-core-examwork-api</module>
+		<module>examcloud-core-examwork-api-client</module>
+
+		<module>examcloud-exchange-inner-api</module>
+		<module>examcloud-exchange-inner-api-client</module>
+
+		<module>examcloud-task-api</module>
+		<module>examcloud-task-api-client</module>
+
+		<module>examcloud-core-oe-admin-api</module>
+		<module>examcloud-core-oe-admin-client</module>
+
+		<module>examcloud-core-questions-api</module>
+		<module>examcloud-core-questions-api-client</module>
+
+		<module>examcloud-core-oe-student-face-api</module>
+		<module>examcloud-core-oe-student-face-api-client</module>
+
+		<module>examcloud-core-oe-student-api</module>
+		<module>examcloud-core-oe-student-api-client</module>
+
+		<module>examcloud-core-oe-websocket-api</module>
+		<module>examcloud-core-oe-websocket-api-client</module>
+
+		<module>examcloud-core-marking-api</module>
+		<module>examcloud-core-marking-api-client</module>
+
+		<module>examcloud-commons-api</module>
+		<module>examcloud-commons-api-client</module>
+
+	</modules>
 
 </project>