自动化立体仓库 - WMS系统
#
luxiaotao1123
2022-09-21 29e419e8c829adc98e3c6dc79b9dda9ce3e02be6
src/main/java/com/zy/common/web/WcsController.java
@@ -202,6 +202,7 @@
        wrkMast.setEmptyMk("Y"); // 空板
        wrkMast.setLinkMis("Y");
        wrkMast.setBarcode(barcode);
//        wrkMast.setSteNo(findSte(wrkMast.getLocNo()));
        wrkMast.setCtnType(sourceStaNo.getCtnType()); // 容器类型
        // 操作人员数据
        wrkMast.setAppeTime(new Date());
@@ -230,4 +231,21 @@
        return dto;
    }
    /**
     * 非通用性代码,只适用于边锋项目
     * @param locNo
     * @return
     */
    private Integer findSte(String locNo) {
        int i = Integer.parseInt(locNo.substring(0, 2));
        if (i >= 1 && i <= 7){
            return 1;
        } else if (i >= 8 && i <= 14) {
            return 2;
        }else {
            return 3;
        }
    }
}