| | |
| | | if (!update) { |
| | | throw new CoolException("修改托盘资料档失败"); |
| | | } |
| | | LocDetl locDetl = locDetlService.getLocDetl(node.getId(), comb.getMatnr()); |
| | | if (locDetl == null) { |
| | | // 更新货位库存明细 |
| | | LocDetl locDetl = new LocDetl(); |
| | | locDetl = new LocDetl(); |
| | | locDetl.setLocNo(node.getName()); |
| | | locDetl.setNodeId(node.getId()); |
| | | locDetl.setZpallet(param.getZpallet()); |
| | |
| | | if (!insert) { |
| | | throw new CoolException("新增库存明细档失败"); |
| | | } |
| | | } else { |
| | | if (!locDetlService.incrementStock(node.getId(), comb.getMatnr(), comb.getAnfme())) { |
| | | throw new CoolException("新增库存明细档失败"); |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| | | return R.ok(); |
| | | } |