#
whycq
2024-09-10 9d29d13a01ec9bcb842f1e15e8dc566a2e50a127
src/main/java/com/zy/common/model/LocTypeDto.java
@@ -29,15 +29,11 @@
    }
    public LocTypeDto(StaProtocol staProtocol) {
//        if (staProtocol.isHigh() == staProtocol.isLow()) {
//            throw new CoolException("plc高低检测异常");
//        }
//        if (staProtocol.isLow()) {
//            this.locType1 = 1; // 低库位
//        } else {
//            this.locType1 = 2; // 高库位
//        }
        this.locType1 = 1;
        if (staProtocol.isWeight()) {
            this.locType1 = 1; // 重货
        } else {
            this.locType1 = 2; // 轻货
        }
    }
    /**