From 0b47d6ca0959a457d652488ec1dd6b20f995798b Mon Sep 17 00:00:00 2001
From: he <109787524@qq.com>
Date: Thu, 10 Apr 2025 10:32:15 +0800
Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=96=87=E4=BB=B6=E5=A4=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../IRaCIS.Core.Application.xml | 8 +++++
.../Service/Document/AuditDocumentService.cs | 34 +++++++++++++++----
2 files changed, 36 insertions(+), 6 deletions(-)
diff --git a/IRaCIS.Core.Application/IRaCIS.Core.Application.xml b/IRaCIS.Core.Application/IRaCIS.Core.Application.xml
index 41ddec493..43ac7613a 100644
--- a/IRaCIS.Core.Application/IRaCIS.Core.Application.xml
+++ b/IRaCIS.Core.Application/IRaCIS.Core.Application.xml
@@ -1409,6 +1409,14 @@
+
+
+ 新增文件夹
+
+
+
+
+
新增稽查文档
diff --git a/IRaCIS.Core.Application/Service/Document/AuditDocumentService.cs b/IRaCIS.Core.Application/Service/Document/AuditDocumentService.cs
index 405ebfce5..a17b742e6 100644
--- a/IRaCIS.Core.Application/Service/Document/AuditDocumentService.cs
+++ b/IRaCIS.Core.Application/Service/Document/AuditDocumentService.cs
@@ -62,12 +62,34 @@ public class AuditDocumentService(IRepository _auditDocumentRepos
return ResponseOutput.Ok(result.Id);
}
- ///
- /// 新增稽查文档
- ///
- ///
- ///
- [HttpPost]
+ ///
+ /// 新增文件夹
+ ///
+ ///
+ ///
+ ///
+ [HttpPost]
+ public async Task AddFolder(AuditDocumentAddOrEdit inDto)
+ {
+
+ if (await _auditDocumentRepository.AnyAsync(x => x.Name == inDto.Name && x.AuditDocumentTypeEnum == inDto.AuditDocumentTypeEnum && x.ParentId == inDto.ParentId))
+ {
+ throw new BusinessValidationFailedException(_localizer["AuditDocument_CanNotAddFolder"]);
+ }
+
+ List auditDocumentAddOrEdits = new List();
+
+ auditDocumentAddOrEdits.Add(inDto);
+ var result= await AddAuditDocument(auditDocumentAddOrEdits);
+ return ResponseOutput.Ok(result);
+ }
+
+ ///
+ /// 新增稽查文档
+ ///
+ ///
+ ///
+ [HttpPost]
public async Task AddAuditDocument(List inDto)
{
List resultData = new List();