From e606f28c1c568305fcc9008a9fb416eb37d0e2a1 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Wed, 18 May 2022 18:14:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BB=A3=E7=A0=81=E8=A7=84=E8=8C=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/main/java/io/metersphere/service/GroupService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/main/java/io/metersphere/service/GroupService.java b/backend/src/main/java/io/metersphere/service/GroupService.java index 4277981163..cdf168ccaa 100644 --- a/backend/src/main/java/io/metersphere/service/GroupService.java +++ b/backend/src/main/java/io/metersphere/service/GroupService.java @@ -86,7 +86,7 @@ public class GroupService { public void buildUserInfo(List testCases) { List userIds = new ArrayList(); userIds.addAll(testCases.stream().map(GroupDTO::getCreator).collect(Collectors.toList())); - if (!org.apache.commons.collections.CollectionUtils.isEmpty(userIds)) { + if (!userIds.isEmpty()) { Map userMap = ServiceUtils.getUserNameMap(userIds); testCases.forEach(caseResult -> { caseResult.setCreator(userMap.get(caseResult.getCreator()));