| | |
| | | throw new CoolException(wrkMast.getWrkNo() + "保存工作主档历史档失败"); |
| | | } |
| | | |
| | | // String sourceLocNo = wrkMast.getSourceLocNo().trim(); |
| | | String sourceLocNo = wrkMast.getSourceLocNo().trim(); |
| | | |
| | | // 更新工作档数据状态 |
| | | wrkMast.setIoType(wrkMast.getIoType() - 50); // 入出库类型: 103->53,104->54,107->57 |
| | |
| | | throw new CoolException(wrkMast.getWrkNo() + "修改目标库位状态 Q.拣料/盘点/并板再入库"); |
| | | } |
| | | // 源库位库存明细转移到目标库位 |
| | | if (!locDetlService.updateLocNo(wrkMast.getLocNo(), wrkMast.getSourceLocNo())) { |
| | | if (!locDetlService.updateLocNo(wrkMast.getLocNo(), sourceLocNo)) { |
| | | throw new CoolException(wrkMast.getLocNo() + "任务库存明细转移失败!!!"); |
| | | } |
| | | |
| | | // 修改源库位状态 O.空库位 |
| | | LocMast sourceLocMast = locMastService.selectById(wrkMast.getSourceLocNo()); |
| | | LocMast sourceLocMast = locMastService.selectById(sourceLocNo); |
| | | if (sourceLocMast.getLocSts().equals("P")) { |
| | | sourceLocMast.setLocSts("O"); |
| | | sourceLocMast.setModiTime(new Date()); |
| | | if (!locMastService.updateById(sourceLocMast)) { |
| | | throw new CoolException(wrkMast.getWrkNo() + "修改源库位状态 O.空库位"); |
| | | } |
| | | locDetlService.delete(new EntityWrapper<LocDetl>().eq("loc_no", wrkMast.getSourceLocNo())); |
| | | locDetlService.delete(new EntityWrapper<LocDetl>().eq("loc_no", sourceLocNo)); |
| | | } |
| | | |
| | | // 条码设备处理 |