|
@@ -27,10 +27,10 @@ import cn.com.qmth.examcloud.core.basic.api.bean.CourseBean;
|
|
|
import cn.com.qmth.examcloud.core.basic.api.bean.OrgBean;
|
|
|
import cn.com.qmth.examcloud.core.basic.api.request.GetCourseReq;
|
|
|
import cn.com.qmth.examcloud.core.basic.api.request.GetOrgReq;
|
|
|
-import cn.com.qmth.examcloud.core.basic.api.request.InsertOrUpdateStudentReq;
|
|
|
+import cn.com.qmth.examcloud.core.basic.api.request.SaveStudentReq;
|
|
|
import cn.com.qmth.examcloud.core.basic.api.response.GetCourseResp;
|
|
|
import cn.com.qmth.examcloud.core.basic.api.response.GetOrgResp;
|
|
|
-import cn.com.qmth.examcloud.core.basic.api.response.InsertOrUpdateStudentResp;
|
|
|
+import cn.com.qmth.examcloud.core.basic.api.response.SaveStudentResp;
|
|
|
import cn.com.qmth.examcloud.examwork.api.ExamCloudService;
|
|
|
import cn.com.qmth.examcloud.examwork.api.ExamStudentCloudService;
|
|
|
import cn.com.qmth.examcloud.examwork.api.request.SaveExamStudentReq;
|
|
@@ -244,7 +244,7 @@ public class ExamStudentImportDataProcessingTask extends AbstractTask {
|
|
|
}
|
|
|
|
|
|
try {
|
|
|
- InsertOrUpdateStudentReq saveStudentReq = new InsertOrUpdateStudentReq();
|
|
|
+ SaveStudentReq saveStudentReq = new SaveStudentReq();
|
|
|
saveStudentReq.setIdentityNumber(entity.getIdentityNumber());
|
|
|
saveStudentReq.setName(entity.getName());
|
|
|
saveStudentReq.setPhoneNumber(entity.getPhone());
|
|
@@ -253,27 +253,28 @@ public class ExamStudentImportDataProcessingTask extends AbstractTask {
|
|
|
saveStudentReq.setRootOrgId(rootOrgId);
|
|
|
saveStudentReq.setStudentCode(entity.getStudentCode());
|
|
|
|
|
|
- InsertOrUpdateStudentResp insertOrUpdateStudentResp = studentCloudService
|
|
|
- .insertOrUpdateStudent(saveStudentReq);
|
|
|
+ SaveStudentResp saveStudentResp = studentCloudService.saveStudent(saveStudentReq);
|
|
|
|
|
|
- Long studentId = insertOrUpdateStudentResp.getStudentId();
|
|
|
+ Long studentId = saveStudentResp.getStudentId();
|
|
|
|
|
|
SaveExamStudentReq sReq = new SaveExamStudentReq();
|
|
|
- sReq.setCourseLevel(entity.getCourseLevel());
|
|
|
|
|
|
- sReq.setCourseLevel(entity.getCourseLevel());
|
|
|
+ sReq.setCourseId(entity.getCourseId());
|
|
|
sReq.setCourseCode(entity.getCourseCode());
|
|
|
- sReq.setCourseName(entity.getCourseName());
|
|
|
+
|
|
|
sReq.setExamId(entity.getExamId());
|
|
|
+ sReq.setRootOrgId(rootOrgId);
|
|
|
+
|
|
|
sReq.setStudentId(studentId);
|
|
|
sReq.setIdentityNumber(entity.getIdentityNumber());
|
|
|
- sReq.setPaperType(entity.getPaperType());
|
|
|
- sReq.setRootOrgId(rootOrgId);
|
|
|
- sReq.setStudentCode(entity.getStudentCode());
|
|
|
sReq.setStudentName(entity.getName());
|
|
|
+ sReq.setStudentCode(entity.getStudentCode());
|
|
|
+
|
|
|
sReq.setSpecialtyName(entity.getSpecialtyName());
|
|
|
+ sReq.setPaperType(entity.getPaperType());
|
|
|
sReq.setGrade(entity.getGrade());
|
|
|
sReq.setInfoCollector(entity.getInfoCollector());
|
|
|
+
|
|
|
examStudentCloudService.saveExamStudent(sReq);
|
|
|
|
|
|
entity.setStudentId(studentId);
|