From ed8133138ecfacdc7564197e4fbf996aa4b4ebf4 Mon Sep 17 00:00:00 2001
From: xwt <2740516069@qq.com>
Date: 星期四, 16 十月 2025 16:59:59 +0800
Subject: [PATCH] IQC PLM图纸地址修改
---
StandardInterface/MES.Service/service/BasicData/Production/ProductionOrderManager.cs | 24 +++++++++++++++++++-----
1 files changed, 19 insertions(+), 5 deletions(-)
diff --git a/StandardInterface/MES.Service/service/BasicData/Production/ProductionOrderManager.cs b/StandardInterface/MES.Service/service/BasicData/Production/ProductionOrderManager.cs
index d4da44a..31efed9 100644
--- a/StandardInterface/MES.Service/service/BasicData/Production/ProductionOrderManager.cs
+++ b/StandardInterface/MES.Service/service/BasicData/Production/ProductionOrderManager.cs
@@ -50,12 +50,25 @@
List<Womcab> mesRohInDatas)
{
var decimals = mesRohInDatas.Select(s => s.Id).ToArray();
- var update = base.DeleteById(womcaaWW.Id);
- var insertOrUpdate = db
- .Deleteable<Womcab>().In(decimals)
- .ExecuteCommand() > 0;
- if (update && insertOrUpdate) return true;
+ var update = true;
+ if (womcaaWW != null)
+ {
+ if (womcaaWW.Id != null)
+ {
+ update = base.DeleteById(womcaaWW.Id);
+ }
+ }
+ var insertOrUpdate = true;
+ if (decimals != null || decimals.Length > 0)
+ {
+ insertOrUpdate = db.Deleteable<Womcab>().In(decimals).ExecuteCommand() > 0;
+ }
+
+ if (update && insertOrUpdate)
+ {
+ return true;
+ }
throw new NotImplementedException("鏇存柊澶辫触");
}
@@ -144,6 +157,7 @@
Fsubid = erpDto.FSUBID,
Fsubbillnoseq = erpDto.FSUBBILLNOSEQ,
Fsubbillno = erpDto.FSUBBILLNO,
+ Caa020 = erpDto.FSUBBILLNO,
SrcBillType = erpDto.FSrcBillType,
SrcBillNo = erpDto.FSrcBillNo,
SrcBillentryseq = erpDto.FSrcBillEntrySeq,
--
Gitblit v1.9.3