From 3668079479184dbb34fe4e68d168a86a05a81071 Mon Sep 17 00:00:00 2001 From: he <109787524@qq.com> Date: Wed, 23 Apr 2025 10:48:16 +0800 Subject: [PATCH 1/2] =?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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IRaCIS.Core.Application/Service/Document/AuditDocumentService.cs b/IRaCIS.Core.Application/Service/Document/AuditDocumentService.cs index 78764963b..8c3e3a1b7 100644 --- a/IRaCIS.Core.Application/Service/Document/AuditDocumentService.cs +++ b/IRaCIS.Core.Application/Service/Document/AuditDocumentService.cs @@ -548,7 +548,7 @@ public class AuditDocumentService(IRepository _auditDocumentRepos void findParent(List allId, List current, List data) { allId.AddRange(current); - var parent = data.Where(x => current.Contains(x.Id)).Select(x => x.Id).ToList(); + var parent = data.Where(x => current.Contains(x.Id)).Select(x => x.ParentId).Where(x=>x!=null).Select(x=>(Guid)x).ToList(); if (parent.Count() > 0) { From bdeb7c464e8faed2a2b0a1c4431a07f34603d907 Mon Sep 17 00:00:00 2001 From: he <109787524@qq.com> Date: Wed, 23 Apr 2025 10:55:08 +0800 Subject: [PATCH 2/2] =?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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IRaCIS.Core.Application/Service/Document/AuditDocumentService.cs b/IRaCIS.Core.Application/Service/Document/AuditDocumentService.cs index 8c3e3a1b7..a3411fc42 100644 --- a/IRaCIS.Core.Application/Service/Document/AuditDocumentService.cs +++ b/IRaCIS.Core.Application/Service/Document/AuditDocumentService.cs @@ -554,7 +554,7 @@ public class AuditDocumentService(IRepository _auditDocumentRepos { - findChild(allId, parent, data); + findParent(allId, parent, data); } }