修改一版

Uat_Study
he 2022-04-26 17:47:30 +08:00
parent 4e5ae0373d
commit 9b419aafe0
3 changed files with 3 additions and 3 deletions

View File

@ -205,7 +205,7 @@ namespace IRaCIS.Core.Application.Service
.ForMember(d => d.VisitNum, u => u.MapFrom(s => s.SubjectVisit.VisitNum))
.ForMember(d => d.BlindName, u => u.MapFrom(s => s.SubjectVisit.BlindName))
.ForMember(d => d.Creator, u => u.MapFrom(s => s.Creator.UserName))
.ForMember(d => d.IsQCConfirmedReupload, u => u.MapFrom(s => s.SubjectVisit.IsQCConfirmedReupload))
.ForMember(d => d.IsQCConfirmedReupload, u => u.MapFrom(s => s.SubjectVisit.IsQCConfirmedReupload))
.ForMember(d => d.CreateUser, u => u.MapFrom(s => s.Creator.LastName + s.Creator.FirstName))
.ForMember(d => d.LatestReplyUser, u => u.MapFrom(t => t.LatestReplyUser.LastName + t.Creator.FirstName))
.ForMember(d => d.ChallengeCode, u => u.MapFrom(s => "Q" + s.ChallengeCode.ToString("D5"))); //排序的时候有坑 把这个带到sql 中去了

View File

@ -8,7 +8,7 @@ namespace IRaCIS.Core.Infra.EFCore.Dto
{
public class SetDictionaryValueDto
{
public Guid Trial { get; set; }
public Guid TrialId { get; set; }
public List<SetDictionaryDto> Items { get; set; }

View File

@ -575,7 +575,7 @@ namespace IRaCIS.Core.Infra.EFCore
foreach (var item in dto.Items)
{
item.Json = await GetDictionaryValue(item.Identification,item.Json);
item.Json = await SetEnum(dto.Trial, item.Identification, item.Json);
item.Json = await SetEnum(dto.TrialId, item.Identification, item.Json);
}
return dto.Items.Select(x=>x.Json).ToList();