调整列车区段没有值得问题
CI / Docker-Build (push) Successful in 5m14s Details

This commit is contained in:
tiger_zhou 2024-08-16 18:59:18 +08:00
parent 4cd80bbec5
commit e93171e958
1 changed files with 213 additions and 211 deletions

View File

@ -21,6 +21,7 @@ import club.joylink.rtss.vo.client.WebSocketMessageType;
import club.joylink.rtss.vo.client.factory.SocketMessageFactory;
import club.joylink.rtss.websocket.StompMessageService;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Component;
@ -115,7 +116,8 @@ public class ATSMessageCollectAndDispatcher {
if (Objects.equals(simulation.getProject(), MapPrdTypeEnum.YJDDZH.name())) {
statusVO = new YJDDZHTrainStatusVO(train);
} else {
statusVO = new TrainStatusVO(train);
// statusVO = new TrainStatusVO(train);
statusVO = new TrainStatusVO(trainStatus);
}
if (trainStatus.compareAndChange(train, statusVO)) {
totalList.add(statusVO);