src/main/java/com/zy/common/model/LocTypeDto.java
@@ -32,12 +32,15 @@ } public LocTypeDto(StaProtocol staProtocol) { if (staProtocol.locType.id.shortValue()!=1 && staProtocol.locType.id.shortValue()!=2 && staProtocol.locType.id.shortValue()!=3) { if (staProtocol.isHigh() == staProtocol.isLow()) { throw new CoolException("plc高低检测异常"); } this.locType1 = staProtocol.locType.id.shortValue(); if (staProtocol.isLow()) { this.locType1 = 1; // 低库位 } else { this.locType1 = 2; // 高库位 } } /** * 库位类型解析 */