From 3296c70dfc999ff1d09ac28d6205197c11825c5f Mon Sep 17 00:00:00 2001
From: zjh <2207896513@qq.com>
Date: 星期四, 22 五月 2025 14:58:26 +0800
Subject: [PATCH] 1,来料检添加‘往期检验履历’,‘最大抽检数量’两个字段 2,一致性核对添加图片是否上传校验

---
 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