| | |
| | | wrkDetl.setUnit(locDel.getUnit()); |
| | | wrkDetl.setSpecs(locDel.getSpecs()); |
| | | wrkDetl.setBatch(locDel.getBatch()); |
| | | wrkDetl.setAnfme(locDel.getAnfme()); |
| | | //库存数量 |
| | | wrkDetl.setStockQty(locDel.getAnfme()); |
| | | //单据数量 |
| | | wrkDetl.setAnfme(locDto.getAnfme()); |
| | | wrkDetl.setAppeTime(now); |
| | | wrkDetl.setAppeUser(userId); |
| | | wrkDetl.setModiTime(now); |
| | |
| | | wrkDetls.forEach(wrkDetl -> { |
| | | WrkDetl wrkDetl1 = new WrkDetl(); |
| | | BeanUtils.copyProperties(wrkDetl, wrkDetl1); |
| | | wrkDetl1.setAnfme(wrkDetl.getStockQty() - wrkDetl.getAnfme()); |
| | | wrkDetl1.setWrkNo(wokNo); |
| | | if (!wrkDetlService.insert(wrkDetl1)) { |
| | | throw new CoolException("任务档明细保存失败!!"); |
| | |
| | | throw new CoolException("修改库位状态失败"); |
| | | } |
| | | |
| | | wrkMast.setWrkCode(null); |
| | | |
| | | if (!wrkMastService.updateById(wrkMast)) { |
| | | throw new CoolException("任务档更新失败!!"); |
| | | } |
| | | // wrkMast.setWrkCode(null); |
| | | // |
| | | // if (!wrkMastService.updateById(wrkMast)) { |
| | | // throw new CoolException("任务档更新失败!!"); |
| | | // } |
| | | } |
| | | |
| | | |