From 569bb53b544e2e178b64e229d45f047da032af36 Mon Sep 17 00:00:00 2001
From: hao <1836460075@qq.com>
Date: 星期五, 27 六月 2025 10:25:14 +0800
Subject: [PATCH] 销售退货,发货,采购退货申请反审核防呆
---
StandardInterface/MES.Service/service/WomcaaManager.cs | 26 ++++++++++++++++++++------
1 files changed, 20 insertions(+), 6 deletions(-)
diff --git a/StandardInterface/MES.Service/service/WomcaaManager.cs b/StandardInterface/MES.Service/service/WomcaaManager.cs
index bfc2467..2c03d6f 100644
--- a/StandardInterface/MES.Service/service/WomcaaManager.cs
+++ b/StandardInterface/MES.Service/service/WomcaaManager.cs
@@ -72,14 +72,27 @@
List<Womcab> mesWomcabs)
{
var decimals = mesWomcabs.Select(s => s.Id).ToArray();
- var update = base.DeleteById(mesWomcaa.Id);
- var insertOrUpdate = db
- .Deleteable<Womcab>().In(decimals)
- .ExecuteCommand() > 0;
+ var update = true;
+ if (mesWomcaa != null)
+ {
+ if (mesWomcaa.Id != null)
+ {
+ update = base.DeleteById(mesWomcaa.Id);
+ }
+ }
+ var insertOrUpdate = true;
+ if (decimals != null || decimals.Length > 0)
+ {
+ insertOrUpdate = db.Deleteable<Womcab>().In(decimals).ExecuteCommand() > 0;
+ }
- if (update && insertOrUpdate) return true;
+ if (update && insertOrUpdate)
+ {
+ return true;
+ }
throw new NotImplementedException("鏇存柊澶辫触");
+
}
private Womcaa MapErpCAAtoWomcaa(ErpCAA dto)
@@ -210,7 +223,8 @@
Jt=dto.JT,
Xscn=dto.XS_CN,
Sjxs=dto.SJ_xs,
- Nextgx=dto.NEXT_Gx
+ Nextgx=dto.NEXT_Gx,
+ Rks=dto.RKS,
//娌冨皵鏂板
// WR_F_SCDD_SCTZD = dto.F_SCDD_SCTZD
//WR_F_SCDD_XH = dto.F_SCDD_XH
--
Gitblit v1.9.3