|
@@ -62,6 +62,9 @@ public class TaskService {
|
|
}
|
|
}
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
|
Set<BaseCameraVO> normalSet = redisService.getSetMembers(Constants.NORMAL_SET);
|
|
Set<BaseCameraVO> normalSet = redisService.getSetMembers(Constants.NORMAL_SET);
|
|
|
|
+ if (log.isDebugEnabled()) {
|
|
|
|
+ log.debug("正常摄像机数量:"+normalSet.size());
|
|
|
|
+ }
|
|
if (!CollectionUtils.isEmpty(normalSet)) {
|
|
if (!CollectionUtils.isEmpty(normalSet)) {
|
|
String finalAddress = address;
|
|
String finalAddress = address;
|
|
normalSet.forEach(item -> {
|
|
normalSet.forEach(item -> {
|
|
@@ -106,6 +109,9 @@ public class TaskService {
|
|
msgAlarmService.initializationCameraCache();
|
|
msgAlarmService.initializationCameraCache();
|
|
}
|
|
}
|
|
Set<BaseCameraVO> alarmSet = redisService.getSetMembers(Constants.ALARM_SET);
|
|
Set<BaseCameraVO> alarmSet = redisService.getSetMembers(Constants.ALARM_SET);
|
|
|
|
+ if (log.isDebugEnabled()) {
|
|
|
|
+ log.debug("报警摄像机数量:"+alarmSet.size());
|
|
|
|
+ }
|
|
if(!CollectionUtils.isEmpty(alarmSet)){
|
|
if(!CollectionUtils.isEmpty(alarmSet)){
|
|
String finalAddress = address;
|
|
String finalAddress = address;
|
|
alarmSet.forEach(item -> {
|
|
alarmSet.forEach(item -> {
|
|
@@ -134,5 +140,4 @@ public class TaskService {
|
|
});
|
|
});
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
}
|
|
}
|