From 662001accd21cf6e98c548ffacce636e8cc84199 Mon Sep 17 00:00:00 2001 From: he <109787524@qq.com> Date: Mon, 8 Dec 2025 17:17:57 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A8=BD=E6=9F=A5=E4=BF=AE=E6=94=B9=20OCT4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Common/AuditingData.cs | 22 ++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs b/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs index ad38c1c09..71ae48ff3 100644 --- a/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs +++ b/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs @@ -112,17 +112,33 @@ namespace IRaCIS.Core.Infra.EFCore.Common return string.Empty; } + + + if (answerType == "upload") { return "❄❅❆❇❈❉❊" + answer; } - if (unit == ValueUnit.Custom) + var answerList = answer.Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries).ToList(); + + List transList = new List(); + foreach (var item in answerList) { - return answer + string.Empty + customUnit; + if (unit == ValueUnit.Custom) + { + transList.Add(answer + string.Empty + customUnit); + } + else + { + transList.Add(answer + string.Empty + unitDataList.Where(y => y.Unit == unit).Select(x => x.UnitName).FirstIsNullReturnEmpty()); + } + + } - return answer + string.Empty + unitDataList.Where(y => y.Unit == unit).Select(x => x.UnitName).FirstIsNullReturnEmpty(); + return string.Join(",", transList); + } public string GetEntityAuditOpt(EntityEntry entityEntry) {