自动化立体仓库 - WMS系统
zyx
2023-10-19 668e40d51e654104287a3f63c7fd856657a35a11
src/main/java/com/zy/asrs/utils/Utils.java
@@ -229,6 +229,7 @@
            for (Integer row0 : CommonService.SIXTH_GROUP_ROW_LIST) {
                result.add(zerofill(String.valueOf(row0), 2) + locNo.substring(2));
            }
            Collections.reverse(result);
            return result;
        }
        if (CommonService.SEVENTH_GROUP_ROW_LIST.contains(row) && bay < 59) {
@@ -249,7 +250,7 @@
    }
    public static void main(String[] args) {
        System.out.println(JSON.toJSONString(getGroupLoc("0703409")));
        System.out.println(JSON.toJSONString(getGroupLoc("1305908")));
    }
    /**
@@ -386,7 +387,7 @@
    }
    public static void wapperSetCondition(Wrapper wrapper, String column, String condition){
        if(Cools.isEmpty(condition)){
        if(Cools.isEmpty(condition) || "null".equals(condition)){
            wrapper.andNew().eq(column,"").or().isNull(column);
        }else {
            wrapper.eq(column,condition);
@@ -399,4 +400,11 @@
        wapperSetCondition(wrapper,"isoseq",isoseq);
    }
    public static void confirmOnlyMat(Wrapper wrapper, String matnr, String batch, String threeCode, String deadTime){
        wapperSetCondition(wrapper,"matnr",matnr);
        wapperSetCondition(wrapper,"three_code",threeCode);
        wapperSetCondition(wrapper,"dead_time",deadTime);
        wapperSetCondition(wrapper,"batch",batch);
    }
}