| | |
| | | WaitPakin waitPakin1=new WaitPakin(); |
| | | waitPakin1.sync(wrkDetl); |
| | | locMast1 =commonService.getLocNo2(waitPakin1,arr,0,type,1); |
| | | if (locMast1 == null) { |
| | | basDevp.setArea("未找到空库位"); |
| | | basDevpService.updateById(basDevp); |
| | | throw new CoolException("未找到空库位"); |
| | | } |
| | | |
| | | //更新货物所在库位的深浅号 |
| | | wrkDetl.setSource(locMast1.getLocAttribute()); |
| | | wrkDetlService.update(wrkDetl,new EntityWrapper<WrkDetl>().eq("wrk_no", wrkDetl.getWrkNo())); |
| | |
| | | int type=Cools.isEmpty(waitPakins.get(0).getBeBatch())?1:waitPakins.get(0).getBeBatch(); |
| | | // 检索库位 |
| | | locMast1 =commonService.getLocNo2(waitPakins.get(0),arr,0,type,1); |
| | | if (locMast1 == null) { |
| | | basDevp.setArea("未找到空库位"); |
| | | basDevpService.updateById(basDevp); |
| | | throw new CoolException("未找到空库位"); |
| | | } |
| | | |
| | | int mbz=devpNo*10+Integer.valueOf(locMast1.getLocNo().substring(6)); |
| | | //正常入库 |
| | | workNo = commonService.getWorkNo(0); |