From b6da27ac07273ba8ed762b74c2532c0318f82ac3 Mon Sep 17 00:00:00 2001 From: he <109787524@qq.com> Date: Mon, 3 Mar 2025 17:20:38 +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 --- .../Document/DTO/TrialFinalRecordViewModel.cs | 5 +++++ .../Service/Document/TrialNormalRecordService.cs | 12 ++++++++++++ 2 files changed, 17 insertions(+) diff --git a/IRaCIS.Core.Application/Service/Document/DTO/TrialFinalRecordViewModel.cs b/IRaCIS.Core.Application/Service/Document/DTO/TrialFinalRecordViewModel.cs index 7e4e89fc5..207e96681 100644 --- a/IRaCIS.Core.Application/Service/Document/DTO/TrialFinalRecordViewModel.cs +++ b/IRaCIS.Core.Application/Service/Document/DTO/TrialFinalRecordViewModel.cs @@ -21,6 +21,11 @@ public class TrialFinalRecordView : TrialFinalRecordAddOrEdit } +public class DeleteTrialNormalRecordListInDto +{ + public List Ids { get; set; } +} + public class AuthorizedTrialFinalRecordInDto { public List Ids { get; set; } diff --git a/IRaCIS.Core.Application/Service/Document/TrialNormalRecordService.cs b/IRaCIS.Core.Application/Service/Document/TrialNormalRecordService.cs index 4316455bd..531fd4908 100644 --- a/IRaCIS.Core.Application/Service/Document/TrialNormalRecordService.cs +++ b/IRaCIS.Core.Application/Service/Document/TrialNormalRecordService.cs @@ -111,6 +111,18 @@ public class TrialNormalRecordService(IRepository _trialNorma return ResponseOutput.Ok(); } + /// + /// 批量删除一般文件记录 + /// + /// + /// + [HttpPost] + public async Task DeleteTrialNormalRecordList(DeleteTrialNormalRecordListInDto inDto) + { + var success = await _trialNormalRecordRepository.DeleteFromQueryAsync(t => inDto.Ids.Contains(t.Id), true); + return ResponseOutput.Ok(); + } + }