| | |
| | | // 获取源库位信息 |
| | | LocMast sourceSta = locMastService.selectById(wrkMast.getSourceLocNo()); |
| | | if (!sourceSta.getLocSts().equals("R") &&!sourceSta.getLocSts().equals("P")) { |
| | | News.error("出库操作库位状态不符合--状态, 库位号={},库位状态={}", wrkMast.getLocNo(), sourceSta.getLocSts()); |
| | | News.error("出库操作库位状态不符合--状态, 库位号={},库位状态={}", wrkMast.getSourceLocNo(), sourceSta.getLocSts()); |
| | | continue; |
| | | } |
| | | |
| | |
| | | } |
| | | } |
| | | LocMast sourceLoc = locMastService.selectById(wrkMast.getSourceLocNo()); |
| | | if(sourceLoc.getLocSts().equals("F") || sourceLoc.getLocSts().equals("D")){ |
| | | if(sourceLoc.getLocSts().equals("R") || sourceLoc.getLocSts().equals("D")){ |
| | | sourceLoc.setLocSts("R"); // R.出库预约 |
| | | sourceLoc.setModiTime(new Date()); |
| | | if (!locMastService.updateById(sourceLoc)) { |
| | |
| | | boolean success = true; |
| | | List<String> insideLoc = Utils.getGroupInsideLoc(one.getLocNo()); |
| | | for (String inside : insideLoc) { |
| | | if (!locMastService.selectById(inside).getLocSts().equals("O")) { |
| | | if (locMastService.selectById(inside).getLocSts().equals("P") |
| | | || locMastService.selectById(inside).getLocSts().equals("R") |
| | | || locMastService.selectById(inside).getLocSts().equals("S") |
| | | || locMastService.selectById(inside).getLocSts().equals("Q")) { |
| | | success = false; break; |
| | | } |
| | | } |
| | | |
| | | Integer steNo = this.hasCar(one.getLocNo()); |
| | | if (steNo != null) { |
| | | continue; |
| | | } |
| | | |
| | | if (success) { |
| | | loc = one; |
| | | break; |