自动化立体仓库 - WMS系统
#
yxFwq
2 天以前 94f4944f45d15de23041c1bc937196aef566c2c5
src/main/java/com/zy/common/service/CommonService.java
@@ -341,17 +341,25 @@
        // 1.按规则查找库位
        if (Cools.isEmpty(locMast) && crnNo != 0) {
            boolean levSign = true;
            if (staDescId == 1  && crnNo<3) {
                levSign = false;
            }
            List<LocMast> locMasts = locMastService.selectList(new EntityWrapper<LocMast>()
                    .eq("row1", nearRow)
                    .eq("loc_sts", "O")
                    .orderBy("inv_wh",false).orderBy("lev1",true).orderBy("bay1",true));
                .eq("row1", nearRow)
                .eq("loc_sts", "O")
                .orderBy("inv_wh",false).orderBy("lev1",levSign).orderBy("bay1",true));
            for (LocMast locMast1 : locMasts) {
                if (!VersionUtils.locMoveCheckLocTypeComplete(locMast1, locTypeDto)) {
                    continue;
                }
                if (Utils.BooleanWhsTypeStaIoType(whsType)){
                    String shallowLoc = Utils.getDeepLoc(slaveProperties, locMast1.getLocNo());
                    String shallowLoc = locMast1.getLocNo();
                    if (locMast1.getRow1()!=25){
                        shallowLoc = Utils.getDeepLoc(slaveProperties, locMast1.getLocNo());
                    }
                    LocMast locMast2 = locMastService.selectOne(new EntityWrapper<LocMast>()
                            .eq("loc_no", shallowLoc).eq("loc_sts", "O"));
                    if (!Cools.isEmpty(locMast2)) {