From ab2899e6e4c1b4c3e18854036179d988bbd485b9 Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Tue, 20 Sep 2022 15:55:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AD=97=E5=85=B8=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IRaCIS.Core.Application/Service/Common/DictionaryService.cs | 4 ++++ 1 file changed, 4 insertions(+) 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()); }