From a619299816f2f632c7c6ba3a1bb869e2c212797d Mon Sep 17 00:00:00 2001
From: fcx <2246384483@qq.com>
Date: 星期五, 19 十二月 2025 14:12:33 +0800
Subject: [PATCH] 对添加巡检单物料编码进行去重
---
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