#
Junjie
2025-04-02 664b83b2e10025a36b29ad086f68c66cb80e339c
zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/rcs/model/protocol/StaProtocol.java
@@ -21,6 +21,17 @@
    private Short staNo;
    // ----------------------------------------------------------------
    //已完成工作号
    private Short finishWorkNo = 0;
    //空闲
    private boolean idle;
    //条码
    private String barcode;
    //重量
    private Integer weight;
    // 自动
    private boolean autoing;
@@ -71,6 +82,9 @@
    // 扫码失败
    private boolean barcodeErr;
    // 工作模式
    private Integer workMode;
    @Override
    public StaProtocol clone() {
        try {
@@ -88,6 +102,8 @@
        station.setLoading(loading?"Y":"N");
        station.setInEnable(inEnable?"Y":"N");
        station.setOutEnable(outEnable?"Y":"N");
        station.setWorkMode(workMode);
        station.setStaNo((int) staNo);
        station.setLocType1(0);  // 高低类型{0:未知,1:低库位,2:高库位}
        station.setLocType2(0);  // 宽窄类型{0:未知,1:窄库位,2:宽库位}
        station.setLocType3(0);  // 轻重类型{0:未知,1:轻库位,2:重库位}
@@ -95,15 +111,18 @@
    }
    public Integer getLocType1() {
        if (!this.high && !this.low) {
            return 0;//未知
        if (!this.low  && !this.high){
            return 0;
        }
        if (this.low && !this.high) {
            return 1;
        }else if (this.high && !this.low) {
            return 2;
        }else if (this.high && this.low) {
            return 2;
        }
        if (this.low) {
            return 1;//低
        }else {
            return 2;//高
        }
        return 0;
    }
}