fix: 代码规范

This commit is contained in:
chenjianxing 2022-05-18 18:14:53 +08:00 committed by f2c-ci-robot[bot]
parent 7b853bd3a1
commit e606f28c1c
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ public class GroupService {
public void buildUserInfo(List<GroupDTO> testCases) { public void buildUserInfo(List<GroupDTO> testCases) {
List<String> userIds = new ArrayList(); List<String> userIds = new ArrayList();
userIds.addAll(testCases.stream().map(GroupDTO::getCreator).collect(Collectors.toList())); userIds.addAll(testCases.stream().map(GroupDTO::getCreator).collect(Collectors.toList()));
if (!org.apache.commons.collections.CollectionUtils.isEmpty(userIds)) { if (!userIds.isEmpty()) {
Map<String, String> userMap = ServiceUtils.getUserNameMap(userIds); Map<String, String> userMap = ServiceUtils.getUserNameMap(userIds);
testCases.forEach(caseResult -> { testCases.forEach(caseResult -> {
caseResult.setCreator(userMap.get(caseResult.getCreator())); caseResult.setCreator(userMap.get(caseResult.getCreator()));