翻译稽查数据

Uat_Study
{872297557@qq.com} 2023-01-03 09:08:27 +08:00
parent 2e743448f7
commit f96ce12758
1 changed files with 4 additions and 12 deletions

View File

@ -719,6 +719,9 @@ namespace IRaCIS.Core.Application.Service
Type = p.DictionaryType
}).ToListAsync();
//两条不同的标识 但是里面配置有相同的翻译字典
list=list.Distinct().ToList();
// 添加单双审
var trialtype = await _trialRepository.AsQueryable().Where(x => x.Id == trialId).Select(x => x.QCProcessEnum).FirstOrDefaultAsync();
@ -731,20 +734,9 @@ namespace IRaCIS.Core.Application.Service
Key = "AuditState",
Code = trialtype == TrialQCProcess.SingleAudit ? "AuditStatePE" : "AuditStateRC",
Type = "Code",
}); ;
});
}
list = list.GroupBy(x => new { x.Key }, (key, lst) => new
{
DataType = lst.Max(x => x.DataType),
TableConfigJsonStr = lst.Max(x => x.TableConfigJsonStr),
Key = key.Key,
Code = lst.Max(x => x.Code),
Type = lst.Max(x => x.Type),
}).ToList();
var jsonDataDic = JsonConvert.DeserializeObject<IDictionary<string, object>>(jsonStr);
foreach (var item in list)
{