WANG vor 6 Jahren
Ursprung
Commit
d97ed521c1

+ 6 - 0
examcloud-core-examwork-api-provider/src/main/java/cn/com/qmth/examcloud/core/examwork/api/provider/ExamStudentCloudServiceProvider.java

@@ -122,6 +122,12 @@ public class ExamStudentCloudServiceProvider extends ControllerSupport implement
 		info.setExamSite(req.getExamSite());
 		info.setSpecialtyName(req.getSpecialtyName());
 		info.setRemark(req.getRemark());
+		
+		info.setExt1(req.getExt1());
+		info.setExt2(req.getExt2());
+		info.setExt3(req.getExt3());
+		info.setExt4(req.getExt4());
+		info.setExt5(req.getExt5());
 
 		ExamStudentInfo saved = examStudentService.saveExamStudent(info);
 

+ 65 - 0
examcloud-core-examwork-dao/src/main/java/cn/com/qmth/examcloud/core/examwork/dao/entity/ExamStudentEntity.java

@@ -129,6 +129,31 @@ public class ExamStudentEntity extends JpaEntity {
 	@Column(nullable = false)
 	private Boolean enable;
 
+	/**
+	 * 扩展属性1
+	 */
+	private String ext1;
+
+	/**
+	 * 扩展属性2
+	 */
+	private String ext2;
+
+	/**
+	 * 扩展属性3
+	 */
+	private String ext3;
+
+	/**
+	 * 扩展属性4
+	 */
+	private String ext4;
+
+	/**
+	 * 扩展属性5
+	 */
+	private String ext5;
+
 	public Long getId() {
 		return id;
 	}
@@ -289,4 +314,44 @@ public class ExamStudentEntity extends JpaEntity {
 		this.orgCode = orgCode;
 	}
 
+	public String getExt1() {
+		return ext1;
+	}
+
+	public void setExt1(String ext1) {
+		this.ext1 = ext1;
+	}
+
+	public String getExt2() {
+		return ext2;
+	}
+
+	public void setExt2(String ext2) {
+		this.ext2 = ext2;
+	}
+
+	public String getExt3() {
+		return ext3;
+	}
+
+	public void setExt3(String ext3) {
+		this.ext3 = ext3;
+	}
+
+	public String getExt4() {
+		return ext4;
+	}
+
+	public void setExt4(String ext4) {
+		this.ext4 = ext4;
+	}
+
+	public String getExt5() {
+		return ext5;
+	}
+
+	public void setExt5(String ext5) {
+		this.ext5 = ext5;
+	}
+
 }

+ 68 - 0
examcloud-core-examwork-service/src/main/java/cn/com/qmth/examcloud/core/examwork/service/bean/ExamStudentInfo.java

@@ -106,8 +106,36 @@ public class ExamStudentInfo {
 	 */
 	private String grade;
 
+	/**
+	 * 备注
+	 */
 	private String remark;
 
+	/**
+	 * 扩展属性1
+	 */
+	private String ext1;
+
+	/**
+	 * 扩展属性2
+	 */
+	private String ext2;
+
+	/**
+	 * 扩展属性3
+	 */
+	private String ext3;
+
+	/**
+	 * 扩展属性4
+	 */
+	private String ext4;
+
+	/**
+	 * 扩展属性5
+	 */
+	private String ext5;
+
 	public Long getId() {
 		return id;
 	}
@@ -276,4 +304,44 @@ public class ExamStudentInfo {
 		this.orgCode = orgCode;
 	}
 
+	public String getExt1() {
+		return ext1;
+	}
+
+	public void setExt1(String ext1) {
+		this.ext1 = ext1;
+	}
+
+	public String getExt2() {
+		return ext2;
+	}
+
+	public void setExt2(String ext2) {
+		this.ext2 = ext2;
+	}
+
+	public String getExt3() {
+		return ext3;
+	}
+
+	public void setExt3(String ext3) {
+		this.ext3 = ext3;
+	}
+
+	public String getExt4() {
+		return ext4;
+	}
+
+	public void setExt4(String ext4) {
+		this.ext4 = ext4;
+	}
+
+	public String getExt5() {
+		return ext5;
+	}
+
+	public void setExt5(String ext5) {
+		this.ext5 = ext5;
+	}
+
 }

+ 6 - 0
examcloud-core-examwork-service/src/main/java/cn/com/qmth/examcloud/core/examwork/service/impl/ExamStudentServiceImpl.java

@@ -291,6 +291,12 @@ public class ExamStudentServiceImpl implements ExamStudentService {
 		examStudent.setSpecialtyName(examStudentInfo.getSpecialtyName());
 		examStudent.setExamSite(examStudentInfo.getExamSite());
 		examStudent.setRemark(examStudentInfo.getRemark());
+		
+		examStudent.setExt1(examStudentInfo.getExt1());
+		examStudent.setExt2(examStudentInfo.getExt2());
+		examStudent.setExt3(examStudentInfo.getExt3());
+		examStudent.setExt4(examStudentInfo.getExt4());
+		examStudent.setExt5(examStudentInfo.getExt5());
 
 		ExamStudentEntity saved = examStudentRepo.save(examStudent);