代码提交
continuous-integration/drone/push Build is passing Details

Uat_Study^2
he 2024-05-28 14:33:15 +08:00
parent 4966a32bcb
commit 96f3ecb45d
1 changed files with 13 additions and 7 deletions

View File

@ -1419,6 +1419,11 @@ namespace IRaCIS.Core.Infra.EFCore.Common
var trialSiteId = entity.TrialSite?.Id;
var equipmentTypeList = await _dbContext.TrialSiteEquipmentSurvey.Where(x => x.TrialSiteSurveyId == entity.Id).Select(x => x.EquipmentType).ToListAsync();
var siteUserList = await _dbContext.TrialSiteUserSurvey.Where(x => x.TrialSiteSurveyId == entity.Id).Select(x => x.LastName + "/" + x.FirstName).ToListAsync();
await InsertInspection<TrialSiteSurvey>(item.Entity as TrialSiteSurvey, type, x => new InspectionConvertDTO()
{
ObjectRelationParentId = trialSiteId,
@ -1430,7 +1435,8 @@ namespace IRaCIS.Core.Infra.EFCore.Common
//Phone = entity.Phone,
//Email = entity.Email,
EquipmentTypeList=string.Join(",", equipmentTypeList),
SiteUserList= string.Join(",", siteUserList),
PreliminaryUser = entity.PreliminaryUser == null ? "" : entity.PreliminaryUser.FullName,
ReviewerUser = entity.ReviewerUser == null ? "" : entity.ReviewerUser.FullName,