#
luxiaotao1123
2021-03-13 d7c940005368685c9814ccd3fd2e5829097b7481
src/main/java/zy/cloud/wms/manager/service/impl/WorkServiceImpl.java
@@ -64,8 +64,10 @@
            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());
@@ -80,6 +82,13 @@
            if (!insert) {
                throw new CoolException("新增库存明细档失败");
            }
            } else {
                if (!locDetlService.incrementStock(node.getId(), comb.getMatnr(), comb.getAnfme())) {
                    throw new CoolException("新增库存明细档失败");
                }
            }
        }
        return R.ok();
    }