Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
邬吉朋
practical_train
Commits
1fe1fc8b
"src/git@gitlab.ruzhoukj.com:wujipeng/relation.git" did not exist on "cc8b1308451b6b379704778351c5677f7933733b"
Commit
1fe1fc8b
authored
Aug 27, 2026
by
wujipeng
Browse files
创建考试-优化
parent
db5c29c1
Changes
1
Show whitespace changes
Inline
Side-by-side
practical-business/src/main/java/com/platform/business/service/impl/ExamAdminServiceImpl.java
View file @
1fe1fc8b
...
@@ -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
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment