Эх сурвалжийг харах

StringUtils.isBlank(examName)修改为StringUtils.isNotBlank(examName)

chenken 6 жил өмнө
parent
commit
dd2f9be0f5

+ 1 - 1
examcloud-core-examwork-service/src/main/java/cn/com/qmth/examcloud/core/examwork/service/impl/ExamStudentServiceImpl.java

@@ -213,7 +213,7 @@ public class ExamStudentServiceImpl implements ExamStudentService {
 			if (null == exam) {
 				throw new StatusException("E-100020", "examId is wrong");
 			}
-		} else if (StringUtils.isBlank(examName)) {
+		} else if (StringUtils.isNotBlank(examName)) {
 			exam = examRepo.findByNameAndRootOrgId(examName, rootOrgId);
 			if (null == exam) {
 				throw new StatusException("E-100005", "考试不存在");