|
@@ -34,8 +34,10 @@ import cn.com.qmth.examcloud.core.examwork.service.impl.ExamStudentServiceImpl;
|
|
|
import cn.com.qmth.examcloud.examwork.api.ExamStudentCloudService;
|
|
|
import cn.com.qmth.examcloud.examwork.api.bean.ExamStudentBean;
|
|
|
import cn.com.qmth.examcloud.examwork.api.request.CopyExamStudentsReq;
|
|
|
+import cn.com.qmth.examcloud.examwork.api.request.GetExamStudentReq;
|
|
|
import cn.com.qmth.examcloud.examwork.api.request.SaveExamStudentReq;
|
|
|
import cn.com.qmth.examcloud.examwork.api.response.CopyExamStudentsResp;
|
|
|
+import cn.com.qmth.examcloud.examwork.api.response.GetExamStudentResp;
|
|
|
import cn.com.qmth.examcloud.examwork.api.response.SaveExamStudentResp;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
|
@@ -217,4 +219,34 @@ public class ExamStudentCloudServiceProvider extends ControllerSupport
|
|
|
return resp;
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value = "获取考生")
|
|
|
+ @PostMapping("getExamStudent")
|
|
|
+ @Override
|
|
|
+ public GetExamStudentResp getExamStudent(@RequestBody GetExamStudentReq req) {
|
|
|
+ Long examStudentId = req.getExamStudentId();
|
|
|
+
|
|
|
+ ExamStudentEntity saved = examStudentRepo.findOne(examStudentId);
|
|
|
+
|
|
|
+ ExamStudentBean examStudentBean = new ExamStudentBean();
|
|
|
+ examStudentBean.setId(saved.getId());
|
|
|
+ examStudentBean.setCourseCode(saved.getCourseCode());
|
|
|
+ examStudentBean.setCourseLevel(saved.getCourseLevel());
|
|
|
+ examStudentBean.setCourseName(saved.getCourseName());
|
|
|
+ examStudentBean.setExamId(saved.getExamId());
|
|
|
+ examStudentBean.setIdentityNumber(saved.getIdentityNumber());
|
|
|
+ examStudentBean.setStudentCode(saved.getStudentCode());
|
|
|
+ examStudentBean.setPaperType(saved.getPaperType());
|
|
|
+ examStudentBean.setRootOrgId(saved.getRootOrgId());
|
|
|
+ examStudentBean.setGrade(saved.getGrade());
|
|
|
+ examStudentBean.setCourseId(saved.getCourseId());
|
|
|
+ examStudentBean.setInfoCollector(saved.getInfoCollector());
|
|
|
+ examStudentBean.setExamSite(saved.getExamSite());
|
|
|
+ examStudentBean.setOrgId(saved.getOrgId());
|
|
|
+ examStudentBean.setOrgCode(saved.getOrgCode());
|
|
|
+
|
|
|
+ GetExamStudentResp resp = new GetExamStudentResp();
|
|
|
+ resp.setExamStudentBean(examStudentBean);
|
|
|
+ return resp;
|
|
|
+ }
|
|
|
+
|
|
|
}
|