[中心调研-新增查询site 接口]
parent
0de9cfb240
commit
db71cfd396
|
@ -331,6 +331,24 @@ namespace IRaCIS.Core.Application.Services
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取项目下的 site 下拉框数据 CRC只看到他负责的
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="trialId"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
[HttpGet("{trialId:guid}")]
|
||||||
|
public async Task<IEnumerable<TrialSiteForSelect>> GetTrialSiteSelectForSiteSurvey(Guid trialId)
|
||||||
|
{
|
||||||
|
//CRC只看到他负责的
|
||||||
|
|
||||||
|
var list = await _trialSiteRepository.Where(t => t.TrialId == trialId).IgnoreQueryFilters()
|
||||||
|
.WhereIf(_userInfo.UserTypeEnumInt == (int)UserTypeEnum.ClinicalResearchCoordinator || _userInfo.UserTypeEnumInt == (int)UserTypeEnum.CRA, t => t.CRCUserList.Any(t => t.UserId == _userInfo.Id))
|
||||||
|
.ProjectTo<TrialSiteForSelect>(_mapper.ConfigurationProvider).OrderBy(t => t.TrialSiteCode).ToListAsync();
|
||||||
|
|
||||||
|
|
||||||
|
return list;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public async Task<IEnumerable<string>> GetTrialSiteCodeSelect(Guid trialId, bool isIncludeVirtualSite = true)
|
public async Task<IEnumerable<string>> GetTrialSiteCodeSelect(Guid trialId, bool isIncludeVirtualSite = true)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue