更改代码

This commit is contained in:
he
2022-04-07 11:26:30 +08:00
parent 1954bc410d
commit 1eaeb315a2
6 changed files with 30 additions and 3 deletions
@@ -73,6 +73,13 @@ namespace IRaCIS.Core.Application.ViewModel
}
public class GetChildrenItem
{
public string Identification { get; set; }
}
public class CopyOtherToThisItem
{
public List<Guid?> DataSource { get; set; }=new List<Guid?>(){ };
@@ -26,6 +26,20 @@ namespace IRaCIS.Core.Application.Service
_frontAuditConfigRepository = frontAuditConfigRepository;
}
/// <summary>
/// 获取子数据
/// </summary>
/// <param name="item"></param>
/// <returns></returns>
[HttpPost]
public async Task<List<FrontAuditConfig>> GetChildrenItem(GetChildrenItem item)
{
var list =await (from data in _repository.GetQueryable<FrontAuditConfig>().Where(x => x.Identification == item.Identification)
join childrenType in _repository.GetQueryable<FrontAuditConfig>() on data.Id equals childrenType.ParentId
select childrenType).ToListAsync();
return list;
}
/// <summary>
/// Cope子项数据
/// </summary>