代码调整

This commit is contained in:
tiger_zhou 2023-12-26 14:13:05 +08:00
parent 0a70258a3c
commit fc198eb74b

View File

@ -148,6 +148,8 @@ public class MockOccServer {
} else if (messageId == MessageId.TRAIN_INDICATION_UPDATE) { } else if (messageId == MessageId.TRAIN_INDICATION_UPDATE) {
MockTrainUpdateReq req = new MockTrainUpdateReq(messageId, lineId, rtuId_.shortValue(), di.getDeviceType(), di.getDeviceName(), md.deviceStatus()); MockTrainUpdateReq req = new MockTrainUpdateReq(messageId, lineId, rtuId_.shortValue(), di.getDeviceType(), di.getDeviceName(), md.deviceStatus());
req.setTime(Instant.ofEpochMilli(System.currentTimeMillis()).getEpochSecond()); req.setTime(Instant.ofEpochMilli(System.currentTimeMillis()).getEpochSecond());
req.setGroup_id(md.getGroupId());
req.setGlobal_id(md.getGroupId());
list.add(req); list.add(req);
} }
} }