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,