diff --git a/src/main/java/club/joylink/xiannccda/service/LineDeviceStatusService.java b/src/main/java/club/joylink/xiannccda/service/LineDeviceStatusService.java index 0dc0d6e..e07fceb 100644 --- a/src/main/java/club/joylink/xiannccda/service/LineDeviceStatusService.java +++ b/src/main/java/club/joylink/xiannccda/service/LineDeviceStatusService.java @@ -31,9 +31,7 @@ import java.util.concurrent.atomic.AtomicLong; import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; -/** - * 线路设备信息更新 - */ +/** 线路设备信息更新 */ @Slf4j @Service public class LineDeviceStatusService { @@ -99,9 +97,8 @@ public class LineDeviceStatusService { () -> { boolean isEmpty = true; if (resetTimes.get() == stopTime) { // 代表还没有停顿,不相等说明已经进入空循环 - int count = (int) (Math.random() * 12); List updateMockData = - nccMockDataService.loadUpdateData(id, MessageId.TRAIN_RECORD.name(), count); + nccMockDataService.loadUpdateData(id, MessageId.TRAIN_RECORD.name(), 2); DeviceStatusConvertorManager.doConvertor(updateMockData); isEmpty = updateMockData.size() == 0; } diff --git a/xian-ncc-da-message b/xian-ncc-da-message index 8fd000d..e8ac230 160000 --- a/xian-ncc-da-message +++ b/xian-ncc-da-message @@ -1 +1 @@ -Subproject commit 8fd000d45907f94410786c3bd6c1ab37edbe91e8 +Subproject commit e8ac23070828a1eca3bd68b6f78e4e419123d139