#
whycq
2024-04-12 f88b89899ce25798d33fe65326a9e2f1f30f9c8e
src/main/java/com/zy/common/model/LocTypeDto.java
@@ -22,14 +22,17 @@
    public LocTypeDto() {
    }
    public LocTypeDto(Short locType1, Short locType2, Short locType3) {
        this.locType1 = locType1;
        this.locType2 = locType2;
        this.locType3 = locType3;
    }
    public LocTypeDto(StaProtocol staProtocol) {
        if (staProtocol.isHigh() == staProtocol.isLow()) {
            throw new CoolException("plc高低检测异常");
        }
        if (staProtocol.isLow()) {
            this.locType1 = 1; // 低库位
        if (staProtocol.isWeight()) {
            this.locType1 = 1; // 重货
        } else {
            this.locType1 = 2; // 高库位
            this.locType1 = 2; // 轻货
        }
    }