fix: 代码规范
This commit is contained in:
parent
7b853bd3a1
commit
e606f28c1c
|
@ -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()));
|
||||||
|
|
Loading…
Reference in New Issue