中心调研,仅仅上传文件,不用验证
continuous-integration/drone/push Build is passing Details

Uat_IRC_Net10
hang 2026-07-02 15:38:17 +08:00
parent e848ee1972
commit d6436b01d4
1 changed files with 3 additions and 2 deletions

View File

@ -830,7 +830,8 @@ namespace IRaCIS.Core.Application.Contracts
} }
var config = await _trialRepository.Where(t => t.Id == trialSiteSurvey.TrialId).Select(t => t.TrialExtraConfigJsonStr).FirstOrDefaultAsync();
var extralConfig = JsonConvert.DeserializeObject<TrialExtraConfig>(config);
var siteUserList = await _trialSiteUserSurveyRepository.Where(t => t.TrialSiteSurveyId == trialSiteSurveyId) var siteUserList = await _trialSiteUserSurveyRepository.Where(t => t.TrialSiteSurveyId == trialSiteSurveyId)
.Where(t => !(t.IsHistoryUser && t.IsHistoryUserDeleted == true)) .Where(t => !(t.IsHistoryUser && t.IsHistoryUserDeleted == true))
@ -849,7 +850,7 @@ namespace IRaCIS.Core.Application.Contracts
//var currentUserList = siteUserList.Where(t => t.TrialSiteSurveyId == trialSiteSurveyId).ToList(); //var currentUserList = siteUserList.Where(t => t.TrialSiteSurveyId == trialSiteSurveyId).ToList();
if (!siteUserList.Any(t => t.UserTypeEnum == UserTypeEnum.ClinicalResearchCoordinator || t.UserTypeEnum == UserTypeEnum.CRA)) if (!siteUserList.Any(t => t.UserTypeEnum == UserTypeEnum.ClinicalResearchCoordinator || t.UserTypeEnum == UserTypeEnum.CRA) && extralConfig.IsOnlyUploadFile == false)
{ {
throw new BusinessValidationFailedException(_localizer["TrialSiteSurvey_MissingAccount"]); throw new BusinessValidationFailedException(_localizer["TrialSiteSurvey_MissingAccount"]);
} }