联锁检查添加新屏蔽门故障检查判断

This commit is contained in:
walker-sheng 2021-09-22 15:34:36 +08:00
parent 1d60e2dd18
commit 14735fb16e

View File

@ -237,7 +237,9 @@ public class CiService {
// 屏蔽门
if (!CollectionUtils.isEmpty(route.getPsdList())) {
for (PSD psd : route.getPsdList()) {
if(Stand.Fault.PSD_CANNOT_BE_CLOSED.equals(psd.getStand().getFault()) && !psd.getStand().isInterlockRelease()) {
if ((Stand.Fault.PSD_CANNOT_BE_CLOSED.equals(psd.getStand().getFault()) ||
Stand.Fault.NO_CLOSE_AND_LOCK.equals(psd.getStand().getFault())) &&
!psd.getStand().isInterlockRelease()) {
return Signal.LEVEL_Guide;
}
// if (!psd.isCloseAndLock() && !psd.isInterlockRelease()) {