Uat_Study
he 2022-10-17 16:33:04 +08:00
parent 58656ac27e
commit d8dcc47006
2 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ namespace IRaCIS.Application.Contracts
[NotDefault]
public Guid TrialId { get; set; }
public string Code { get; set; }
public string ParentCode { get; set; }
}
public class AddTrialConfigDictionaryListInDto

View File

@ -159,7 +159,7 @@ namespace IRaCIS.Application.Services
[HttpPost]
public async Task<List<GetTrialConfigDictionarySelectOutDto>> GetTrialConfigDictionarySelect(GetTrialConfigDictionarySelectInDto inDto)
{
var parentId = await _dicRepository.Where(x => x.Code == inDto.Code).Select(x => x.Id).FirstNotNullAsync();
var parentId = await _dicRepository.Where(x => x.Code == inDto.ParentCode).Select(x => x.Id).FirstNotNullAsync();
List<GetTrialConfigDictionarySelectOutDto> result= await _dicRepository.Where(t => t.ParentId == parentId)
.OrderBy(t => t.ShowOrder).ProjectTo<GetTrialConfigDictionarySelectOutDto>(_mapper.ConfigurationProvider).ToListAsync();