xiaofei 1 жил өмнө
parent
commit
b6e006fb35

+ 3 - 1
distributed-print-business/src/main/java/com/qmth/distributed/print/business/service/impl/ExamTaskServiceImpl.java

@@ -1492,7 +1492,9 @@ public class ExamTaskServiceImpl extends ServiceImpl<ExamTaskMapper, ExamTask> i
                         for (Map.Entry<String, List<String>> entry : finalMap.entrySet()) {
                             stringJoiner.add("考试对象[" + String.join(",", entry.getValue()) + "]已被" + entry.getKey() + "选择");
                         }
-                        throw ExceptionResultEnum.ERROR.exception(stringJoiner.toString());
+                        if (StringUtils.isNotBlank(stringJoiner.toString())) {
+                            throw ExceptionResultEnum.ERROR.exception(stringJoiner.toString());
+                        }
                     }
                 }
             }