From e4b021098116fd3a3dc73701790393d3a308e6af Mon Sep 17 00:00:00 2001 From: he <109787524@qq.com> Date: Wed, 28 Aug 2024 10:54:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs b/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs index d5f83d4f4..4ed2f2334 100644 --- a/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs +++ b/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs @@ -760,7 +760,7 @@ namespace IRaCIS.Core.Infra.EFCore.Common SelectList = selectList.Join(list, t => t.Id, u => u.DictionaryId, (t, u) => new { - t.Value, + Value = _userInfo.IsEn_Us ? t.Value : t.ValueCN, t.ValueCN, t.Description, t.ShowOrder, @@ -787,7 +787,10 @@ namespace IRaCIS.Core.Infra.EFCore.Common //查询出字典的Value ValueCN Des 保存 var dicIdList = allList.Select(t => t.DictionaryId).ToList(); - var selectList = await _dbContext.Dictionary.Where(x => dicIdList.Contains(x.Id)).Select(t => new { t.Id, t.Value, t.ValueCN, t.Description, t.ShowOrder }).ToListAsync(); + var selectList = await _dbContext.Dictionary.Where(x => dicIdList.Contains(x.Id)).Select(t => new { t.Id, + + Value= _userInfo.IsEn_Us? t.Value: t.ValueCN, + t.ValueCN, t.Description, t.ShowOrder }).ToListAsync(); foreach (var list in allList.GroupBy(t => t.ParentCode)) @@ -825,7 +828,7 @@ namespace IRaCIS.Core.Infra.EFCore.Common SelectList = selectList.Join(list, t => t.Id, u => u.DictionaryId, (t, u) => new { - t.Value, + Value = _userInfo.IsEn_Us ? t.Value : t.ValueCN, t.ValueCN, t.Description, t.ShowOrder,