From 1cb5959adf96911101864488a67e8b31b8de658f Mon Sep 17 00:00:00 2001 From: zjh <2207896513@qq.com> Date: 星期五, 08 八月 2025 15:31:38 +0800 Subject: [PATCH] 产测中箱码、栈板码绑定sn添加日志表记录 --- StandardPda/MES.Service/service/BasicData/SalesDeliveryNoticeManager.cs | 16 +++++++++++++++- 1 files changed, 15 insertions(+), 1 deletions(-) diff --git a/StandardPda/MES.Service/service/BasicData/SalesDeliveryNoticeManager.cs b/StandardPda/MES.Service/service/BasicData/SalesDeliveryNoticeManager.cs index dcdbff2..34d57b6 100644 --- a/StandardPda/MES.Service/service/BasicData/SalesDeliveryNoticeManager.cs +++ b/StandardPda/MES.Service/service/BasicData/SalesDeliveryNoticeManager.cs @@ -169,6 +169,11 @@ var single = base.GetSingle(it => it.ErpId == erpDto.ErpID); if (single != null) salesOrder.Id = single.Id; + if (salesOrder.ErpId is null || salesOrder.ErpId=="") + { + throw new NotImplementedException( + $"琛ㄥごErpID涓嶈兘涓虹┖"); + } return salesOrder; } @@ -264,7 +269,16 @@ FLINE_NO = erpDto.FLINE_NO }; - + if (salesOrderSub.ErpLineId is null || salesOrderSub.ErpLineId=="") + { + throw new NotImplementedException( + $"鏄庣粏琛孍rpID锛圗RP琛孖D锛変笉鑳戒负绌�"); + } + if (salesOrderSub.ErpHeadId is null || salesOrderSub.ErpHeadId == "") + { + throw new NotImplementedException( + $"鏄庣粏琛孍HID锛圗RP澶碔D锛変笉鑳戒负绌�"); + } var single = _SalesDeliveryDetailManager.GetSingle(it => it.ErpLineId == salesOrderSub.ErpLineId); if (single != null) salesOrderSub.Id = single.Id; -- Gitblit v1.9.3