| | |
| | | wrkMast.setLocNo(dto.getLocNo()); |
| | | wrkMast.setBarcode(param.getBarcode()); // 托盘码 |
| | | wrkMast.setModiTime(now); |
| | | if(wrkMast.getIoType()==57){ |
| | | wrkMast.setMk("Y"); |
| | | } |
| | | wrkMast.setUpdMk("");//允许再次移库 |
| | | if (!wrkMastService.updateById(wrkMast)) { |
| | | throw new CoolException("更新工作档数据状态失败"); |
| | |
| | | |
| | | // 修改库位状态 Q.拣料/盘点/并板再入库 |
| | | locMast.setLocSts("Q"); |
| | | locMast.setMk(wrkMast.getMk()); |
| | | locMast.setModiTime(new Date()); |
| | | if (!locMastService.updateById(locMast)) { |
| | | throw new CoolException("修改库位状态失败"); |
| | |
| | | throw new CoolException(sourceLocMast.getLocNo() + "库位状态不处于P.拣料盘点出库"); |
| | | } |
| | | |
| | | // locMast.setMk(sourceLocMast.getMk()); |
| | | // if (!locMastService.updateById(locMast)) { |
| | | // throw new CoolException("修改是否盘点状态失败"); |
| | | // } |
| | | //获取源库存信息并迁移至新库位 |
| | | List<LocDetl> locDetls = locDetlService.selectList(new EntityWrapper<LocDetl>() |
| | | .eq("loc_no", sourceLocMast.getLocNo())); |
| | |
| | | // 修改源库位状态 P ===>> O |
| | | if (sourceLocMast.getLocSts().equals("P")) { |
| | | sourceLocMast.setLocSts("O"); |
| | | //更换盘点标记为N |
| | | sourceLocMast.setMk("N"); |
| | | sourceLocMast.setBarcode(""); |
| | | sourceLocMast.setModiTime(now); |
| | | sourceLocMast.setIoTime(now); |