|
@@ -132,7 +132,7 @@ public class ExamServiceImpl implements ExamService {
|
|
|
|
|
|
ExamEntity tempExam = examRepo.findByNameAndRootOrgId(examInfo.getName(),
|
|
|
examInfo.getRootOrgId());
|
|
|
- if (null != tempExam && tempExam.getId().equals(examInfo.getId())) {
|
|
|
+ if (null != tempExam && !tempExam.getId().equals(examInfo.getId())) {
|
|
|
throw new StatusException("E-002005", "考试名称已存在");
|
|
|
}
|
|
|
|