xiatian 9 месяцев назад
Родитель
Сommit
d26fbb583f

+ 1 - 1
src/main/java/cn/com/qmth/scancentral/service/impl/MarkSiteServiceImpl.java

@@ -48,7 +48,7 @@ public class MarkSiteServiceImpl extends ServiceImpl<MarkSiteDao, MarkSiteEntity
         MarkSiteEntity old = findByExamSubjectPaperType(domain.getExamId(), domain.getSubjectCode(),
                 domain.getPaperType());
         if ((domain.getId() == null && old != null)
-                || (domain.getId() != null && !domain.getId().equals(old.getId()))) {
+                || (domain.getId() != null && old != null && !domain.getId().equals(old.getId()))) {
             throw new ParameterException("评卷点信息已存在");
         }
         if (domain.getId() != null) {