From 67a8fc5b2772ab7f84f5b3cee399e42bcc811d1d Mon Sep 17 00:00:00 2001 From: Carl Date: Thu, 8 Jan 2026 12:16:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=85=A5=E5=AF=BC=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DOAN.Service/MES/Material/MmMaterialService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DOAN.Service/MES/Material/MmMaterialService.cs b/DOAN.Service/MES/Material/MmMaterialService.cs index aca121c..1e62b12 100644 --- a/DOAN.Service/MES/Material/MmMaterialService.cs +++ b/DOAN.Service/MES/Material/MmMaterialService.cs @@ -300,7 +300,7 @@ namespace DOAN.Service.BZFM var x = Context .Storageable(materialList) .SplitInsert(it => !it.Any()) - .WhereColumns(it => new { it.Id, it.MaterialCode }) //如果不是主键可以这样实现(多字段it=>new{it.x1,it.x2}) + .WhereColumns(it => it.Id) //如果不是主键可以这样实现(多字段it=>new{it.x1,it.x2}) .ToStorage(); var result = x.AsInsertable.ExecuteCommand(); //插入可插入部分;