| | |
| | | } |
| | | // 更新库位排号 |
| | | if (Cools.isEmpty(locMast)){ |
| | | rowLastno.setCurrentRow(curRow); |
| | | rowLastno.setCurrentRow((curRow-13)); |
| | | rowLastnoService.updateById(rowLastno); |
| | | } |
| | | } |
| | |
| | | // 1.按规则查找库位 |
| | | if (Cools.isEmpty(locMast) && crnNo != 0) { |
| | | List<LocMast> locMasts = null; |
| | | if (Utils.isNorth(sourceStaNo)){ |
| | | locMasts = locMastService.selectList(new EntityWrapper<LocMast>() |
| | | .eq("row1", nearRow) |
| | | .eq("loc_sts", "O").eq("whs_type",rowLastnoType.getType().longValue()) |
| | | .orderBy("lev1",true).orderBy("bay1",false)); |
| | | }else { |
| | | |
| | | locMasts = locMastService.selectList(new EntityWrapper<LocMast>() |
| | | .eq("row1", nearRow) |
| | | .eq("loc_sts", "O").eq("whs_type",rowLastnoType.getType().longValue()) |
| | | .orderBy("lev1",true).orderBy("bay1",true)); |
| | | } |
| | | |
| | | |
| | | for (LocMast locMast1 : locMasts) { |
| | | if (!VersionUtils.locMoveCheckLocTypeComplete(locMast1, locTypeDto)) { |