From 049fc9943d3baf55c64faf5fbd0e944c58c80a2b Mon Sep 17 00:00:00 2001 From: zyf <1071160500@qq.com> Date: 星期五, 06 六月 2025 10:15:02 +0800 Subject: [PATCH] 入库检更新工单完工时间 --- MES.Service/service/WomcaaManager.cs | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/MES.Service/service/WomcaaManager.cs b/MES.Service/service/WomcaaManager.cs index da930bf..b72a183 100644 --- a/MES.Service/service/WomcaaManager.cs +++ b/MES.Service/service/WomcaaManager.cs @@ -4,6 +4,7 @@ using SqlSugar; namespace MES.Service.service; +using DbType = System.Data.DbType; public class WomcaaManager : Repository<Womcaa> { @@ -16,6 +17,7 @@ public bool SaveList(List<ErpWOM> rohIns) { var result = rohIns.Select(Save).ToList(); + return result.All(b => b); } @@ -55,8 +57,18 @@ var orUpdate = base.Insert(mesWomcaa); var baOrUpdate = _womcabManager.InsertRange(mesWomcabs); + + var inputParam = mesWomcaa.Erpid; + + // 浣跨敤 SqlSugar 鎵ц瀛樺偍杩囩▼ + Db.Ado.ExecuteCommand( + "BEGIN PRC_UPDATE_DAA(:P_ID); END;", + new SugarParameter("P_ID", inputParam, + DbType.Decimal)); + if (orUpdate && baOrUpdate) return true; throw new NotImplementedException("鎻掑叆鎴栨洿鏂板け璐�"); + } private bool UpdateData(SqlSugarScope db, Womcaa mesWomcaa, -- Gitblit v1.9.3