修改
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user