|
@@ -115,6 +115,8 @@ public class ExamServiceImpl implements ExamService {
|
|
if (!exam.getId().equals(examInfo.getId())) {
|
|
if (!exam.getId().equals(examInfo.getId())) {
|
|
throw new StatusException("E-001001", "考试名称已存在");
|
|
throw new StatusException("E-001001", "考试名称已存在");
|
|
}
|
|
}
|
|
|
|
+ } else {
|
|
|
|
+ exam = new ExamEntity();
|
|
}
|
|
}
|
|
|
|
|
|
exam.setBeginTime(examInfo.getBeginTime());
|
|
exam.setBeginTime(examInfo.getBeginTime());
|