WANG 6 anni fa
parent
commit
7c397d5834

+ 8 - 6
examcloud-core-basic-api/src/main/java/cn/com/qmth/examcloud/core/basic/api/bean/StudentBean.java

@@ -1,5 +1,7 @@
 package cn.com.qmth.examcloud.core.basic.api.bean;
 
+import java.util.List;
+
 import cn.com.qmth.examcloud.api.commons.exchange.JsonSerializable;
 
 public class StudentBean implements JsonSerializable {
@@ -37,9 +39,9 @@ public class StudentBean implements JsonSerializable {
 	private String orgName;
 
 	/**
-	 * 学生code
+	 * 学生code集合
 	 */
-	private String studentCode;
+	private List<String> studentCodeList;
 
 	/**
 	 * 身份证号码
@@ -114,12 +116,12 @@ public class StudentBean implements JsonSerializable {
 		this.orgName = orgName;
 	}
 
-	public String getStudentCode() {
-		return studentCode;
+	public List<String> getStudentCodeList() {
+		return studentCodeList;
 	}
 
-	public void setStudentCode(String studentCode) {
-		this.studentCode = studentCode;
+	public void setStudentCodeList(List<String> studentCodeList) {
+		this.studentCodeList = studentCodeList;
 	}
 
 	public String getIdentityNumber() {

+ 8 - 6
examcloud-core-basic-api/src/main/java/cn/com/qmth/examcloud/core/basic/api/request/SaveStudentReq.java

@@ -1,5 +1,7 @@
 package cn.com.qmth.examcloud.core.basic.api.request;
 
+import java.util.List;
+
 import cn.com.qmth.examcloud.api.commons.exchange.BaseRequest;
 
 public class SaveStudentReq extends BaseRequest {
@@ -32,9 +34,9 @@ public class SaveStudentReq extends BaseRequest {
 	private String orgName;
 
 	/**
-	 * 学生code
+	 * 学生code集合
 	 */
-	private String studentCode;
+	private List<String> studentCodeList;
 
 	/**
 	 * 身份证号码
@@ -96,12 +98,12 @@ public class SaveStudentReq extends BaseRequest {
 		this.orgName = orgName;
 	}
 
-	public String getStudentCode() {
-		return studentCode;
+	public List<String> getStudentCodeList() {
+		return studentCodeList;
 	}
 
-	public void setStudentCode(String studentCode) {
-		this.studentCode = studentCode;
+	public void setStudentCodeList(List<String> studentCodeList) {
+		this.studentCodeList = studentCodeList;
 	}
 
 	public String getIdentityNumber() {

+ 21 - 6
examcloud-global-api/src/main/java/cn/com/qmth/examcloud/global/api/request/SyncStudentReq.java

@@ -1,5 +1,7 @@
 package cn.com.qmth.examcloud.global.api.request;
 
+import java.util.List;
+
 public class SyncStudentReq extends SyncBaseRequest {
 
 	private static final long serialVersionUID = -8613202479412809385L;
@@ -35,9 +37,14 @@ public class SyncStudentReq extends SyncBaseRequest {
 	private String orgName;
 
 	/**
-	 * 学生code
+	 * 学生code集合
+	 */
+	private List<String> studentCodeList;
+
+	/**
+	 * 解绑的学号集合
 	 */
-	private String studentCode;
+	private List<String> unboundStudentCodeList;
 
 	/**
 	 * 身份证号码
@@ -112,12 +119,12 @@ public class SyncStudentReq extends SyncBaseRequest {
 		this.orgName = orgName;
 	}
 
-	public String getStudentCode() {
-		return studentCode;
+	public List<String> getStudentCodeList() {
+		return studentCodeList;
 	}
 
-	public void setStudentCode(String studentCode) {
-		this.studentCode = studentCode;
+	public void setStudentCodeList(List<String> studentCodeList) {
+		this.studentCodeList = studentCodeList;
 	}
 
 	public String getIdentityNumber() {
@@ -160,4 +167,12 @@ public class SyncStudentReq extends SyncBaseRequest {
 		this.securityPhone = securityPhone;
 	}
 
+	public List<String> getUnboundStudentCodeList() {
+		return unboundStudentCodeList;
+	}
+
+	public void setUnboundStudentCodeList(List<String> unboundStudentCodeList) {
+		this.unboundStudentCodeList = unboundStudentCodeList;
+	}
+
 }

+ 178 - 163
examcloud-task-api/src/main/java/cn/com/qmth/examcloud/task/api/request/SyncStudentReq.java

@@ -1,163 +1,178 @@
-package cn.com.qmth.examcloud.task.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;
-	}
-
-}
+package cn.com.qmth.examcloud.task.api.request;
+
+import java.util.List;
+
+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 List<String> studentCodeList;
+
+	/**
+	 * 解绑的学号集合
+	 */
+	private List<String> unboundStudentCodeList;
+
+	/**
+	 * 身份证号码
+	 */
+	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 List<String> getStudentCodeList() {
+		return studentCodeList;
+	}
+
+	public void setStudentCodeList(List<String> studentCodeList) {
+		this.studentCodeList = studentCodeList;
+	}
+
+	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;
+	}
+
+	public List<String> getUnboundStudentCodeList() {
+		return unboundStudentCodeList;
+	}
+
+	public void setUnboundStudentCodeList(List<String> unboundStudentCodeList) {
+		this.unboundStudentCodeList = unboundStudentCodeList;
+	}
+
+}