更改代码

Uat_Study
he 2022-04-07 11:26:30 +08:00
parent 1954bc410d
commit 1eaeb315a2
6 changed files with 30 additions and 3 deletions

View File

@ -44,6 +44,13 @@
FrontAuditConfigService
</summary>
</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)">
<summary>
Cope子项数据

View File

@ -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?>(){ };

View File

@ -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>

View File

@ -112,6 +112,7 @@ namespace IRaCIS.Core.Application.Service.Inspection
Description=leftfrontAuditConfig.Description,
ModuleTypeName= leftmoduleTypec.ValueCN,
SignText= lefttrialSign.SignText,
Identification= leftfrontAuditConfig.Identification,
};
query = query.WhereIf(!dto.BlindName.IsNullOrEmpty(), x => x.BlindName == dto.BlindName)

View File

@ -242,9 +242,6 @@ namespace IRaCIS.Application.Services
});
return query.ToList();
}

View File

@ -218,6 +218,7 @@ namespace IRaCIS.Core.Infra.EFCore
}
}
public async Task<TResult> MaxAsync<TResult>(Expression<Func<TEntity, TResult>> selector)
{