Răsfoiți Sursa

stream ice info list to map change

HANTE 3 luni în urmă
părinte
comite
ce4f4c3fc9

+ 1 - 1
src/main/java/com/its/op/service/its/cctv/TbCctvMonitoringService.java

@@ -32,7 +32,7 @@ public class TbCctvMonitoringService {
 
         List<TbStrmIceSvrInfo> iceSvrList = strmIceSvrInfoRepo.findAll();
         Map<String, TbStrmIceSvrInfo> map = iceSvrList.stream()
-                .collect(Collectors.toMap(TbStrmIceSvrInfo::getSvrId, dto -> dto));
+                .collect(Collectors.toMap(TbStrmIceSvrInfo::getSvrIp, dto -> dto));
 
         result.forEach(obj -> {
             TbStrmIceSvrInfo webIceSvr = map.get(obj.getWebRtcSvrIp());

+ 1 - 1
src/main/java/com/its/op/service/its/scrs/TbScIxrCmraMngmService.java

@@ -42,7 +42,7 @@ public class TbScIxrCmraMngmService {
 
         List<TbStrmIceSvrInfo> iceSvrList = strmIceSvrInfoRepo.findAll();
         Map<String, TbStrmIceSvrInfo> map = iceSvrList.stream()
-                .collect(Collectors.toMap(TbStrmIceSvrInfo::getSvrId, dto -> dto));
+                .collect(Collectors.toMap(TbStrmIceSvrInfo::getSvrIp, dto -> dto));
 
         result.forEach(obj -> {
             TbStrmIceSvrInfo webIceSvr = map.get(obj.getWebRtcSvrIp());

+ 1 - 1
src/main/java/com/its/op/service/its/wcam/TbWcamMonitoringService.java

@@ -32,7 +32,7 @@ public class TbWcamMonitoringService {
 
         List<TbStrmIceSvrInfo> iceSvrList = strmIceSvrInfoRepo.findAll();
         Map<String, TbStrmIceSvrInfo> map = iceSvrList.stream()
-                .collect(Collectors.toMap(TbStrmIceSvrInfo::getSvrId, dto -> dto));
+                .collect(Collectors.toMap(TbStrmIceSvrInfo::getSvrIp, dto -> dto));
 
         result.forEach(obj -> {
             TbStrmIceSvrInfo webIceSvr = map.get(obj.getWebRtcSvrIp());