| | |
| | | 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() { |
| | |
| | | AtomicInteger onLine = new AtomicInteger(0); |
| | | AtomicInteger offLine = new AtomicInteger(0); |
| | | AtomicInteger error = new AtomicInteger(commonPage.getList().size()); |
| | | |
| | | |
| | | |
| | | DeviceOnLineCountVO light = new DeviceOnLineCountVO(); |
| | |
| | | if (pole == null) { |
| | | throw new BusinessException("灯杆不存在"); |
| | | } |
| | | |
| | | //一级客户 -1 userId |
| | | //二级客户 上级客户id userId |
| | | pole.setClientId(-1L); |
| | | pole.setUserId(-1L); |
| | | r = updateById(pole); |
| | | |
| | | if (!r) { |
| | |
| | | } |
| | | |
| | | //设置触发条件 存入Redis 15分钟超时 15分钟内再次调用直接返回 |
| | | redisUtils.set("redisStatusKeyTimeout", System.currentTimeMillis(), 60*15); |
| | | redisUtils.set("redisStatusKeyTimeout", System.currentTimeMillis(), 60 * 15); |
| | | |
| | | CountDownLatch countDownLatch = new CountDownLatch(7);//todo |
| | | //获取一个7位随机数 |