Merge branch 'Test_IRC_Net8' of https://gitea.frp.extimaging.com/XCKJ/irc-netcore-api into Test_IRC_Net8
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
commit
cc00cce704
|
@ -13095,7 +13095,7 @@
|
|||
<member name="M:IRaCIS.Application.Services.CroService.GetCroList(IRaCIS.Application.Contracts.CROCompanyQueryDTO)">
|
||||
<summary> 分页获取CRO列表 </summary>
|
||||
</member>
|
||||
<member name="M:IRaCIS.Application.Services.CroService.GetAllCROList">
|
||||
<member name="M:IRaCIS.Application.Services.CroService.GetAllCROList(System.Nullable{System.Guid})">
|
||||
<summary> 根据CRO 名称查询所有CRO 列表 </summary>
|
||||
</member>
|
||||
<member name="M:IRaCIS.Application.Services.CroService.AddOrUpdateCro(IRaCIS.Application.Contracts.CROCompanyDTO)">
|
||||
|
@ -13128,7 +13128,7 @@
|
|||
<member name="M:IRaCIS.Application.Services.SponsorService.GetSponsorList(IRaCIS.Application.Contracts.SponsorQueryDTO)">
|
||||
<summary> 分页获取申办方列表 </summary>
|
||||
</member>
|
||||
<member name="M:IRaCIS.Application.Services.SponsorService.GetAllSponsorList">
|
||||
<member name="M:IRaCIS.Application.Services.SponsorService.GetAllSponsorList(System.Nullable{System.Guid})">
|
||||
<summary> 分页获取申办方列表 </summary>
|
||||
</member>
|
||||
<member name="M:IRaCIS.Application.Services.SponsorService.AddOrUpdateSponsor(IRaCIS.Application.Contracts.SponsorCommand)">
|
||||
|
|
|
@ -33,9 +33,9 @@ namespace IRaCIS.Application.Services
|
|||
}
|
||||
|
||||
/// <summary> 根据CRO 名称查询所有CRO 列表 </summary>
|
||||
public async Task<IEnumerable<CroSelectDTO>> GetAllCROList()
|
||||
public async Task<IEnumerable<CroSelectDTO>> GetAllCROList(Guid? croId)
|
||||
{
|
||||
return await _croRepository.ProjectTo<CroSelectDTO>(_mapper.ConfigurationProvider, new { isEn_Us = _userInfo.IsEn_Us }).ToListAsync();
|
||||
return await _croRepository.Where(t => t.IsTrialLevel == false || t.Id == croId).ProjectTo<CroSelectDTO>(_mapper.ConfigurationProvider, new { isEn_Us = _userInfo.IsEn_Us }).ToListAsync();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -11,6 +11,8 @@ namespace IRaCIS.Application.Contracts
|
|||
|
||||
public string CRONameCN { get; set; } = string.Empty;
|
||||
|
||||
public bool IsTrialLevel { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class CroSelectDTO
|
||||
|
@ -18,8 +20,6 @@ namespace IRaCIS.Application.Contracts
|
|||
public Guid Id { get; set; }
|
||||
public string CROName { get; set; } = string.Empty;
|
||||
public string CROCode { get; set; } = string.Empty;
|
||||
|
||||
public string CRONameCN { get; set; } = string.Empty;
|
||||
}
|
||||
|
||||
public class CROCompanyQueryDTO : PageInput
|
||||
|
|
|
@ -17,6 +17,8 @@ namespace IRaCIS.Application.Contracts
|
|||
|
||||
public string SponsorCode { get; set; } = String.Empty;
|
||||
|
||||
public bool IsTrialLevel { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class SponsorQueryDTO : PageInput
|
||||
|
|
|
@ -8,7 +8,7 @@ namespace IRaCIS.Application.Interfaces
|
|||
public interface ICroService
|
||||
{
|
||||
Task<PageOutput<CROCompanyDTO>> GetCroList(CROCompanyQueryDTO queryModel);
|
||||
Task<IEnumerable<CroSelectDTO>> GetAllCROList();
|
||||
Task<IEnumerable<CroSelectDTO>> GetAllCROList(Guid? croId);
|
||||
Task<IResponseOutput> AddOrUpdateCro(CROCompanyDTO addCroCompanyViewModel);
|
||||
Task<IResponseOutput> DeleteCro(Guid croCompanyId);
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ namespace IRaCIS.Application.Interfaces
|
|||
public interface ISponsorService
|
||||
{
|
||||
Task<PageOutput<SponsorDTO>> GetSponsorList(SponsorQueryDTO queryParam);
|
||||
Task<IEnumerable<SponsorSelectDTO>> GetAllSponsorList();
|
||||
Task<IEnumerable<SponsorSelectDTO>> GetAllSponsorList(Guid? sponsorId);
|
||||
Task<IResponseOutput> AddOrUpdateSponsor(SponsorCommand model);
|
||||
Task<IResponseOutput> DeleteSponsor(Guid sponsorId);
|
||||
}
|
||||
|
|
|
@ -33,14 +33,14 @@ namespace IRaCIS.Application.Services
|
|||
}
|
||||
|
||||
/// <summary> 分页获取申办方列表 </summary>
|
||||
public async Task<IEnumerable<SponsorSelectDTO>> GetAllSponsorList()
|
||||
public async Task<IEnumerable<SponsorSelectDTO>> GetAllSponsorList(Guid? sponsorId)
|
||||
{
|
||||
//Expression<Func<Sponsor, bool>> sponsorLambda = x => true;
|
||||
//if (!string.IsNullOrWhiteSpace(sponsorSearchModel.SponsorName))
|
||||
//{
|
||||
// sponsorLambda = sponsorLambda.And(t => t.SponsorName.Contains(sponsorSearchModel.SponsorName.Trim()));
|
||||
//}
|
||||
var sponsorQueryable = _sponsorRepository.ProjectTo<SponsorSelectDTO>(_mapper.ConfigurationProvider,new { isEn_Us= _userInfo.IsEn_Us});
|
||||
var sponsorQueryable = _sponsorRepository.Where(t => t.IsTrialLevel == false || t.Id == sponsorId).ProjectTo<SponsorSelectDTO>(_mapper.ConfigurationProvider,new { isEn_Us= _userInfo.IsEn_Us});
|
||||
return await sponsorQueryable.ToListAsync();
|
||||
}
|
||||
|
||||
|
|
|
@ -10,6 +10,9 @@ namespace IRaCIS.Core.Domain.Models
|
|||
public string CRONameCN { get; set; } = string.Empty;
|
||||
public string CROCode { get; set; }
|
||||
|
||||
|
||||
public bool IsTrialLevel { get; set; }
|
||||
|
||||
public DateTime CreateTime { get; set; }
|
||||
public Guid CreateUserId { get; set; }
|
||||
public Guid UpdateUserId { get; set; }
|
||||
|
|
|
@ -11,6 +11,8 @@ namespace IRaCIS.Core.Domain.Models
|
|||
|
||||
public string SponsorCode { get; set; } = String.Empty;
|
||||
|
||||
public bool IsTrialLevel { get; set; }
|
||||
|
||||
public DateTime CreateTime { get; set; } = DateTime.Now;
|
||||
public Guid CreateUserId { get; set; } = Guid.Empty;
|
||||
public DateTime UpdateTime { get; set; } = DateTime.Now;
|
||||
|
|
Loading…
Reference in New Issue