@@ -1634,7 +1634,7 @@ namespace IRaCIS.Core.Infra.EFCore.Common
|
||||
var type = GetEntityAuditOpt(item);
|
||||
|
||||
var entity = item.Entity as TrialSite;
|
||||
if (entity.Site == null)
|
||||
if (entity.Site == null && entity.SiteId!=null)
|
||||
{
|
||||
entity.Site = await _dbContext.Site.Where(x => x.Id == entity.SiteId).FirstOrDefaultAsync();
|
||||
}
|
||||
@@ -1650,9 +1650,7 @@ namespace IRaCIS.Core.Infra.EFCore.Common
|
||||
SiteCode = entity.TrialSiteCode,
|
||||
|
||||
//Site 没记录稽查 必须查询存
|
||||
SiteName = entity.Site.SiteName,
|
||||
City = entity.Site.City,
|
||||
Country = entity.Site.Country,
|
||||
SiteName = entity.TrialSiteName
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user