|
@@ -8,11 +8,12 @@ import com.keao.edu.common.service.impl.BaseServiceImpl;
|
|
import com.keao.edu.user.api.entity.Student;
|
|
import com.keao.edu.user.api.entity.Student;
|
|
import com.keao.edu.user.dao.ExamCertificationDao;
|
|
import com.keao.edu.user.dao.ExamCertificationDao;
|
|
import com.keao.edu.user.dao.ExamRoomStudentRelationDao;
|
|
import com.keao.edu.user.dao.ExamRoomStudentRelationDao;
|
|
|
|
+import com.keao.edu.user.dao.SubjectDao;
|
|
import com.keao.edu.user.dto.ExamCertificationDto;
|
|
import com.keao.edu.user.dto.ExamCertificationDto;
|
|
import com.keao.edu.user.dto.NeedCheckingDetailDto;
|
|
import com.keao.edu.user.dto.NeedCheckingDetailDto;
|
|
import com.keao.edu.user.entity.ExamCertification;
|
|
import com.keao.edu.user.entity.ExamCertification;
|
|
|
|
+import com.keao.edu.user.entity.Subject;
|
|
import com.keao.edu.user.service.ExamCertificationService;
|
|
import com.keao.edu.user.service.ExamCertificationService;
|
|
-import com.keao.edu.user.service.ExamRoomStudentRelationService;
|
|
|
|
import com.keao.edu.user.service.StudentService;
|
|
import com.keao.edu.user.service.StudentService;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
@@ -29,6 +30,8 @@ public class ExamCertificationServiceImpl extends BaseServiceImpl<Long, ExamCert
|
|
@Autowired
|
|
@Autowired
|
|
private ExamRoomStudentRelationDao examRoomStudentRelationDao;
|
|
private ExamRoomStudentRelationDao examRoomStudentRelationDao;
|
|
@Autowired
|
|
@Autowired
|
|
|
|
+ private SubjectDao subjectDao;
|
|
|
|
+ @Autowired
|
|
private SysUserFeignService sysUserFeignService;
|
|
private SysUserFeignService sysUserFeignService;
|
|
@Autowired
|
|
@Autowired
|
|
private StudentService studentService;
|
|
private StudentService studentService;
|
|
@@ -39,8 +42,8 @@ public class ExamCertificationServiceImpl extends BaseServiceImpl<Long, ExamCert
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- public ExamCertification findByStuAndBasicId(Integer studentId, Integer basicId) {
|
|
|
|
- return examCertificationDao.findByStuAndBasicId(studentId,basicId);
|
|
|
|
|
|
+ public ExamCertification findByStuAndBasicId(Integer studentId, Long examRegistrationId) {
|
|
|
|
+ return examCertificationDao.findByStuAndBasicId(studentId,examRegistrationId);
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@@ -72,4 +75,16 @@ public class ExamCertificationServiceImpl extends BaseServiceImpl<Long, ExamCert
|
|
needCheckingDetailDto.setWaitNum(waitNum);
|
|
needCheckingDetailDto.setWaitNum(waitNum);
|
|
return needCheckingDetailDto;
|
|
return needCheckingDetailDto;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public ExamCertificationDto findDetailByStudentId(Integer studentId, Long examRegistrationId) {
|
|
|
|
+ ExamCertificationDto examCertificationDto = examCertificationDao.getExamCertificationDto(examRegistrationId);
|
|
|
|
+ Subject subject = subjectDao.get(examCertificationDto.getSubjectId());
|
|
|
|
+ examCertificationDto.setSubjectName(subject.getName());
|
|
|
|
+ Student student = studentService.getStudent(studentId);
|
|
|
|
+ examCertificationDto.setRealName(student.getRealName());
|
|
|
|
+ examCertificationDto.setGender(student.getGender());
|
|
|
|
+ examCertificationDto.setCertificatePhoto(student.getCertificatePhoto());
|
|
|
|
+ return examCertificationDto;
|
|
|
|
+ }
|
|
}
|
|
}
|