|
|
|
@ -117,6 +117,16 @@ public class CompetitionExamBiz {
|
|
|
|
|
if(task.getExamDuration() == null){
|
|
|
|
|
return Result.error("试卷设置错误");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
long currentTime = System.currentTimeMillis();
|
|
|
|
|
if(currentTime<task.getExamStartTime().getTime()){
|
|
|
|
|
return Result.error("考试未开始");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(currentTime>task.getExamEndTime().getTime()){
|
|
|
|
|
return Result.error("考试已结束");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(member.getExamStartTime()!=null){
|
|
|
|
|
ExamDTO dto = new ExamDTO();
|
|
|
|
|
dto.setStartTime(member.getExamStartTime());
|
|
|
|
|