From 2dac67618c299ada924914e42b40c578c9194a79 Mon Sep 17 00:00:00 2001 From: he <109787524@qq.com> Date: Fri, 14 Mar 2025 17:10:22 +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 --- IRaCIS.Core.Application/Service/Doctor/AttachmentService.cs | 1 + IRaCIS.Core.Application/Service/Doctor/DTO/AttachmentModel.cs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/IRaCIS.Core.Application/Service/Doctor/AttachmentService.cs b/IRaCIS.Core.Application/Service/Doctor/AttachmentService.cs index beb55f6b1..b8577426a 100644 --- a/IRaCIS.Core.Application/Service/Doctor/AttachmentService.cs +++ b/IRaCIS.Core.Application/Service/Doctor/AttachmentService.cs @@ -167,6 +167,7 @@ namespace IRaCIS.Core.Application.Service public async Task DeleteAttachment(DeleteAttachment inDto) { var success = await _attachmentrepository.DeleteFromQueryAsync(t => inDto.Ids.Contains(t.Id)); + await _attachmentrepository.SaveChangesAsync(); return ResponseOutput.Ok(); } diff --git a/IRaCIS.Core.Application/Service/Doctor/DTO/AttachmentModel.cs b/IRaCIS.Core.Application/Service/Doctor/DTO/AttachmentModel.cs index 336a7f51e..53a6899d5 100644 --- a/IRaCIS.Core.Application/Service/Doctor/DTO/AttachmentModel.cs +++ b/IRaCIS.Core.Application/Service/Doctor/DTO/AttachmentModel.cs @@ -10,6 +10,8 @@ public string FullPath { get; set; } = string.Empty; public string FileName { get; set; } = string.Empty; public DateTime? CreateTime { get; set; } + + public DateTime? UpdateTime { get; set; } public int Language { get; set; } public bool ReUpload { get; set; } = false;