修改稽查

This commit is contained in:
2022-12-08 13:15:27 +08:00
parent aa20a78ae0
commit 4bdd1d28d9
5 changed files with 155 additions and 141 deletions
@@ -786,7 +786,7 @@ namespace IRaCIS.Core.Application.Service
var jsonObject = JObject.Parse(arraysItem.ToString());
try
{
if (jsonObject["DictionaryCode"]?.ToString() != string.Empty)
if (jsonObject["DictionaryCode"]!=null && jsonObject["DictionaryCode"].ToString() != string.Empty)
{
jsonObject[item.Code]= await _dictionaryRepository.Where(x => x.Code == jsonObject["DictionaryCode"].ToString()).Join(_dictionaryRepository.Where(x => x.Code == jsonObject[item.Code].ToString()), a => a.Id, b => b.ParentId, (a, b) => new