修改清除区段占用时,叉芯关联的物理区段占用状态未清除掉的bug

This commit is contained in:
thesai 2021-11-17 12:02:24 +08:00
parent 6dea82166e
commit d21863effd

View File

@ -425,11 +425,10 @@ public class Section extends DelayUnlockDevice {
*/
public void clearOccupy() {
setCtOccupied(false);
this.setNctOccupied(false);
setNctOccupied(false);
if (!CollectionUtils.isEmpty(this.logicList)) {
for (Section section : this.logicList) {
section.setCtOccupied(false);
section.setNctOccupied(false);
section.clearOccupy();
}
}
// if (this.isAxleCounter()) {
@ -850,14 +849,14 @@ public class Section extends DelayUnlockDevice {
}
Section cross = queryCross();
if (cross != null) {
cross.crossJudgeInvalid();
cross.crossJudgeOccupied();
}
}
/**
* 岔心判断失效
* 岔心判断占用
*/
private void crossJudgeInvalid() {
private void crossJudgeOccupied() {
if (!this.cross)
return;
this.logicList.forEach(logic -> {