| | |
| | | } |
| | | // 靠近摆放规则 --- 空托 |
| | | if (emptyMk) { |
| | | List<LocMast> locMasts = locMastService.selectList(new EntityWrapper<LocMast>().eq("loc_sts", "D").ge("row1", sRow).le("row1", eRow)); |
| | | // List<LocMast> locMasts = locMastService.selectList(new EntityWrapper<LocMast>().eq("loc_sts", "D").ge("row1", sRow).le("row1", eRow)); |
| | | List<LocMast> locMasts = locMastService.selectList(new EntityWrapper<LocMast>().eq("loc_sts", "D").eq("row1", 1)); |
| | | if (locMasts.size() > 0) { |
| | | for (LocMast loc : locMasts) { |
| | | if (Utils.isShallowLoc(slaveProperties, loc.getLocNo())) { |
| | |
| | | if (null == locMast) { |
| | | Shelves shelves = new Shelves(rowCount, crn_qty); |
| | | if (whsType == 1) { |
| | | for (int i = 0; i < shelves.group; i ++) { |
| | | curRow = shelves.start(curRow); |
| | | if (curRow < 0) { |
| | | throw new CoolException("检索库位失败,请联系管理员"); |
| | | } |
| | | Integer crnNo1 = shelves.getCrnNo(curRow); |
| | | if (basCrnpService.checkSiteError(crnNo1, true)) { |
| | | crnNo = crnNo1; |
| | | if (curRow == 3 || curRow == 4) { |
| | | curRow = 3; |
| | | } |
| | | break; |
| | | } |
| | | curRow = curRow + 1; |
| | | if (curRow > eRow) { |
| | | curRow = sRow; |
| | | } |
| | | crnNo = whsType; |
| | | basCrnpService.checkSiteStatus(crnNo, true); |
| | | // for (int i = 0; i < shelves.group; i ++) { |
| | | // curRow = shelves.start(curRow); |
| | | // if (curRow < 0) { |
| | | // throw new CoolException("检索库位失败,请联系管理员"); |
| | | // } |
| | | // Integer crnNo1 = shelves.getCrnNo(curRow); |
| | | // if (basCrnpService.checkSiteError(crnNo1, true)) { |
| | | // crnNo = crnNo1; |
| | | // if (curRow == 3 || curRow == 4) { |
| | | // curRow = 3; |
| | | // } |
| | | // break; |
| | | // } |
| | | // } |
| | | } else if (whsType == 2) { |
| | | if (curRow == sRow) { |
| | | curRow = eRow; |