| | |
| | | |
| | | @Scheduled(cron = "0/3 * * * * ? ") |
| | | public synchronized void notifyShuttle(){ |
| | | List<DeviceConfig> shuttleList = deviceConfigService.selectList(new EntityWrapper<DeviceConfig>() |
| | | .eq("device_type", String.valueOf(SlaveType.Shuttle))); |
| | | for (DeviceConfig device : shuttleList) { |
| | | notifyMsg(String.valueOf(SlaveType.Shuttle), device.getDeviceNo()); |
| | | List<DeviceConfig> deviceList = deviceConfigService.selectList(new EntityWrapper<DeviceConfig>() |
| | | .eq("device_type", String.valueOf(SlaveType.Crn))); |
| | | for (DeviceConfig device : deviceList) { |
| | | notifyMsg(String.valueOf(SlaveType.Crn), device.getDeviceNo()); |
| | | } |
| | | } |
| | | |
| | | @Scheduled(cron = "0/3 * * * * ? ") |
| | | public synchronized void notifyForkLift(){ |
| | | List<DeviceConfig> forkLiftList = deviceConfigService.selectList(new EntityWrapper<DeviceConfig>() |
| | | .eq("device_type", String.valueOf(SlaveType.ForkLift))); |
| | | for (DeviceConfig device : forkLiftList) { |
| | | notifyMsg(String.valueOf(SlaveType.ForkLift), device.getDeviceNo()); |
| | | List<DeviceConfig> deviceList = deviceConfigService.selectList(new EntityWrapper<DeviceConfig>() |
| | | .eq("device_type", String.valueOf(SlaveType.Rgv))); |
| | | for (DeviceConfig device : deviceList) { |
| | | notifyMsg(String.valueOf(SlaveType.Rgv), device.getDeviceNo()); |
| | | } |
| | | } |
| | | |
| | |
| | | //通知成功 |
| | | redisUtil.del(key); |
| | | |
| | | httpRequestLog.setResult(1); |
| | | |
| | | continue; |
| | | } |
| | | }catch (Exception e){ |