自动化立体仓库 - WMS系统
zjj
2024-11-13 340b69790a7a2eff1ff5de75f109dc77f4b4008f
src/main/java/com/zy/common/service/CommonService.java
@@ -147,21 +147,21 @@
            if (groupLoc) {
                String shallowLoc = Utils.getDeepLoc(slaveProperties, mast.getLocNo());
                LocMast locMast2 = locMastService.selectOne(new EntityWrapper<LocMast>()
                        .eq("loc_no", shallowLoc).eq("loc_sts", "O"));
                        .eq("loc_no", shallowLoc));
                if (!Cools.isEmpty(locMast2)) {
                    tmp = locMast2;
                }else {
                    tmp = mast;
                    if (locMast2.getLocSts().equals("F") || locMast2.getLocSts().equals("D")){
                        tmp = mast;
                    }
                }
            }else {
                if (!Cools.isEmpty(mast)) {
                    tmp = mast;
                    if (mast.getLocSts().equals("O")){
                        tmp = mast;
                    }
                }
            }
            //预留空库位
            if (tmp != null && locMastService.checkEmptyCount(mast, 10)) {
            if (tmp != null) {
                locMast = tmp;
                break;
            }