From 1653a432611f93b2595efbd335ae2d83b7e42f5c Mon Sep 17 00:00:00 2001 From: 啊鑫 <t2856754968@163.com> Date: 星期五, 14 二月 2025 08:25:39 +0800 Subject: [PATCH] 采购订单的项目,供应商,物料增加U9id的转换 --- StandardPda/MES.Service/service/BasicData/MesProjectManager.cs | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/StandardPda/MES.Service/service/BasicData/MesProjectManager.cs b/StandardPda/MES.Service/service/BasicData/MesProjectManager.cs index aebb6d5..865a836 100644 --- a/StandardPda/MES.Service/service/BasicData/MesProjectManager.cs +++ b/StandardPda/MES.Service/service/BasicData/MesProjectManager.cs @@ -140,7 +140,7 @@ OperatorsId = supplier.OperatorsID, DocumentStatus = supplier.FDocumentStatus, ForbidStatus = supplier.FForbidStatus, - UseOrgId = se.FUseOrgId, + UseOrgId = se.FUseOrgId }; list.Add(mesSupplier); @@ -152,8 +152,9 @@ private bool InsertOrUpdate(SqlSugarScope db, List<MesProject> entity) { DeleteSupplier(entity); - - var insert = db.Insertable(entity).ExecuteCommand(); + + var insert = db.Insertable(entity).PageSize(1).IgnoreColumnsNull() + .ExecuteCommand(); return insert > 0; } } \ No newline at end of file -- Gitblit v1.9.3