|
|
@ -54,7 +54,7 @@ public class GenerativeTaskConfigStrategy implements TaskConfigStrategy { |
|
|
throw new BusinessErrorException("考试任务名称已存在"); |
|
|
throw new BusinessErrorException("考试任务名称已存在"); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
if (StrUtil.length(dto.getName()) > 10) { |
|
|
if (StrUtil.length(dto.getName()) > 20) { |
|
|
throw new BusinessErrorException("考试任务名称过长"); |
|
|
throw new BusinessErrorException("考试任务名称过长"); |
|
|
} |
|
|
} |
|
|
if (Objects.isNull(dto.getStartTime())) { |
|
|
if (Objects.isNull(dto.getStartTime())) { |
|
|
|