同步 v1.8.1 SQL 脚本

This commit is contained in:
YunaiV
2023-09-03 19:15:05 +08:00
parent 938f40d02d
commit 8bd2f64024
2 changed files with 453 additions and 80 deletions

View File

@@ -197,7 +197,7 @@ public class TenantServiceImplTest extends BaseDbUnitTest {
role100.setTenantId(dbTenant.getId());
RoleDO role101 = randomPojo(RoleDO.class, o -> o.setId(101L));
role101.setTenantId(dbTenant.getId());
when(roleService.getRoleListByStatus(isNull())).thenReturn(asList(role100, role101));
when(roleService.getRoleList()).thenReturn(asList(role100, role101));
// mock 每个角色的权限
when(permissionService.getRoleMenuListByRoleId(eq(101L))).thenReturn(asSet(201L, 202L));