修改
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user