This commit is contained in:
he
2022-12-28 13:27:04 +08:00
parent fc82ffa412
commit d08bd8cdaa
2 changed files with 15 additions and 10 deletions
@@ -715,13 +715,18 @@ namespace IRaCIS.Core.Application.Service
// 添加单双审
var trialtype = await _trialRepository.AsQueryable().Where(x => x.Id == trialId).Select(x => x.QCProcessEnum).FirstOrDefaultAsync();
list.Add(new
if (!list.Any(x => x.Key == "AuditState"))
{
list.Add(new
{
Key = "AuditState",
Code = trialtype == TrialQCProcess.SingleAudit ? "AuditStatePE" : "AuditStateRC",
Type = "Code",
});
Key = "AuditState",
Code = trialtype == TrialQCProcess.SingleAudit ? "AuditStatePE" : "AuditStateRC",
Type = "Code",
});
}
list = list.GroupBy(x => new { x.Key }, (key, lst) => new