From a5f7e03f6c3f91731b22a3e851f5f9d3eb24a858 Mon Sep 17 00:00:00 2001 From: he <109787524@qq.com> Date: Tue, 1 Apr 2025 16:05:13 +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 | 10 +++++----- IRaCIS.Core.Application/Service/Document/_MapConfig.cs | 1 + 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/IRaCIS.Core.Application/Service/Document/AuditDocumentService.cs b/IRaCIS.Core.Application/Service/Document/AuditDocumentService.cs index 4cf29b937..8b38a3d86 100644 --- a/IRaCIS.Core.Application/Service/Document/AuditDocumentService.cs +++ b/IRaCIS.Core.Application/Service/Document/AuditDocumentService.cs @@ -151,14 +151,14 @@ public class AuditDocumentService(IRepository _auditDocumentRepos /// /// [HttpPost] - public async Task> GetBreadcrumbData(GetBreadcrumbDataInDto inDto) + public async Task> GetBreadcrumbData(GetBreadcrumbDataInDto inDto) { - List result=new List(); + List result=new List(); await findParent(result, inDto.Id); - async Task findParent(List datas, Guid id) + async Task findParent(List datas, Guid id) { - var data= await _auditDocumentRepository.Where(x => x.Id == inDto.Id).ProjectTo(_mapper.ConfigurationProvider).FirstNotNullAsync(); + var data= await _auditDocumentRepository.Where(x => x.Id == inDto.Id).ProjectTo(_mapper.ConfigurationProvider).FirstNotNullAsync(); datas.Add(data); if (data.ParentId != null) { @@ -237,7 +237,7 @@ public class AuditDocumentService(IRepository _auditDocumentRepos } - public void GetParentId(List parentIds, List ids, List dataList) + private void GetParentId(List parentIds, List ids, List dataList) { var parentid = dataList.Where(x => ids.Contains(x.Id.Value) && x.ParentId != null).Select(x => x.ParentId.Value).ToList(); diff --git a/IRaCIS.Core.Application/Service/Document/_MapConfig.cs b/IRaCIS.Core.Application/Service/Document/_MapConfig.cs index 15e80a9a4..bdb49c496 100644 --- a/IRaCIS.Core.Application/Service/Document/_MapConfig.cs +++ b/IRaCIS.Core.Application/Service/Document/_MapConfig.cs @@ -15,6 +15,7 @@ namespace IRaCIS.Core.Application.Service var userId = Guid.Empty; var isEn_Us = false; CreateMap(); + CreateMap(); CreateMap(); CreateMap(); CreateMap();