Commit 68008ac3 authored by 赵啸非's avatar 赵啸非

修改提交分辨率更新

parent 038aed7e
...@@ -51,10 +51,7 @@ public class DeviceRestartTaskImpl implements ITaskExcuteService { ...@@ -51,10 +51,7 @@ public class DeviceRestartTaskImpl implements ITaskExcuteService {
StrUtil.split(restartProduct, ",").stream().forEach(productCode -> { StrUtil.split(restartProduct, ",").stream().forEach(productCode -> {
List<DeviceEntity> deviceEntities = deviceService.find(new DeviceQuery().productCode(productCode)); List<DeviceEntity> deviceEntities = deviceService.find(new DeviceQuery().productCode(productCode));
for (DeviceEntity device : deviceEntities) { for (DeviceEntity device : deviceEntities) {
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
}
TbQueueMsgHeaders header = new DefaultTbQueueMsgHeaders(); TbQueueMsgHeaders header = new DefaultTbQueueMsgHeaders();
header.put(MessageHeader.MESSAGETYPE, MESSAGETYPE_NOTIFY_RESTART_APP); header.put(MessageHeader.MESSAGETYPE, MESSAGETYPE_NOTIFY_RESTART_APP);
header.put(MessageHeader.DEVICECODE, device.getDeviceCode()); header.put(MessageHeader.DEVICECODE, device.getDeviceCode());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment