| | |
| | | if (basDevp.getLocType1() == null) { |
| | | throw new CoolException("plc高低检测异常"); |
| | | } |
| | | if (basDevp.getLocType1() == 0) { |
| | | // PLC 原始信号 0=低位,其它按高位处理,这里保留映射结果给后续找位/兼容重试使用。 |
| | | if (basDevp.getLocType1() == 1) { |
| | | this.locType1 = 1; // 低库位 |
| | | } else { |
| | | this.locType1 = 2; // 高库位 |
| | |
| | | locTypeDto == null || locTypeDto.getLocType1() == null ? null : locTypeDto.getLocType1().intValue(), |
| | | findLocNoAttributeVo == null ? null : findLocNoAttributeVo.getMatnr()); |
| | | if (!Cools.isEmpty(stationCrnLocTypes)) { |
| | | // 站点优先级只是“优先尝试”,没有命中时必须继续走默认/库区回退, |
| | | // 否则会把“优先候选无位”误判成“整仓无位”。 |
| | | LocMast locMast = findRun2EmptyLocByCrnLocTypeEntries(rowLastno, rowLastnoType, stationCrnLocTypes, |
| | | locTypeDto, staDescId, sourceStaNo, startupDto, preferredArea, "station-priority"); |
| | | if (!Cools.isEmpty(locMast)) { |