稽查修改 OCT4
continuous-integration/drone/push Build is failing Details

Test_IRC_Net8
he 2025-12-08 17:17:57 +08:00
parent 334b2fe440
commit 662001accd
1 changed files with 19 additions and 3 deletions

View File

@ -112,17 +112,33 @@ namespace IRaCIS.Core.Infra.EFCore.Common
return string.Empty; return string.Empty;
} }
if (answerType == "upload") if (answerType == "upload")
{ {
return "❄❅❆❇❈❉❊" + answer; return "❄❅❆❇❈❉❊" + answer;
} }
if (unit == ValueUnit.Custom) var answerList = answer.Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries).ToList();
List<string> transList = new List<string>();
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) public string GetEntityAuditOpt(EntityEntry entityEntry)
{ {