From 4315ea757113e86cbfa26d190bd16cfbae9bd338 Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Thu, 19 May 2022 15:59:25 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E9=80=9A=E7=9F=A5=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/Management/SystemNoticeService.cs | 2 +- .../Service/QC/NoneDicomStudyService.cs | 18 +++++++++++++++--- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/IRaCIS.Core.Application/Service/Management/SystemNoticeService.cs b/IRaCIS.Core.Application/Service/Management/SystemNoticeService.cs index 83aa3aa1c..9bbe12288 100644 --- a/IRaCIS.Core.Application/Service/Management/SystemNoticeService.cs +++ b/IRaCIS.Core.Application/Service/Management/SystemNoticeService.cs @@ -100,7 +100,7 @@ namespace IRaCIS.Core.Application.Service /// 设置已读 - + [HttpPut("{systemNoticeId:guid}")] public async Task SetSystemNoticeHaveRead(Guid systemNoticeId) { var systemNotice = (await _systemNoticeRepository.FirstOrDefaultAsync(t => t.Id == systemNoticeId)).IfNullThrowException(); diff --git a/IRaCIS.Core.Application/Service/QC/NoneDicomStudyService.cs b/IRaCIS.Core.Application/Service/QC/NoneDicomStudyService.cs index f55a43c2b..60b8c52a6 100644 --- a/IRaCIS.Core.Application/Service/QC/NoneDicomStudyService.cs +++ b/IRaCIS.Core.Application/Service/QC/NoneDicomStudyService.cs @@ -205,6 +205,15 @@ namespace IRaCIS.Core.Application.Contracts } + //[HttpGet] + //public async Task NoneDicomFilePreview(string relativePath) + //{ + // var rootPath = Directory.GetParent(_hostEnvironment.ContentRootPath.TrimEnd('\\')).IfNullThrowException().FullName; + + // var _fileStorePath = Path.Combine(rootPath, relativePath); + + + //} /// /// 上传非Dicom 文件 支持压缩包 @@ -296,11 +305,14 @@ namespace IRaCIS.Core.Application.Contracts private string GetStoreFileName(string fileName) { - var realName = fileName; + //var realName = fileName; - var fileNameEX = Path.GetExtension(realName); + //var fileNameEX = Path.GetExtension(realName); - var trustedFileNameForFileStorage = Guid.NewGuid().ToString() + fileNameEX; + //var trustedFileNameForFileStorage = Guid.NewGuid().ToString() + fileNameEX; + + + var trustedFileNameForFileStorage = Guid.NewGuid().ToString() + fileName; return trustedFileNameForFileStorage; }