Uat_Study
he 2022-03-30 17:27:42 +08:00
parent 0ce6b765dc
commit e884485664
1 changed files with 5 additions and 2 deletions

View File

@ -292,8 +292,11 @@ namespace IRaCIS.Core.Application.Service.Inspection
#region 测试中心名称
Data.SiteCode = (await _repository.GetQueryable<TrialSite>().FirstOrDefaultAsync(x => x.TrialId == Data.TrialId && x.SiteId == Data.SiteId))?.TrialSiteCode;
var sitedata = await _repository.GetQueryable<Site>().FirstOrDefaultAsync(x => x.Id == Data.SiteId);
Data.SiteCode = sitedata?.SiteCode;
if (Data.SiteName.IsNullOrEmpty())
{
Data.SiteName = sitedata?.SiteName;
@ -302,7 +305,7 @@ namespace IRaCIS.Core.Application.Service.Inspection
#region 受试者
if (Data.SubjectCode.IsNullOrEmpty())
{