| | |
| | | LocMast sourceLocMast = locMastService.selectById(sourceLocNo); |
| | | if (sourceLocMast.getLocSts().equals("P")) { |
| | | sourceLocMast.setLocSts("O"); |
| | | sourceLocMast.setBarcode(""); |
| | | sourceLocMast.setModiTime(new Date()); |
| | | if (!locMastService.updateById(sourceLocMast)) { |
| | | throw new CoolException(wrkMast.getWrkNo() + "修改源库位状态 O.空库位"); |
| | |
| | | if(!Cools.isEmpty(deeplocs)){ |
| | | for(String deepLocNo : deeplocs) { |
| | | LocMast deepLoc = locMastService.selectById(deepLocNo); |
| | | // WrkMast waitWrkMast = wrkMastMapper.selectByLocNo(deepLocNo); |
| | | if(deepLoc != null && !deepLoc.getLocSts().equals("F") && !deepLoc.getLocSts().equals("D") && !deepLoc.getLocSts().equals("O")){ |
| | | WrkMast waitWrkMast = wrkMastMapper.selectByLocNo1(deepLocNo); |
| | | if(deepLoc != null && !deepLoc.getLocSts().equals("F") |
| | | && !deepLoc.getLocSts().equals("D") |
| | | && !deepLoc.getLocSts().equals("O") |
| | | && (waitWrkMast!=null && waitWrkMast.getWrkSts()<17)){ |
| | | News.error("移库再回库时,深库位组深库位状态为作业中 ===>> deepLoc={},loc_sts={}", deepLoc.getLocNo(), deepLoc.getLocSts()); |
| | | flag = true; |
| | | break; |