From 2b38e425925d194c5cd4767c8c13e5f5d23ab120 Mon Sep 17 00:00:00 2001 From: 啊鑫 <t2856754968@163.com> Date: 星期五, 24 一月 2025 09:54:20 +0800 Subject: [PATCH] 11 --- StandardPda/MES.Service/service/BasicData/MesProjectManager.cs | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/StandardPda/MES.Service/service/BasicData/MesProjectManager.cs b/StandardPda/MES.Service/service/BasicData/MesProjectManager.cs index 58bc851..f6e43cc 100644 --- a/StandardPda/MES.Service/service/BasicData/MesProjectManager.cs +++ b/StandardPda/MES.Service/service/BasicData/MesProjectManager.cs @@ -1,6 +1,7 @@ 锘縰sing MES.Service.DB; using MES.Service.Dto.webApi; using MES.Service.Modes; +using MES.Service.util; using SqlSugar; namespace MES.Service.service.BasicData; @@ -115,6 +116,8 @@ } else { + mesId = GetSeqUtil.GetSeq("SEQ_ID"); + var entity = new MesLinkU9 { CreateDate = DateTime.Now, @@ -123,7 +126,8 @@ OrgId = se.FUseOrgId, TableType = "MES_PROJECT" }; - mesId = Db.Insertable(entity).ExecuteReturnIdentity(); + Db.Insertable(entity).ExecuteCommand(); + // Db.Insertable(entity).ExecuteReturnIdentity(); } var mesSupplier = new MesProject @@ -149,7 +153,7 @@ { 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