| | |
| | | long total = mongoTemplate.count(query, TMonitorResult.class); |
| | | MongoUtil.setPage(query, params, TIME_FIELD); |
| | | List<TMonitorResult> resultList = mongoTemplate.find(query, TMonitorResult.class); |
| | | |
| | | resultList.forEach(item->{ |
| | | if(null != item.getOnline() && item.getOnline()){ |
| | | item.setOnlineStr("在线"); |
| | | }else { |
| | | item.setOnlineStr("离线"); |
| | | } |
| | | }); |
| | | params.setDeptTag(-1); |
| | | params.setDeviceType(1); |
| | | // 统计设备数量 |
| | |
| | | long total = mongoTemplate.count(query, TMonitorResult.class); |
| | | MongoUtil.setPage(query, params, TIME_FIELD); |
| | | List<TMonitorResult> resultList = mongoTemplate.find(query, TMonitorResult.class); |
| | | |
| | | resultList.forEach(item->{ |
| | | if(null != item.getOnline() && item.getOnline()){ |
| | | item.setOnlineStr("在线"); |
| | | }else { |
| | | item.setOnlineStr("离线"); |
| | | } |
| | | }); |
| | | // 统计设备数量 |
| | | params.setDeptTag(1); |
| | | params.setDeviceType(1); |
| | |
| | | params.setDeviceType(1); |
| | | // 统计设备数量 |
| | | Integer distinctCount = pointMapper.distinctCount(params); |
| | | |
| | | resultList.forEach(item->{ |
| | | if(null != item.getOnline() && item.getOnline()){ |
| | | item.setOnlineStr("在线"); |
| | | }else { |
| | | item.setOnlineStr("离线"); |
| | | } |
| | | }); |
| | | Date now = new Date(); |
| | | List<CheckIndexVideo> videoList = new LambdaQueryChainWrapper<>(checkIndexVideoService.getBaseMapper()) |
| | | .select(CheckIndexVideo::getKeySiteOnline) |
| | |
| | | params.setDeviceType(1); |
| | | // 统计设备数量 |
| | | Integer distinctCount = pointMapper.distinctCount(params); |
| | | |
| | | resultList.forEach(item->{ |
| | | if(null != item.getOnline() && item.getOnline()){ |
| | | item.setOnlineStr("在线"); |
| | | }else { |
| | | item.setOnlineStr("离线"); |
| | | } |
| | | }); |
| | | Date now = new Date(); |
| | | List<CheckIndexVideo> videoList = new LambdaQueryChainWrapper<>(checkIndexVideoService.getBaseMapper()) |
| | | .select(CheckIndexVideo::getKeyCommandImageOnline) |
| | |
| | | params.setDeviceType(2); |
| | | // 统计设备数量 |
| | | Integer distinctCount = pointMapper.distinctCount(params); |
| | | |
| | | resultList.forEach(item->{ |
| | | if(null != item.getOnline() && item.getOnline()){ |
| | | item.setOnlineStr("在线"); |
| | | }else { |
| | | item.setOnlineStr("离线"); |
| | | } |
| | | }); |
| | | Date now = new Date(); |
| | | List<CheckIndexCar> videoList = new LambdaQueryChainWrapper<>(checkIndexCarService.getBaseMapper()) |
| | | .select(CheckIndexCar::getSiteOnline) |
| | |
| | | long total = mongoTemplate.count(query, TMonitorResult.class); |
| | | MongoUtil.setPage(query, params, TIME_FIELD); |
| | | List<TMonitorResult> resultList = mongoTemplate.find(query, TMonitorResult.class); |
| | | |
| | | resultList.forEach(item->{ |
| | | if(null != item.getOnline() && item.getOnline()){ |
| | | item.setOnlineStr("在线"); |
| | | }else { |
| | | item.setOnlineStr("离线"); |
| | | } |
| | | }); |
| | | params.setDeptTag(-1); |
| | | params.setDeviceType(3); |
| | | // 统计设备数量 |