自动化立体仓库 - WCS系统
#
zjj
2024-11-20 cffa14ea26fd5205acde107e7ec4b4588d421fa8
src/main/java/com/zy/common/model/LocTypeDto.java
@@ -19,6 +19,8 @@
    // 轻重类型{0:未知,1:轻库位,2:重库位}
    private Short locType3;
    private Integer siteId;
    public LocTypeDto() {
    }
@@ -29,14 +31,10 @@
    }
    public LocTypeDto(StaProtocol staProtocol) {
//        if (staProtocol.isHigh() == staProtocol.isLow()) {
//            throw new CoolException("plc高低检测异常");
//        }
        if (staProtocol.getSiteId() == 106){
            this.locType1 = 2; // 高库位
        }else {
            this.locType1 = 1; // 低库位
        if (staProtocol.locType.id.shortValue()!=1 && staProtocol.locType.id.shortValue()!=2 && staProtocol.locType.id.shortValue()!=3) {
            throw new CoolException("plc高低检测异常");
        }
        this.locType1 = staProtocol.locType.id.shortValue();
    }
    /**