Browse Source

bug修复

master
luoweijian 2 months ago
parent
commit
36c147d3fd
  1. 2
      src/main/java/com/project/task/domain/service/strategy/ClassicTaskConfigStrategy.java
  2. 2
      src/main/java/com/project/task/domain/service/strategy/GenerativeTaskConfigStrategy.java

2
src/main/java/com/project/task/domain/service/strategy/ClassicTaskConfigStrategy.java

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

2
src/main/java/com/project/task/domain/service/strategy/GenerativeTaskConfigStrategy.java

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

Loading…
Cancel
Save