代码修改
parent
9d5108e683
commit
20d4ab82d6
|
@ -143,6 +143,9 @@ namespace IRaCIS.Core.Application.Contracts
|
|||
|
||||
public bool IsHaveClinicalData { get; set; }
|
||||
|
||||
public int? Age { get; set; }
|
||||
public string Sex { get; set; } = string.Empty;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -129,7 +129,8 @@ namespace IRaCIS.Core.Application.Service
|
|||
.ForMember(d => d.TrialSiteCode, u => u.MapFrom(s => s.TrialSite.TrialSiteCode))
|
||||
.ForMember(d => d.QCProcessEnum, u => u.MapFrom(s => s.Trial.QCProcessEnum))
|
||||
.ForMember(d => d.SubjectId, u => u.MapFrom(t => t.Subject.Id))
|
||||
|
||||
.ForMember(d => d.Sex, u=> u.MapFrom(s => s.Subject.Sex))
|
||||
.ForMember(d => d.Age, u => u.MapFrom(t => t.Subject.Age))
|
||||
.ForMember(d => d.IsHaveClinicalData, u => u.MapFrom(t=> t.IsBaseLine? t.PreviousHistoryList.Any() || t.PreviousOtherList.Any() || t.PreviousPDFList.Any() || t.PreviousSurgeryList.Any() :false))
|
||||
|
||||
//.ForMember(d => d.VisitName, u => u.MapFrom(t =>t.InPlan? t.VisitStage.VisitName : t.VisitName))
|
||||
|
|
|
@ -13,8 +13,6 @@ namespace IRaCIS.Core.Domain.Common
|
|||
/// 将对象序列化成稽查需要的Json字符串
|
||||
/// </summary>
|
||||
/// <param name="obj">需要序列化的对象</param>
|
||||
/// <param name="jsonConverterArray"></param>
|
||||
/// <param name="ignoreNullValue">是否忽略值未null的字段</param>
|
||||
/// <returns></returns>
|
||||
public static string ToJcJson(this object obj)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue