ximon-admin/src/main/java/com/sandu/ximon/admin/service/PoleService.java
@@ -369,9 +369,9 @@ BaseConditionVO baseConditionVO = new BaseConditionVO(); baseConditionVO.setPageNo(1); baseConditionVO.setPageSize(999); System.out.println("单灯故障统计时间: "+ LocalDateTime.now()); System.out.println("单灯故障统计时间: " + LocalDateTime.now()); CommonPage commonPage = SpringContextHolder.getBean(LightReportErrorService.class).queryErrorCode(baseConditionVO); System.out.println("单灯故障统计时间: "+ LocalDateTime.now()); System.out.println("单灯故障统计时间: " + LocalDateTime.now()); new Thread(new Runnable() { @Override public void run() { @@ -379,7 +379,6 @@ AtomicInteger onLine = new AtomicInteger(0); AtomicInteger offLine = new AtomicInteger(0); AtomicInteger error = new AtomicInteger(commonPage.getList().size()); DeviceOnLineCountVO light = new DeviceOnLineCountVO(); @@ -1111,7 +1110,11 @@ if (pole == null) { throw new BusinessException("灯杆不存在"); } //一级客户 -1 userId //二级客户 上级客户id userId pole.setClientId(-1L); pole.setUserId(-1L); r = updateById(pole); if (!r) { @@ -1339,7 +1342,7 @@ } //设置触发条件 存入Redis 15分钟超时 15分钟内再次调用直接返回 redisUtils.set("redisStatusKeyTimeout", System.currentTimeMillis(), 60*15); redisUtils.set("redisStatusKeyTimeout", System.currentTimeMillis(), 60 * 15); CountDownLatch countDownLatch = new CountDownLatch(7);//todo //获取一个7位随机数 ximon-admin/src/main/java/com/sandu/ximon/admin/service/VnnoxService.java
@@ -504,7 +504,9 @@ List<String> temp = new ArrayList<>(); for (LedPlayerEntity item : ledList) { String playerId = item.getPlayerId(); if (redisUtils.get(VnnoxConstant.REDIS_VOL + playerId) == null || redisUtils.get(VnnoxConstant.REDIS_BRIGHTNESS + playerId) == null) { if (redisUtils.get(VnnoxConstant.REDIS_VOL + playerId) == null || redisUtils.get(VnnoxConstant.REDIS_BRIGHTNESS + playerId) == null || redisUtils.get(VnnoxConstant.REDIS_SCREEN_STATUS + playerId) == null) { temp.add(item.getPlayerId()); } } @@ -521,9 +523,9 @@ for (LedPlayerEntity playerEntity : list) { String playerId = playerEntity.getPlayerId(); LedPlayerInfoEntity cache = new LedPlayerInfoEntity(); // 设置屏幕状态 // 设置屏幕状态 更新状态之后还拿不到数据说明设备有问题或不在线 设置默认为黑屏 String result = redisUtils.get(VnnoxConstant.REDIS_SCREEN_STATUS + playerId); Integer screenStatus = 1; Integer screenStatus = 0; if (null != result) { screenStatus = Integer.parseInt(result); } ximon-admin/src/main/java/com/sandu/ximon/admin/utils/VnnoxAPIUtil.java
@@ -304,6 +304,7 @@ List<String> commands = new ArrayList<>(); commands.add("volumeValue"); commands.add("brightnessValue"); commands.add("screenPowerStatus"); VnnoxBaseRequest request = new VnnoxBaseRequest(); request.setPlayerIds(playerId); request.setCommands(commands);