fix(缺陷管理): 无全选勾选数据报错提示问题

This commit is contained in:
song-cc-rock 2024-11-29 15:43:23 +08:00 committed by Craftsman
parent 6d9a581da6
commit 5c204dcda1
1 changed files with 2 additions and 2 deletions

View File

@ -1841,14 +1841,14 @@ public class BugService {
ids.removeIf(id -> request.getExcludeIds().contains(id));
}
if (CollectionUtils.isEmpty(ids)) {
throw new MSException(Translator.get("no_bug_select"));
return new ArrayList<>();
}
//返回去重后的id
return new ArrayList<>(ids.stream().distinct().toList());
} else {
// 部分勾选
if (CollectionUtils.isEmpty(request.getSelectIds())) {
throw new MSException(Translator.get("no_bug_select"));
return new ArrayList<>();
}
return request.getSelectIds();
}