From 46023f56c1f361fff99f441bf50ada378fcacc0a Mon Sep 17 00:00:00 2001 From: zhou keda <1315948824@qq.com> Date: Wed, 5 Jun 2024 16:37:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E8=AF=A5=E7=BB=84=E7=BB=87?= =?UTF-8?q?=E5=92=8C=E8=AE=BE=E5=A4=87=E5=85=B3=E8=81=94=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- system/Tnb.Systems/Permission/DepartmentService.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/system/Tnb.Systems/Permission/DepartmentService.cs b/system/Tnb.Systems/Permission/DepartmentService.cs index 2233e3db..98f97aa8 100644 --- a/system/Tnb.Systems/Permission/DepartmentService.cs +++ b/system/Tnb.Systems/Permission/DepartmentService.cs @@ -394,6 +394,8 @@ public class DepartmentService : IDepartmentService, IDynamicApiController, ITra { // 删除该组织和角色关联数据 await _repository.AsSugarClient().Deleteable().Where(x => x.OrganizeId == id && x.ObjectType == "Role").ExecuteCommandAsync(); + // 删除该组织和设备关联数据 + await _repository.AsSugarClient().Deleteable().Where(x => x.OrganizeId == id && x.ObjectType == "Eqp").ExecuteCommandAsync(); } #region 第三方数据删除