From aace875f295939f210ff8d01e388d411aa89a725 Mon Sep 17 00:00:00 2001 From: 啊鑫 <t2856754968@163.com> Date: 星期五, 24 一月 2025 16:17:45 +0800 Subject: [PATCH] 11 --- StandardPda/MES.Service/service/BasicData/MesSupplierManager.cs | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/StandardPda/MES.Service/service/BasicData/MesSupplierManager.cs b/StandardPda/MES.Service/service/BasicData/MesSupplierManager.cs index ddfc488..9a6dc5a 100644 --- a/StandardPda/MES.Service/service/BasicData/MesSupplierManager.cs +++ b/StandardPda/MES.Service/service/BasicData/MesSupplierManager.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; @@ -118,6 +119,7 @@ } else { + mesId = GetSeqUtil.GetSeq("SEQ_BASEINFO_ID"); var entity = new MesLinkU9 { CreateDate = DateTime.Now, @@ -126,7 +128,7 @@ OrgId = se.FUseOrgId, TableType = "MES_SUPPLIER" }; - mesId = Db.Insertable(entity).ExecuteReturnIdentity(); + Db.Insertable(entity).ExecuteCommand(); } var mesSupplier = new MesSupplier @@ -199,7 +201,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