Uat_Study
parent
871b642769
commit
24d089b245
|
@ -19,6 +19,45 @@ namespace IRaCIS.Core.Application.ViewModel
|
|||
public Guid CreateUserId { get; set; }
|
||||
}
|
||||
|
||||
public class OrganDictionary
|
||||
{
|
||||
|
||||
public string ChildGroup { get; set; }
|
||||
|
||||
public int ChildCodeEnum { get; set; }
|
||||
|
||||
|
||||
public DicDataTypeEnum DataTypeEnum { get; set; }
|
||||
|
||||
|
||||
|
||||
public string Value { get; set; } = string.Empty;
|
||||
|
||||
|
||||
public string ValueCN { get; set; } = string.Empty;
|
||||
|
||||
|
||||
|
||||
public string Description { get; set; } = string.Empty;
|
||||
|
||||
public int ShowOrder { get; set; }
|
||||
|
||||
|
||||
public Guid UpdateUserId { get; set; }
|
||||
public DateTime UpdateTime { get; set; }
|
||||
public Guid CreateUserId { get; set; }
|
||||
public DateTime CreateTime { get; set; }
|
||||
|
||||
|
||||
public string Code { get; set; }
|
||||
|
||||
public Guid? ParentId { get; set; }
|
||||
|
||||
public bool IsEnable { get; set; }
|
||||
|
||||
public Guid? ConfigTypeId { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class GetCriterionLesionTypeInDto
|
||||
{
|
||||
|
|
|
@ -47,7 +47,7 @@ namespace IRaCIS.Core.Application.Service
|
|||
/// <param name="inDto"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public async Task<List<Dictionary>> GetCriterionLesionType(GetCriterionLesionTypeInDto inDto)
|
||||
public async Task<List<OrganDictionary>> GetCriterionLesionType(GetCriterionLesionTypeInDto inDto)
|
||||
{
|
||||
var dicNums = new List<int>();
|
||||
if (inDto.IsSystem)
|
||||
|
@ -61,7 +61,7 @@ namespace IRaCIS.Core.Application.Service
|
|||
|
||||
var dictionaryId = await _dictionaryRepository.Where(x => x.Code == "LesionType").Select(x => x.Id).FirstOrDefaultAsync();
|
||||
|
||||
var result = await _dictionaryRepository.Where(x => x.ParentId == dictionaryId && dicNums.Contains(int.Parse(x.Code))).ToListAsync();
|
||||
var result = await _dictionaryRepository.Where(x => x.ParentId == dictionaryId && dicNums.Contains(int.Parse(x.Code))).ProjectTo<OrganDictionary>(_mapper.ConfigurationProvider).ToListAsync();
|
||||
|
||||
return result;
|
||||
}
|
||||
|
|
|
@ -59,6 +59,8 @@ namespace IRaCIS.Core.Application.Service
|
|||
|
||||
CreateMap<ReadingQuestionTrial, ReadingQuestionSystem>();
|
||||
|
||||
CreateMap<Dictionary, OrganDictionary>();
|
||||
|
||||
CreateMap<ReadingQuestionSystem, ReadingQuestionSystemData>()
|
||||
.ForMember(d => d.OriginalId, u => u.MapFrom(s => s.Id));
|
||||
|
||||
|
|
Loading…
Reference in New Issue