|
@@ -197,6 +197,11 @@ public class StageControlService {
|
|
|
if (Objects.nonNull(scoreConfig) && Objects.nonNull(scoreConfig.getExclude()) && scoreConfig.getExclude().size() > 0) {
|
|
|
List<String> configLevelList = scoreConfig.getExclude();
|
|
|
configLevelList = configLevelList.stream().map(string -> string.trim().toUpperCase()).collect(Collectors.toList());
|
|
|
+ long levelCount = levelRepo.countByCodeIn(configLevelList);
|
|
|
+ if (levelCount == 0) {
|
|
|
+ statusMap.put(markSubject.getId(), false);
|
|
|
+ throw new RuntimeException("配置的档位:" + configLevelList + "不存在");
|
|
|
+ }
|
|
|
List<Level> levels = levelRepo.findByCodeNotIn(configLevelList);
|
|
|
List<String> levelList = levels.stream().map(Level::getCode).collect(Collectors.toList());
|
|
|
Collections.sort(levelList);
|