From b42a86922e37b195f3d6b4a8d7bfa52eba66b7bf Mon Sep 17 00:00:00 2001 From: he <109787524@qq.com> Date: Mon, 29 Sep 2025 11:01:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=B7=E8=B4=9D=E5=92=8C=E7=A7=BB=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/Document/AuditDocumentService.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/IRaCIS.Core.Application/Service/Document/AuditDocumentService.cs b/IRaCIS.Core.Application/Service/Document/AuditDocumentService.cs index 6af34842c..d25717b27 100644 --- a/IRaCIS.Core.Application/Service/Document/AuditDocumentService.cs +++ b/IRaCIS.Core.Application/Service/Document/AuditDocumentService.cs @@ -601,6 +601,12 @@ public class AuditDocumentService(IRepository _auditDocumentRepos throw new BusinessValidationFailedException(_localizer["AuditDocument_CanNotMove"]); } + await CopyFileOrFolder(inDto); + + await DeleteAuditDocument(new DeleteAuditDocumentInDto() + { + Ids = inDto.Ids + }); return ResponseOutput.Ok(); } @@ -677,6 +683,7 @@ public class AuditDocumentService(IRepository _auditDocumentRepos auditDocumentAddOrEdits.ForEach(x => { x.IsUpdate = false; + x.IsAuthorization = false; x.Id = null; x.ParentId = inDto.ParentId; });