删除该组织和设备关联数据

This commit is contained in:
2024-06-05 16:37:42 +08:00
parent 49f9e7b01c
commit 46023f56c1

View File

@@ -394,6 +394,8 @@ public class DepartmentService : IDepartmentService, IDynamicApiController, ITra
{
// 删除该组织和角色关联数据
await _repository.AsSugarClient().Deleteable<OrganizeRelationEntity>().Where(x => x.OrganizeId == id && x.ObjectType == "Role").ExecuteCommandAsync();
// 删除该组织和设备关联数据
await _repository.AsSugarClient().Deleteable<OrganizeRelationEntity>().Where(x => x.OrganizeId == id && x.ObjectType == "Eqp").ExecuteCommandAsync();
}
#region