修改一版

This commit is contained in:
he
2022-05-07 14:54:00 +08:00
parent e74edc585d
commit 227621db6b
3 changed files with 13 additions and 2 deletions
@@ -45,7 +45,7 @@ namespace IRaCIS.Core.Application.ViewModel
{
public string Identification { get; set; }
public Guid Id { get; set; }
}
@@ -122,7 +122,7 @@ namespace IRaCIS.Core.Application.Service
[HttpPost]
public async Task<List<FrontAuditConfig>> GetChildrenItem(GetChildrenItem item)
{
var list =await (from data in _repository.GetQueryable<FrontAuditConfig>().Where(x => x.Identification == item.Identification&&x.Identification!=string.Empty&&x.Identification!=null)
var list =await (from data in _repository.GetQueryable<FrontAuditConfig>().Where(x => x.Id == item.Id)
join childrenType in _repository.GetQueryable<FrontAuditConfig>() on data.Id equals childrenType.ParentId
select childrenType).OrderBy(x=>x.Sort).ToListAsync();
return list;