|
@@ -249,7 +249,7 @@ public class MsgAlarmServiceImpl extends ServiceImpl<MsgAlarmMapper, MsgAlarm> i
|
|
//找出所有报警数据 1=高铁的数量
|
|
//找出所有报警数据 1=高铁的数量
|
|
count = (int) list.stream()
|
|
count = (int) list.stream()
|
|
.map(base -> baseCameraManagementMapper.selectOne(new LambdaQueryWrapper<BaseCameraManagement>()
|
|
.map(base -> baseCameraManagementMapper.selectOne(new LambdaQueryWrapper<BaseCameraManagement>()
|
|
- .eq(BaseCameraManagement::getCameraCode, base)))
|
|
|
|
|
|
+ .eq(BaseCameraManagement::getCameraCode, base.getCameraCode())))
|
|
.filter(Objects::nonNull) // 确保 management 不是 null
|
|
.filter(Objects::nonNull) // 确保 management 不是 null
|
|
.map(management -> baseRailwayManagementMapper.selectOne(new LambdaQueryWrapper<BaseRailwayManagement>()
|
|
.map(management -> baseRailwayManagementMapper.selectOne(new LambdaQueryWrapper<BaseRailwayManagement>()
|
|
.eq(BaseRailwayManagement::getRailwayCode, management.getRailwayCode()))) // 确保管理信息不是空的
|
|
.eq(BaseRailwayManagement::getRailwayCode, management.getRailwayCode()))) // 确保管理信息不是空的
|
|
@@ -269,7 +269,7 @@ public class MsgAlarmServiceImpl extends ServiceImpl<MsgAlarmMapper, MsgAlarm> i
|
|
//找出所有未解除报警数据 1=高铁的数量
|
|
//找出所有未解除报警数据 1=高铁的数量
|
|
unresolvedCount = (int) alarmList.stream()
|
|
unresolvedCount = (int) alarmList.stream()
|
|
.map(base -> baseCameraManagementMapper.selectOne(new LambdaQueryWrapper<BaseCameraManagement>()
|
|
.map(base -> baseCameraManagementMapper.selectOne(new LambdaQueryWrapper<BaseCameraManagement>()
|
|
- .eq(BaseCameraManagement::getCameraCode, base)))
|
|
|
|
|
|
+ .eq(BaseCameraManagement::getCameraCode, base.getCameraCode())))
|
|
.filter(Objects::nonNull)
|
|
.filter(Objects::nonNull)
|
|
.map(management -> baseRailwayManagementMapper.selectOne(new LambdaQueryWrapper<BaseRailwayManagement>()
|
|
.map(management -> baseRailwayManagementMapper.selectOne(new LambdaQueryWrapper<BaseRailwayManagement>()
|
|
.eq(BaseRailwayManagement::getRailwayCode, management.getRailwayCode()))) // 确保管理信息不是空的
|
|
.eq(BaseRailwayManagement::getRailwayCode, management.getRailwayCode()))) // 确保管理信息不是空的
|