非对称运算

This commit is contained in:
liulu
2024-12-26 17:30:10 +08:00
parent 6cdf222def
commit b6fc524b3f
3 changed files with 108 additions and 142 deletions
@@ -85,7 +85,7 @@ public class ApplicationServiceImpl implements ApplicationService {
BeanUtils.copyProperties(it, view);
List<Long> sIds = appServiceMap.getOrDefault(it.getId(), Collections.emptyList());
view.setServiceIds(sIds.stream().map(String::valueOf).collect(Collectors.toList()));
view.setWhiteIps(appIpMap.get(it.getId()));
view.setWhiteIps(appIpMap.getOrDefault(it.getId(), Collections.singletonList("")));
String sn = sIds.stream()
.map(snMap::get)
.filter(Objects::nonNull)