|
@@ -174,7 +174,7 @@ public class ExamRegistrationServiceImpl extends BaseServiceImpl<Long, ExamRegis
|
|
|
for (ExamRegistration examRegistration : dataList) {
|
|
|
examRegistration.setOrganization(new Organization(examRegistration.getOrganId(), organIdNameMap.get(examRegistration.getOrganId())));
|
|
|
examRegistration.getSubject().setName(subjectIdNameMap.get(examRegistration.getSubjectId()));
|
|
|
- examRegistration.getSysUser().setCertificatePhoto(idPhotoMap.get(examRegistration.getSubjectId()));
|
|
|
+ examRegistration.getSysUser().setCertificatePhoto(idPhotoMap.get(examRegistration.getStudentId()));
|
|
|
examRegistration.setExaminationBasic(new ExaminationBasic(examRegistration.getExaminationBasicId(), examIdNameMap.get(examRegistration.getExaminationBasicId())));
|
|
|
}
|
|
|
}
|
|
@@ -250,6 +250,25 @@ public class ExamRegistrationServiceImpl extends BaseServiceImpl<Long, ExamRegis
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
+ public void updateExamRegistration(ExamRegistration examRegistration) {
|
|
|
+ if(Objects.isNull(examRegistration.getId())){
|
|
|
+ throw new BizException("请指定学员报名信息");
|
|
|
+ }
|
|
|
+ ExamRegistration er = examRegistrationDao.get(examRegistration.getId().longValue());
|
|
|
+ if(Objects.isNull(er)) {
|
|
|
+ throw new BizException("学员报名信息不存在");
|
|
|
+ }
|
|
|
+ if(!StudentRegistrationStatusEnum.AUDIT_WAIT.equals(er.getStatus())){
|
|
|
+ throw new BizException("审核状态错误");
|
|
|
+ }
|
|
|
+ if(!StudentRegistrationStatusEnum.AUDIT_PASS.equals(examRegistration.getStatus())
|
|
|
+ &&!StudentRegistrationStatusEnum.AUDIT_REJECT.equals(examRegistration.getStatus())){
|
|
|
+ throw new BizException("审核状态错误");
|
|
|
+ }
|
|
|
+ examRegistrationDao.update(examRegistration);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
public ExamRegistrationDto getExamRegistration(Long examRegistrationId) {
|
|
|
return examRegistrationDao.getExamRegistration(examRegistrationId);
|
|
|
}
|