wangwei il y a 7 ans
Parent
commit
030982f56e

+ 3 - 0
examcloud-core-examwork-api-provider/src/main/java/cn/com/qmth/examcloud/core/examwork/api/controller/ExamStudentController.java

@@ -266,6 +266,7 @@ public class ExamStudentController extends ControllerSupport {
 			@RequestBody ExamStudentDomain examStudent) {
 		Long rootOrgId = getRootOrgId();
 		examStudent.setRootOrgId(rootOrgId);
+		examStudent.setInfoCollector(getAccessUser().getDisplayName());
 		return saveExamStudent(examStudent);
 	}
 
@@ -281,6 +282,7 @@ public class ExamStudentController extends ControllerSupport {
 	public ExamStudentDomain updateExamStudent(@RequestBody ExamStudentDomain examStudent) {
 		Long rootOrgId = getRootOrgId();
 		examStudent.setRootOrgId(rootOrgId);
+		examStudent.setInfoCollector(getAccessUser().getDisplayName());
 		return saveExamStudent(examStudent);
 	}
 
@@ -319,6 +321,7 @@ public class ExamStudentController extends ControllerSupport {
 		saveExamStudentReq.setStudentCode(examStudent.getStudentCode());
 		saveExamStudentReq.setStudentName(examStudent.getStudentName());
 		saveExamStudentReq.setStudentId(studentId);
+		saveExamStudentReq.setInfoCollector(examStudent.getInfoCollector());
 
 		SaveExamStudentResp saveExamStudentResp = examStudentCloudService
 				.saveExamStudent(saveExamStudentReq);

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

@@ -165,6 +165,7 @@ public class ExamStudentCloudServiceProvider extends ControllerSupport
 		examStudent.setOrgName(studentInfo.getOrgName());
 		examStudent.setOrgCode(studentInfo.getOrgCode());
 		examStudent.setPhone(studentInfo.getPhoneNumber());
+		examStudent.setInfoCollector(req.getInfoCollector());
 		ExamStudent saved = examStudentRepo.save(examStudent);
 
 		SaveExamStudentResp resp = new SaveExamStudentResp();

+ 13 - 0
examcloud-core-examwork-api/src/main/java/cn/com/qmth/examcloud/examwork/api/request/SaveExamStudentReq.java

@@ -58,6 +58,11 @@ public class SaveExamStudentReq extends BaseRequest {
 	 */
 	private String paperType;
 
+	/**
+	 * 信息采集人
+	 */
+	private String infoCollector;
+
 	public Long getRootOrgId() {
 		return rootOrgId;
 	}
@@ -146,4 +151,12 @@ public class SaveExamStudentReq extends BaseRequest {
 		this.studentId = studentId;
 	}
 
+	public String getInfoCollector() {
+		return infoCollector;
+	}
+
+	public void setInfoCollector(String infoCollector) {
+		this.infoCollector = infoCollector;
+	}
+
 }