diff --git a/IRaCIS.Core.Application/Service/Common/DictionaryService.cs b/IRaCIS.Core.Application/Service/Common/DictionaryService.cs index 01f6469e8..bc8ae4b0a 100644 --- a/IRaCIS.Core.Application/Service/Common/DictionaryService.cs +++ b/IRaCIS.Core.Application/Service/Common/DictionaryService.cs @@ -118,6 +118,10 @@ namespace IRaCIS.Application.Services // } //} var entity = await _dicRepository.InsertOrUpdateAsync(addOrEditBasic, true, verifyExp1); + + await _dicRepository.BatchUpdateNoTrackingAsync(t => t.ParentId == entity.Id, c => new Dictionary() { DataTypeEnum = entity.DataTypeEnum }); + + await _dicRepository.SaveChangesAsync(); return ResponseOutput.Ok(entity.Id.ToString()); }