ivus-oct-导表修改-uat-3

Test_IRC_Net8
hang 2025-12-09 17:41:46 +08:00
parent 7a0b29bda6
commit 73889c51ae
1 changed files with 11 additions and 1 deletions

View File

@ -520,7 +520,17 @@ public class IVUS_OCTExportService(IRepository<ReadingQuestionCriterionTrial> _r
oct.TESTCD = mark;
// 测量参数值
oct.ORRES = lessionAnswer?.QuestionValue ?? string.Empty;
if (lessionAnswer.TranslateDicName.IsNotNullOrEmpty())
{
oct.ORRES = translateDataList[lessionAnswer.TranslateDicName].Where(t => t.Code.ToLower() == lessionAnswer.QuestionValue?.ToString().ToLower()).Select(t => isEn_Us ? t.Value : t.ValueCN).FirstOrDefault() ?? String.Empty;
}
else
{
oct.ORRES = lessionAnswer?.QuestionValue ?? string.Empty;
}
// 测量值单位
oct.ORRESU = translateDataList["ValueUnit"].Where(t => t.Code.ToLower() == ((int?)lessionAnswer.Unit)?.ToString().ToLower()).Select(t => isEn_Us ? t.Value : t.ValueCN).FirstOrDefault() ?? String.Empty;