修改一版
parent
2be4a31040
commit
eb755734a8
|
@ -1825,6 +1825,11 @@
|
||||||
父问题ID
|
父问题ID
|
||||||
</summary>
|
</summary>
|
||||||
</member>
|
</member>
|
||||||
|
<member name="P:IRaCIS.Core.Application.Service.Reading.Dto.GetSystemReadingQuestionOutDto.DataTableColumn">
|
||||||
|
<summary>
|
||||||
|
数据列
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
<member name="P:IRaCIS.Core.Application.Service.Reading.Dto.GetSystemReadingQuestionOutDto.TypeValue">
|
<member name="P:IRaCIS.Core.Application.Service.Reading.Dto.GetSystemReadingQuestionOutDto.TypeValue">
|
||||||
<summary>
|
<summary>
|
||||||
类型值
|
类型值
|
||||||
|
|
|
@ -115,7 +115,6 @@ namespace IRaCIS.Application.Services
|
||||||
.WhereIf(inDto.ClinicalDataSetName != String.Empty, x => x.ClinicalDataSetName.Contains(inDto.ClinicalDataSetName))
|
.WhereIf(inDto.ClinicalDataSetName != String.Empty, x => x.ClinicalDataSetName.Contains(inDto.ClinicalDataSetName))
|
||||||
.ProjectTo<ClinicalDataTrialSetView>(_mapper.ConfigurationProvider).ToListAsync();
|
.ProjectTo<ClinicalDataTrialSetView>(_mapper.ConfigurationProvider).ToListAsync();
|
||||||
return trialClinicalDataList;
|
return trialClinicalDataList;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -217,10 +217,15 @@ namespace IRaCIS.Core.Application.ViewModel
|
||||||
public class OrganInfoQuery
|
public class OrganInfoQuery
|
||||||
{
|
{
|
||||||
|
|
||||||
|
///// <summary>
|
||||||
|
///// 病灶类型
|
||||||
|
///// </summary>
|
||||||
|
//public OrganType? OrganType { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 病灶类型
|
/// 病灶类型
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public OrganType? OrganType { get; set; }
|
public LesionType? LesionType { get; set; }
|
||||||
|
|
||||||
public Guid SystemCriterionId { get; set; }
|
public Guid SystemCriterionId { get; set; }
|
||||||
|
|
||||||
|
|
|
@ -11,6 +11,7 @@ using IRaCIS.Core.Application.ViewModel;
|
||||||
using IRaCIS.Core.Infra.EFCore.Common;
|
using IRaCIS.Core.Infra.EFCore.Common;
|
||||||
using MassTransit;
|
using MassTransit;
|
||||||
using IRaCIS.Core.Infrastructure;
|
using IRaCIS.Core.Infrastructure;
|
||||||
|
using IRaCIS.Core.Domain.Share;
|
||||||
|
|
||||||
namespace IRaCIS.Core.Application.Service
|
namespace IRaCIS.Core.Application.Service
|
||||||
{
|
{
|
||||||
|
@ -30,6 +31,7 @@ namespace IRaCIS.Core.Application.Service
|
||||||
public OrganInfoService(
|
public OrganInfoService(
|
||||||
IRepository<OrganInfo> organInfoRepository,
|
IRepository<OrganInfo> organInfoRepository,
|
||||||
IRepository<Dictionary> dictionaryRepository,
|
IRepository<Dictionary> dictionaryRepository,
|
||||||
|
|
||||||
IRepository<OrganTrialInfo> organTrialInfoRepository,
|
IRepository<OrganTrialInfo> organTrialInfoRepository,
|
||||||
IRepository<ReadingQuestionCriterionTrial> readingQuestionCriterionTrial,
|
IRepository<ReadingQuestionCriterionTrial> readingQuestionCriterionTrial,
|
||||||
IRepository<CriterionNidus> criterionNidusRepository
|
IRepository<CriterionNidus> criterionNidusRepository
|
||||||
|
@ -120,9 +122,19 @@ namespace IRaCIS.Core.Application.Service
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
public async Task<List<OrganInfoView>> GetOrganInfoList(OrganInfoQuery inQuery)
|
public async Task<List<OrganInfoView>> GetOrganInfoList(OrganInfoQuery inQuery)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
|
List<OrganType> organs = new List<OrganType>();
|
||||||
|
|
||||||
|
if (inQuery.LesionType != null)
|
||||||
|
{
|
||||||
|
organs =await _criterionNidusRepository.Where(x => x.CriterionId == inQuery.SystemCriterionId && x.LesionType == inQuery.LesionType)
|
||||||
|
.Select(x => x.OrganType).ToListAsync();
|
||||||
|
}
|
||||||
|
|
||||||
var organInfoQueryable = _organInfoRepository
|
var organInfoQueryable = _organInfoRepository
|
||||||
.Where(x=>x.SystemCriterionId==inQuery.SystemCriterionId)
|
.Where(x=>x.SystemCriterionId==inQuery.SystemCriterionId)
|
||||||
.WhereIf(inQuery.OrganType != null, x => x.OrganType == inQuery.OrganType)
|
.WhereIf(inQuery.LesionType != null, x => organs.Contains(x.OrganType))
|
||||||
.ProjectTo<OrganInfoView>(_mapper.ConfigurationProvider);
|
.ProjectTo<OrganInfoView>(_mapper.ConfigurationProvider);
|
||||||
return await organInfoQueryable.ToListAsync();
|
return await organInfoQueryable.ToListAsync();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue