Uat_Study
parent
ed2b53192b
commit
68cf8c5e42
|
@ -37,6 +37,8 @@ namespace IRaCIS.Core.Application.Service
|
||||||
|
|
||||||
var names = _frontAuditConfigRepository.Where(x => x.ParentId == item.AddItem).Select(x => x.ValueCN).ToList();
|
var names = _frontAuditConfigRepository.Where(x => x.ParentId == item.AddItem).Select(x => x.ValueCN).ToList();
|
||||||
|
|
||||||
|
var additem = await _frontAuditConfigRepository.FirstOrDefaultAsync(x => x.Id == item.AddItem);
|
||||||
|
|
||||||
var list = _frontAuditConfigRepository.Where(x => item.DataSource.Contains(x.ParentId)).ToList().GroupBy(x => new { x.ValueCN }, (key, lst) => new FrontAuditConfig
|
var list = _frontAuditConfigRepository.Where(x => item.DataSource.Contains(x.ParentId)).ToList().GroupBy(x => new { x.ValueCN }, (key, lst) => new FrontAuditConfig
|
||||||
{
|
{
|
||||||
Sort = lst.Select(x => x.Sort).FirstOrDefault(),
|
Sort = lst.Select(x => x.Sort).FirstOrDefault(),
|
||||||
|
@ -58,6 +60,10 @@ namespace IRaCIS.Core.Application.Service
|
||||||
ValueCN = lst.Select(x => x.ValueCN).FirstOrDefault(),
|
ValueCN = lst.Select(x => x.ValueCN).FirstOrDefault(),
|
||||||
Value = lst.Select(x => x.Value).FirstOrDefault(),
|
Value = lst.Select(x => x.Value).FirstOrDefault(),
|
||||||
UpdateUserId = _userInfo.Id,
|
UpdateUserId = _userInfo.Id,
|
||||||
|
ChildrenTypeId= additem?.ChildrenTypeId,
|
||||||
|
ModuleTypeId = additem?.ModuleTypeId,
|
||||||
|
ObjectTypeId = additem?.ObjectTypeId,
|
||||||
|
OptTypeId = additem?.OptTypeId,
|
||||||
Id =Guid.NewGuid(),
|
Id =Guid.NewGuid(),
|
||||||
}).ToList();
|
}).ToList();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue