自动化立体仓库 - WMS系统
123
zhangchao
2024-09-03 be9f5efd7badcaab6f1746e76ec41ee7f91d37c7
src/main/java/com/zy/third/erp/task/ERPInOrOutService.java
@@ -57,7 +57,7 @@
        // 如果单据不存在则添加;如果单据存在,作业中无法修改,反之则修改单据
        if (!Cools.isEmpty(order)) {
            if (order.getSettle() > 1L) {
                throw new CoolException(inHedTB.getBillNo() + "正在出库,无法修改单据");
                throw new CoolException(inHedTB.getBillNo() + "正在入库,无法修改单据");
            }
            orderService.remove(order.getId());
        }
@@ -143,6 +143,7 @@
            if (!orderDetlService.insert(orderDetl)) {
                throw new CoolException("生成单据明细失败,请联系管理员");
            }
            log.info("入库单据成功详情,{}", orderDetl);
        }
        return true;
    }
@@ -244,6 +245,7 @@
            if (!orderDetlService.insert(orderDetl)) {
                throw new CoolException("生成单据明细失败,请联系管理员");
            }
            log.info("出库单据成功详情,{}", orderDetl);
        }
        return true;
    }