修复可能导致同步套餐失败的bug
This commit is contained in:
parent
335f806566
commit
0cbeb5b2df
@ -439,11 +439,12 @@ public class SysTenantServiceImpl extends BaseServiceImpl<SysTenantMapper, SysTe
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
if (!roleIds.isEmpty()) {
|
if (!roleIds.isEmpty()) {
|
||||||
int deletedRows = roleMenuMapper.deleteByQuery(
|
roleMenuMapper.deleteByQuery(
|
||||||
QueryWrapper.create().from(SYS_ROLE_MENU).where(SYS_ROLE_MENU.ROLE_ID.in(roleIds)).and(SYS_ROLE_MENU.MENU_ID.notIn(menuIds)));
|
QueryWrapper.create()
|
||||||
if (deletedRows == 0) {
|
.from(SYS_ROLE_MENU)
|
||||||
throw new ServiceException("删除租户的无用角色菜单记录失败!");
|
.where(SYS_ROLE_MENU.ROLE_ID.in(roleIds))
|
||||||
}
|
.and(SYS_ROLE_MENU.MENU_ID.notIn(menuIds))
|
||||||
|
);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user