|
@@ -5,6 +5,7 @@ import com.keao.edu.auth.api.client.SysUserFeignService;
|
|
|
import com.keao.edu.auth.api.entity.SysUser;
|
|
|
import com.keao.edu.common.dal.BaseDAO;
|
|
|
import com.keao.edu.common.service.impl.BaseServiceImpl;
|
|
|
+import com.keao.edu.user.api.entity.ExamRoomStudentRelation;
|
|
|
import com.keao.edu.user.api.entity.Student;
|
|
|
import com.keao.edu.user.dao.*;
|
|
|
import com.keao.edu.user.dto.BasicNeedCheckingDetailDto;
|
|
@@ -122,6 +123,13 @@ public class ExamCertificationServiceImpl extends BaseServiceImpl<Long, ExamCert
|
|
|
examCertificationDto.setCertificatePhoto(student.getCertificatePhoto());
|
|
|
StudentExamResult studentExamResult = studentExamResultDao.findByRegistrationId(examRegistrationId);
|
|
|
examCertificationDto.setConfirmStatus(studentExamResult.getConfirmStatus());
|
|
|
+ if(studentExamResult.getIsFinishedExam() == 1){
|
|
|
+ ExamRoomStudentRelation studentExamRoom = examRoomStudentRelationDao.getStudentExamRoom(examRegistrationId);
|
|
|
+ if(studentExamRoom.getCallTime() != null){
|
|
|
+ examCertificationDto.setCallTime(DateUtil.secondsBetween(studentExamRoom.getCallTime(),new Date()));
|
|
|
+ DateUtil.secondsBetween(studentExamRoom.getCallTime(),new Date());
|
|
|
+ }
|
|
|
+ }
|
|
|
return examCertificationDto;
|
|
|
}
|
|
|
|