更改代码
parent
1954bc410d
commit
1eaeb315a2
|
@ -44,6 +44,13 @@
|
||||||
FrontAuditConfigService
|
FrontAuditConfigService
|
||||||
</summary>
|
</summary>
|
||||||
</member>
|
</member>
|
||||||
|
<member name="M:IRaCIS.Core.Application.Service.FrontAuditConfigService.GetChildrenItem(IRaCIS.Core.Application.ViewModel.GetChildrenItem)">
|
||||||
|
<summary>
|
||||||
|
获取子数据
|
||||||
|
</summary>
|
||||||
|
<param name="item"></param>
|
||||||
|
<returns></returns>
|
||||||
|
</member>
|
||||||
<member name="M:IRaCIS.Core.Application.Service.FrontAuditConfigService.CopyOtherToThisItem(IRaCIS.Core.Application.ViewModel.CopyOtherToThisItem)">
|
<member name="M:IRaCIS.Core.Application.Service.FrontAuditConfigService.CopyOtherToThisItem(IRaCIS.Core.Application.ViewModel.CopyOtherToThisItem)">
|
||||||
<summary>
|
<summary>
|
||||||
Cope子项数据
|
Cope子项数据
|
||||||
|
|
|
@ -73,6 +73,13 @@ namespace IRaCIS.Core.Application.ViewModel
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public class GetChildrenItem
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
public string Identification { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
public class CopyOtherToThisItem
|
public class CopyOtherToThisItem
|
||||||
{
|
{
|
||||||
public List<Guid?> DataSource { get; set; }=new List<Guid?>(){ };
|
public List<Guid?> DataSource { get; set; }=new List<Guid?>(){ };
|
||||||
|
|
|
@ -26,6 +26,20 @@ namespace IRaCIS.Core.Application.Service
|
||||||
_frontAuditConfigRepository = frontAuditConfigRepository;
|
_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>
|
/// <summary>
|
||||||
/// Cope子项数据
|
/// Cope子项数据
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -112,6 +112,7 @@ namespace IRaCIS.Core.Application.Service.Inspection
|
||||||
Description=leftfrontAuditConfig.Description,
|
Description=leftfrontAuditConfig.Description,
|
||||||
ModuleTypeName= leftmoduleTypec.ValueCN,
|
ModuleTypeName= leftmoduleTypec.ValueCN,
|
||||||
SignText= lefttrialSign.SignText,
|
SignText= lefttrialSign.SignText,
|
||||||
|
Identification= leftfrontAuditConfig.Identification,
|
||||||
};
|
};
|
||||||
|
|
||||||
query = query.WhereIf(!dto.BlindName.IsNullOrEmpty(), x => x.BlindName == dto.BlindName)
|
query = query.WhereIf(!dto.BlindName.IsNullOrEmpty(), x => x.BlindName == dto.BlindName)
|
||||||
|
|
|
@ -242,9 +242,6 @@ namespace IRaCIS.Application.Services
|
||||||
|
|
||||||
});
|
});
|
||||||
return query.ToList();
|
return query.ToList();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -218,6 +218,7 @@ namespace IRaCIS.Core.Infra.EFCore
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public async Task<TResult> MaxAsync<TResult>(Expression<Func<TEntity, TResult>> selector)
|
public async Task<TResult> MaxAsync<TResult>(Expression<Func<TEntity, TResult>> selector)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue