修改股道视图消息bug
This commit is contained in:
parent
383aa6edd1
commit
71283bf2fa
@ -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);
|
||||
}
|
||||
}
|
||||
//分行数据
|
||||
|
Loading…
Reference in New Issue
Block a user