修改股道视图消息bug

This commit is contained in:
joylink_zhangsai 2022-07-01 14:52:18 +08:00
parent 383aa6edd1
commit 71283bf2fa

View File

@ -38,6 +38,12 @@ public class TrackViewVO {
public TrackViewVO() {}
public void addSectionOccupied(String sectionCode, Boolean occupied) {
if (sectionOccupiedMap == null)
sectionOccupiedMap = new HashMap<>();
sectionOccupiedMap.put(sectionCode, occupied);
}
public void addLine(String trackCode, LineVO vo) {
if (trackLineMap == null)
trackLineMap = new HashMap<>();
@ -62,7 +68,7 @@ public class TrackViewVO {
if (!Objects.equals(sectionOccupiedMap.get(section.getCode()), occupied)) {
change = true;
sectionOccupiedMap.put(section.getCode(), occupied);
viewVO.getSectionOccupiedMap().put(section.getCode(), occupied);
viewVO.addSectionOccupied(section.getCode(), occupied);
}
}
//分行数据