From e66255ea9dafedb0bc2c2f0787af2097cca549d6 Mon Sep 17 00:00:00 2001 From: zyf <1071160500@qq.com> Date: 星期二, 03 六月 2025 09:10:11 +0800 Subject: [PATCH] 更新BOM接口和采购申请接口 --- MES.Service/service/WomcaaManager.cs | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/MES.Service/service/WomcaaManager.cs b/MES.Service/service/WomcaaManager.cs index 539aa6e..b72a183 100644 --- a/MES.Service/service/WomcaaManager.cs +++ b/MES.Service/service/WomcaaManager.cs @@ -2,9 +2,9 @@ using MES.Service.Dto.webApi; using MES.Service.Modes; using SqlSugar; -using DbType = System.Data.DbType; namespace MES.Service.service; +using DbType = System.Data.DbType; public class WomcaaManager : Repository<Womcaa> { @@ -17,6 +17,7 @@ public bool SaveList(List<ErpWOM> rohIns) { var result = rohIns.Select(Save).ToList(); + return result.All(b => b); } @@ -56,9 +57,9 @@ 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;", @@ -67,6 +68,7 @@ if (orUpdate && baOrUpdate) return true; throw new NotImplementedException("鎻掑叆鎴栨洿鏂板け璐�"); + } private bool UpdateData(SqlSugarScope db, Womcaa mesWomcaa, -- Gitblit v1.9.3