From cc135449686b5a3fd3a46f2ba4656d62e11e4c12 Mon Sep 17 00:00:00 2001 From: he <109787524@qq.com> Date: Thu, 10 Apr 2025 10:40:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/Document/AuditDocumentService.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/IRaCIS.Core.Application/Service/Document/AuditDocumentService.cs b/IRaCIS.Core.Application/Service/Document/AuditDocumentService.cs index a17b742e6..42723632e 100644 --- a/IRaCIS.Core.Application/Service/Document/AuditDocumentService.cs +++ b/IRaCIS.Core.Application/Service/Document/AuditDocumentService.cs @@ -418,7 +418,10 @@ public class AuditDocumentService(IRepository _auditDocumentRepos })).CurrentPageData; List auditDocumentAddOrEdits = _mapper.Map>(data); - auditDocumentAddOrEdits.ForEach(x => x.IsUpdate = false); + auditDocumentAddOrEdits.ForEach(x => { + x.IsUpdate = false; + x.Id = null; + }); await addData(auditDocumentAddOrEdits); } @@ -432,7 +435,7 @@ public class AuditDocumentService(IRepository _auditDocumentRepos item.Children.ForEach(x => { x.ParentId = result.Id; x.IsUpdate = false; - + x.Id = null; }); if (item.Children.Count() > 0)