Quellcode durchsuchen

相机树开发

gao.qiang vor 2 Monaten
Ursprung
Commit
bf86993ec7

+ 1 - 1
business-service/src/main/java/com/ozs/service/service/impl/MsgAlarmServiceImpl.java

@@ -169,7 +169,7 @@ public class MsgAlarmServiceImpl extends ServiceImpl<MsgAlarmMapper, MsgAlarm> i
         log.info("-----------setType------" + setType);
         Set<BaseCameraVO> alarmSet = redisService.getSetMembers(Constants.ALARM_SET);
         log.info("-----------alarmSet------" + alarmSet);
-        if (!CollectionUtils.isEmpty(alarmSet)) {
+        if (!ObjectUtils.isEmpty(alarmSet)) {
             Set<String> cameraCodeSet = alarmSet.stream()
                     .map(BaseCameraVO::getCameraCode)
                     .collect(Collectors.toSet());