更改代码
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user