1、维护状态的基站也进行告警检查

This commit is contained in:
weidong 2024-04-15 07:59:57 +08:00
parent c67372710f
commit c88d37c072

View File

@ -105,7 +105,7 @@ public class DeviceStatusChecker {
List<String> deviceIds = new ArrayList<>(); List<String> deviceIds = new ArrayList<>();
QueryWrapper<GnssDevice> deviceQueryWrapper = new QueryWrapper<>(); QueryWrapper<GnssDevice> deviceQueryWrapper = new QueryWrapper<>();
deviceQueryWrapper.eq("devicetype", GnssDevice.TYPE_REFERENCE_STATION); deviceQueryWrapper.eq("devicetype", GnssDevice.TYPE_REFERENCE_STATION);
deviceQueryWrapper.eq("opmode", GnssDevice.OP_MODE_USE); deviceQueryWrapper.ne("opmode", GnssDevice.OP_MODE_UNUSE);
List<GnssDevice> bsList = deviceMapper.selectList(deviceQueryWrapper); List<GnssDevice> bsList = deviceMapper.selectList(deviceQueryWrapper);
for(GnssDevice bs:bsList){ for(GnssDevice bs:bsList){
GnssStatus status = gnssStatusMapper.getByDeviceId(bs.getDeviceid()); GnssStatus status = gnssStatusMapper.getByDeviceId(bs.getDeviceid());