From e191eb959028eb2177497498e57205a3bdba5d9d Mon Sep 17 00:00:00 2001
From: hao <1836460075@qq.com>
Date: 星期二, 20 五月 2025 09:38:36 +0800
Subject: [PATCH] 添加供协送货单接口列表route字段
---
StandardInterface/MES.Service/service/WomcaaManager.cs | 9 +++++++--
StandardInterface/MESApplication/Controllers/SRM/MesDeliveryNoteController.cs | 1 +
StandardInterface/MESApplication/Controllers/SRM/MesDeliveryNoteBarcodeController.cs | 1 +
3 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/StandardInterface/MES.Service/service/WomcaaManager.cs b/StandardInterface/MES.Service/service/WomcaaManager.cs
index c59443d..7a4d1ca 100644
--- a/StandardInterface/MES.Service/service/WomcaaManager.cs
+++ b/StandardInterface/MES.Service/service/WomcaaManager.cs
@@ -77,6 +77,7 @@
.Deleteable<Womcab>().In(decimals)
.ExecuteCommand() > 0;
+
if (update && insertOrUpdate) return true;
throw new NotImplementedException("鏇存柊澶辫触");
}
@@ -265,8 +266,12 @@
var entity = Db.Queryable<Womcab>()
.Where(s => s.Erpid == womcab.Erpid).Single();
- if (entity != null) womcab.Id = entity.Id;
-
+ if (entity != null)
+ {
+ // 鍒犻櫎宸叉湁鐨� Erpid 鐩稿叧鐨� Womcab 鏁版嵁
+ // Db.Deleteable<Womcab>().Where(s => s.Erpid == womcab.Erpid).ExecuteCommand();
+ womcab.Id = entity.Id;
+ }
womcabList.Add(womcab);
}
diff --git a/StandardInterface/MESApplication/Controllers/SRM/MesDeliveryNoteBarcodeController.cs b/StandardInterface/MESApplication/Controllers/SRM/MesDeliveryNoteBarcodeController.cs
index 6b195ec..84d1a97 100644
--- a/StandardInterface/MESApplication/Controllers/SRM/MesDeliveryNoteBarcodeController.cs
+++ b/StandardInterface/MESApplication/Controllers/SRM/MesDeliveryNoteBarcodeController.cs
@@ -31,6 +31,7 @@
entity.Data = JsonConvert.SerializeObject(barcode);
entity.Status = 1;
entity.CreateBy = "PL017";
+ entity.Route= barcode.DeliveryNo;
try
{
dynamic resultInfos = new ExpandoObject();
diff --git a/StandardInterface/MESApplication/Controllers/SRM/MesDeliveryNoteController.cs b/StandardInterface/MESApplication/Controllers/SRM/MesDeliveryNoteController.cs
index 6fff745..fa4d7a1 100644
--- a/StandardInterface/MESApplication/Controllers/SRM/MesDeliveryNoteController.cs
+++ b/StandardInterface/MESApplication/Controllers/SRM/MesDeliveryNoteController.cs
@@ -31,6 +31,7 @@
entity.Data = JsonConvert.SerializeObject(delivery);
entity.Status = 1;
entity.CreateBy = "PL017";
+ entity.Route = delivery.DeliveryNote.DeliveryNo;
try
{
dynamic resultInfos = new ExpandoObject();
--
Gitblit v1.9.3