【修改列车信息查询条数】

This commit is contained in:
weizhihong 2023-07-14 13:35:49 +08:00
parent 8c2519e3a6
commit 5406c09862
2 changed files with 3 additions and 6 deletions

View File

@ -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<MessageData> updateMockData =
nccMockDataService.loadUpdateData(id, MessageId.TRAIN_RECORD.name(), count);
nccMockDataService.loadUpdateData(id, MessageId.TRAIN_RECORD.name(), 2);
DeviceStatusConvertorManager.doConvertor(updateMockData);
isEmpty = updateMockData.size() == 0;
}

@ -1 +1 @@
Subproject commit 8fd000d45907f94410786c3bd6c1ab37edbe91e8
Subproject commit e8ac23070828a1eca3bd68b6f78e4e419123d139