野心家
2025-05-08 b427e1d0102d4b3b4263c7c6e572f29f9c50bef9
src/main/java/com/zy/common/model/LocTypeDto.java
@@ -31,6 +31,7 @@
        } else {
            this.locType1 = 2; // 高库位
        }
//        this.locType1 = 1;
    }
    /**
@@ -38,14 +39,14 @@
     */
    public static LocTypeDto process(StaProtocol staProtocol) {
        LocTypeDto dto = new LocTypeDto();
        if (staProtocol.isHigh() == staProtocol.isLow()) {
            throw new CoolException("plc高低检测异常");
        }
        if (staProtocol.isLow()) {
            dto.setLocType1((short) 1); // 低库位
        } else {
            dto.setLocType1((short) 2); // 高库位
        }
//        if (staProtocol.isHigh() == staProtocol.isLow()) {
//            throw new CoolException("plc高低检测异常");
//        }
//        if (staProtocol.isLow()) {
//            dto.setLocType1((short) 1); // 低库位
//        } else {
//            dto.setLocType1((short) 2); // 高库位
//        }
        return dto;
    }