增加查询site
parent
ca9a2dad18
commit
e2a77537f0
|
@ -113,6 +113,14 @@ namespace IRaCIS.Core.Application.Contracts.DTO
|
|||
|
||||
}
|
||||
|
||||
public class TrialSiteSelect
|
||||
{
|
||||
public Guid SiteId { get; set; }
|
||||
public string SiteName { get; set; } = String.Empty;
|
||||
|
||||
public string AliasName { get; set; } = string.Empty;
|
||||
}
|
||||
|
||||
public class TrialSiteScreeningDTO
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
|
|
|
@ -9,6 +9,7 @@ using IRaCIS.Core.Application.Service;
|
|||
using Microsoft.AspNetCore.Authorization;
|
||||
using IRaCIS.Core.Application.Auth;
|
||||
using IRaCIS.Application.Interfaces;
|
||||
using System.Linq;
|
||||
|
||||
namespace IRaCIS.Core.Application.Services
|
||||
{
|
||||
|
@ -110,6 +111,15 @@ namespace IRaCIS.Core.Application.Services
|
|||
}
|
||||
|
||||
|
||||
public async Task<List<TrialSiteSelect>> GetTrialSiteSelectList(string siteName)
|
||||
{
|
||||
var list= _siteRepository
|
||||
.WhereIf(!string.IsNullOrWhiteSpace(siteName), t => t.SiteName.Contains(siteName) || t.SiteNameCN.Contains(siteName) || t.AliasName.Contains(siteName))
|
||||
.Select(t => new TrialSiteSelect() { SiteId = t.Id, SiteName = t.SiteName, AliasName = t.AliasName }).ToList();
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary>Setting页面 Site批量添加</summary>
|
||||
|
|
Loading…
Reference in New Issue