|
@@ -10,6 +10,7 @@ import com.keao.edu.user.dao.*;
|
|
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.StudentExamResult;
|
|
import com.keao.edu.user.entity.Subject;
|
|
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.StudentService;
|
|
import com.keao.edu.user.service.StudentService;
|
|
@@ -35,6 +36,8 @@ public class ExamCertificationServiceImpl extends BaseServiceImpl<Long, ExamCert
|
|
@Autowired
|
|
@Autowired
|
|
private StudentService studentService;
|
|
private StudentService studentService;
|
|
@Autowired
|
|
@Autowired
|
|
|
|
+ private StudentExamResultDao studentExamResultDao;
|
|
|
|
+ @Autowired
|
|
private SysConfigDao sysConfigDao;
|
|
private SysConfigDao sysConfigDao;
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@@ -73,7 +76,7 @@ public class ExamCertificationServiceImpl extends BaseServiceImpl<Long, ExamCert
|
|
//等待学员数
|
|
//等待学员数
|
|
String signInTime = needCheckingDetailDto.getSignInTime();
|
|
String signInTime = needCheckingDetailDto.getSignInTime();
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
- Integer waitNum = examRoomStudentRelationDao.sumWaitNum(examRegistrationId,signInTime,sysUser.getId());
|
|
|
|
|
|
+ Integer waitNum = examRoomStudentRelationDao.sumWaitNum(needCheckingDetailDto.getExamRoomId(),signInTime,sysUser.getId());
|
|
needCheckingDetailDto.setWaitNum(waitNum);
|
|
needCheckingDetailDto.setWaitNum(waitNum);
|
|
needCheckingDetailDto.setDesc(sysConfigDao.findConfigValue("exam_room_desc"));
|
|
needCheckingDetailDto.setDesc(sysConfigDao.findConfigValue("exam_room_desc"));
|
|
return needCheckingDetailDto;
|
|
return needCheckingDetailDto;
|
|
@@ -88,6 +91,8 @@ public class ExamCertificationServiceImpl extends BaseServiceImpl<Long, ExamCert
|
|
examCertificationDto.setRealName(student.getRealName());
|
|
examCertificationDto.setRealName(student.getRealName());
|
|
examCertificationDto.setGender(student.getGender());
|
|
examCertificationDto.setGender(student.getGender());
|
|
examCertificationDto.setCertificatePhoto(student.getCertificatePhoto());
|
|
examCertificationDto.setCertificatePhoto(student.getCertificatePhoto());
|
|
|
|
+ StudentExamResult studentExamResult = studentExamResultDao.findByRegistrationId(examRegistrationId);
|
|
|
|
+ examCertificationDto.setConfirmStatus(studentExamResult.getConfirmStatus());
|
|
return examCertificationDto;
|
|
return examCertificationDto;
|
|
}
|
|
}
|
|
|
|
|