This commit is contained in:
wuchunlei
2024-10-15 15:34:22 +08:00
parent 9e6d45a1a6
commit e883ceaba2

View File

@@ -255,9 +255,13 @@ public class ClassExamController {
.eq(ClassExamUser::getUserId,ShiroUtils.getUId())
.eq(ClassExamUser::getRelationId,params.get("courseId"))
.orderByDesc(ClassExamUser::getId));
if (ZKExamUserList.size() == 0){
return R.ok().put("nextZKTime",null).put("nextLongTime",null);
}else {
Date nextTime = DateUtils.addDateDays(ZKExamUserList.get(0).getStartTime(),183);
return R.ok().put("nextZKTime",nextTime).put("nextLongTime",nextTime.getTime());
}
}
//试卷详情
@RequestMapping("/getExamPaperInfo")