删除该组织和设备关联数据
This commit is contained in:
@@ -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 == "Role").ExecuteCommandAsync();
|
||||||
|
// 删除该组织和设备关联数据
|
||||||
|
await _repository.AsSugarClient().Deleteable<OrganizeRelationEntity>().Where(x => x.OrganizeId == id && x.ObjectType == "Eqp").ExecuteCommandAsync();
|
||||||
}
|
}
|
||||||
|
|
||||||
#region 第三方数据删除
|
#region 第三方数据删除
|
||||||
|
|||||||
Reference in New Issue
Block a user