#
野心家
2023-08-02 f778d39fbbb49efe4dd0aaa0b2f89ed7fa3d5ea6
src/main/java/com/zy/common/model/LocTypeDto.java
@@ -29,14 +29,20 @@
    }
    public LocTypeDto(StaProtocol staProtocol) {
        if (staProtocol.isHigh() == staProtocol.isLow()) {
        if (staProtocol.isHigh() == staProtocol.isLow() == staProtocol.isMedium() == staProtocol.isMedium_high()) {
            throw new CoolException("plc高低检测异常");
        }
        if (staProtocol.isLow()) {
            this.locType1 = 1; // 低库位
        } else {
            this.locType1 = 2; // 高库位
        } else if (staProtocol.isHigh()){
            this.locType1 = 2; // 中库位
        } else if (staProtocol.isMedium()) {
            this.locType1 = 3; // 中高库位
        } else if (staProtocol.isMedium_high()) {
            this.locType1 = 4; // 高库位
        }
    }
    /**