From 095db5786b8bb0dac6569c4c590dfc85ce50a49d Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Fri, 13 Sep 2024 17:54:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=98=A0=E5=B0=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IRaCIS.Core.Application/Service/QC/_MapConfig.cs | 9 ++++++--- IRaCIS.Core.Domain/BaseModel/Entity.cs | 12 ------------ 2 files changed, 6 insertions(+), 15 deletions(-) diff --git a/IRaCIS.Core.Application/Service/QC/_MapConfig.cs b/IRaCIS.Core.Application/Service/QC/_MapConfig.cs index 7420acff1..e6b935fe5 100644 --- a/IRaCIS.Core.Application/Service/QC/_MapConfig.cs +++ b/IRaCIS.Core.Application/Service/QC/_MapConfig.cs @@ -486,11 +486,14 @@ namespace IRaCIS.Core.Application.Service // 临床数据上传 路径拼接返回 CreateMap() - .ForMember(d => d.FullFilePath, u => u.MapFrom(s => s.Path + "?access_token=" + token)); + .ForMember(d => d.CreateUser, u => u.MapFrom(s => s.CreateUser.FullName)) + .ForMember(d => d.FullFilePath, u => u.MapFrom(s => s.Path )); CreateMap() - .ForMember(d => d.FullFilePath, u => u.MapFrom(s => s.Path + "?access_token=" + token)); + .ForMember(d => d.CreateUser, u => u.MapFrom(s => s.CreateUser.FullName)) + .ForMember(d => d.FullFilePath, u => u.MapFrom(s => s.Path )); CreateMap() - .ForMember(d => d.FullFilePath, u => u.MapFrom(s => s.Path + "?access_token=" + token)); + .ForMember(d => d.CreateUser, u => u.MapFrom(s => s.CreateUser.FullName)) + .ForMember(d => d.FullFilePath, u => u.MapFrom(s => s.Path )); diff --git a/IRaCIS.Core.Domain/BaseModel/Entity.cs b/IRaCIS.Core.Domain/BaseModel/Entity.cs index ce7dfc8c8..bb525e696 100644 --- a/IRaCIS.Core.Domain/BaseModel/Entity.cs +++ b/IRaCIS.Core.Domain/BaseModel/Entity.cs @@ -116,18 +116,6 @@ namespace IRaCIS.Core.Domain.Models public User CreateUser { get; set; } } - - - public abstract class BaseAddAuditEntityWithUserName : Entity, IAuditAddWithUserName - { - public string CreateUser { get; set; } = string.Empty; - - public Guid CreateUserId { get; set; } - public DateTime CreateTime { get; set; } - - - } - public abstract class BaseAuditUpdateEntity : Entity, IAuditUpdate { public Guid UpdateUserId { get; set; }