Commit 1fe1fc8b authored by wujipeng's avatar wujipeng
Browse files

创建考试-优化

parent db5c29c1
...@@ -407,12 +407,12 @@ public class ExamAdminServiceImpl implements ExamAdminService { ...@@ -407,12 +407,12 @@ public class ExamAdminServiceImpl implements ExamAdminService {
if (managedClass.getStartDate() == null || managedClass.getEndDate() == null) { if (managedClass.getStartDate() == null || managedClass.getEndDate() == null) {
throw new BusinessException("班级培训日期尚未配置,无法安排考试"); throw new BusinessException("班级培训日期尚未配置,无法安排考试");
} }
LocalDate examDate = toBusinessDate(examTime); // LocalDate examDate = toBusinessDate(examTime);
LocalDate classStart = toBusinessDate(managedClass.getStartDate()); // LocalDate classStart = toBusinessDate(managedClass.getStartDate());
LocalDate classEnd = toBusinessDate(managedClass.getEndDate()); // LocalDate classEnd = toBusinessDate(managedClass.getEndDate());
if (examDate.isBefore(classStart) || examDate.isAfter(classEnd)) { // if (examDate.isBefore(classStart) || examDate.isAfter(classEnd)) {
throw new BusinessException("考试日期必须位于班级培训起止日期内"); // throw new BusinessException("考试日期必须位于班级培训起止日期内");
} // }
return examTime; return examTime;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment