|  | @@ -4,6 +4,7 @@ package com.keao.edu.user.service.impl;
 | 
	
		
			
				|  |  |  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.exception.BizException;
 | 
	
		
			
				|  |  |  import com.keao.edu.common.service.impl.BaseServiceImpl;
 | 
	
		
			
				|  |  |  import com.keao.edu.user.api.entity.Student;
 | 
	
		
			
				|  |  |  import com.keao.edu.user.dao.*;
 | 
	
	
		
			
				|  | @@ -16,10 +17,12 @@ import com.keao.edu.user.entity.Subject;
 | 
	
		
			
				|  |  |  import com.keao.edu.user.service.ExamCertificationService;
 | 
	
		
			
				|  |  |  import com.keao.edu.user.service.StudentService;
 | 
	
		
			
				|  |  |  import com.keao.edu.user.service.SysConfigService;
 | 
	
		
			
				|  |  | +import com.keao.edu.util.date.DateUtil;
 | 
	
		
			
				|  |  |  import org.springframework.beans.factory.annotation.Autowired;
 | 
	
		
			
				|  |  |  import org.springframework.stereotype.Service;
 | 
	
		
			
				|  |  |  import org.springframework.transaction.annotation.Transactional;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +import java.util.Date;
 | 
	
		
			
				|  |  |  import java.util.List;
 | 
	
		
			
				|  |  |  import java.util.Map;
 | 
	
		
			
				|  |  |  import java.util.stream.Collectors;
 | 
	
	
		
			
				|  | @@ -86,6 +89,14 @@ public class ExamCertificationServiceImpl extends BaseServiceImpl<Long, ExamCert
 | 
	
		
			
				|  |  |  		ExamRegistration examRegistration = examRegistrationDao.get(examRegistrationId);
 | 
	
		
			
				|  |  |  		needCheckingDetailDto.setSubjectName(subjectDao.get(examRegistration.getSubjectId()).getName());
 | 
	
		
			
				|  |  |  		needCheckingDetailDto.setLevel(examRegistration.getLevel());
 | 
	
		
			
				|  |  | +		if(needCheckingDetailDto.getFinishedExam() == 4 && needCheckingDetailDto.getRecordStartTime() != null){
 | 
	
		
			
				|  |  | +			int recordMinutes = Integer.parseInt(sysConfigService.findConfigValue("record_minutes",needCheckingDetailDto.getTenantId()));
 | 
	
		
			
				|  |  | +			Date date = DateUtil.addMinutes(needCheckingDetailDto.getRecordStartTime(),recordMinutes);
 | 
	
		
			
				|  |  | +			int secondsBetween = DateUtil.secondsBetween(new Date(),date);
 | 
	
		
			
				|  |  | +			if(secondsBetween <= 0){
 | 
	
		
			
				|  |  | +				needCheckingDetailDto.setRecordFlag(0);
 | 
	
		
			
				|  |  | +			}
 | 
	
		
			
				|  |  | +		}
 | 
	
		
			
				|  |  |  		return needCheckingDetailDto;
 | 
	
		
			
				|  |  |  	}
 | 
	
		
			
				|  |  |  
 |