| | |
| | | throw new CoolException("源库位不存在"); |
| | | } |
| | | |
| | | if (!sourceLocMast.getLocSts().equals("F")) { |
| | | throw new CoolException("源库位不处于在库状态"); |
| | | } |
| | | // if (!sourceLocMast.getLocSts().equals("F")) { |
| | | // throw new CoolException("源库位不处于在库状态"); |
| | | // } |
| | | |
| | | LocMast locMast = locMastService.queryByLoc(param.getLocNo()); |
| | | if (null == locMast) { |
| | | throw new CoolException("目标库位不存在"); |
| | | } |
| | | |
| | | if (!locMast.getLocSts().equals("O")) { |
| | | throw new CoolException("目标库位不处于空库状态"); |
| | | } |
| | | // if (!locMast.getLocSts().equals("O")) { |
| | | // throw new CoolException("目标库位不处于空库状态"); |
| | | // } |
| | | |
| | | // 获取工作号 |
| | | int workNo = getWorkNo(WrkIoType.LOC_MOVE.id); |
| | |
| | | throw new CoolException("保存工作档失败"); |
| | | } |
| | | |
| | | sourceLocMast.setLocSts("R"); |
| | | sourceLocMast.setModiTime(new Date()); |
| | | locMastService.updateById(sourceLocMast); |
| | | |
| | | locMast.setLocSts("S"); |
| | | locMast.setModiTime(new Date()); |
| | | locMastService.updateById(locMast); |
| | | // sourceLocMast.setLocSts("R"); |
| | | // sourceLocMast.setModiTime(new Date()); |
| | | // locMastService.updateById(sourceLocMast); |
| | | // |
| | | // locMast.setLocSts("S"); |
| | | // locMast.setModiTime(new Date()); |
| | | // locMastService.updateById(locMast); |
| | | |
| | | return true; |
| | | } |