代码修改
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
fa2a0e7482
commit
7a496e114b
|
@ -858,6 +858,18 @@ namespace IRaCIS.Core.Application.Service
|
|||
value = _userInfo.IsEn_Us ? b.Value : b.ValueCN
|
||||
}).Select(x => x.value).FirstOrDefaultAsync();
|
||||
}
|
||||
//
|
||||
else if (item.Type.ToLower() == FrontAudit.LineSpilt.GetDescription().ToLower())
|
||||
{
|
||||
var data = value.ToString().Split('|').ToList();
|
||||
|
||||
var codeList= await _dictionaryRepository.Where(x => x.Code == item.Code).Join(_dictionaryRepository.Where(x => data.Contains(x.Code)), a => a.Id, b => b.ParentId, (a, b) => new
|
||||
{
|
||||
value = _userInfo.IsEn_Us ? b.Value : b.ValueCN
|
||||
}).Select(x => x.value).ToListAsync();
|
||||
jsonDataDic[item.Key] = string.Join(",", codeList);
|
||||
|
||||
}
|
||||
//通过字典项的code 翻译 枚举或者 bool
|
||||
else
|
||||
{
|
||||
|
|
|
@ -77,6 +77,13 @@ namespace IRaCIS.Core.Domain.Share.Management
|
|||
/// </summary>
|
||||
[DisplayAttribute(Name = "DictionaryType")]
|
||||
DictionaryType = 4,
|
||||
|
||||
|
||||
/// <summary>
|
||||
///LineSpilt
|
||||
/// </summary>
|
||||
[DisplayAttribute(Name = "LineSpilt")]
|
||||
LineSpilt = 4,
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue