|
@@ -74,7 +74,7 @@ public class TenantServiceImpl implements TenantService {
|
|
|
TenantDto tenantDto = tenantMapper.selectById(id);
|
|
|
//获取租户菜单
|
|
|
if(tenantDto != null){
|
|
|
- tenantDto.setTenantMenuIds(tenantMapper.selectTenantMenuIds(id));
|
|
|
+ tenantDto.setTenantMenuIds(tenantMapper.selectTenantMenuIds(tenantDto.getCode()));
|
|
|
}
|
|
|
return tenantDto;
|
|
|
}
|
|
@@ -225,7 +225,7 @@ public class TenantServiceImpl implements TenantService {
|
|
|
//界面传回的租户菜单id
|
|
|
List<Integer > newTenantMenuIds = tenantDto.getTenantMenuIds();
|
|
|
//数据库中已存在的租户菜单id
|
|
|
- List<Integer > oldTenantMenuIds = tenantMapper.selectTenantMenuIds(tenantDto.getId());
|
|
|
+ List<Integer > oldTenantMenuIds = tenantMapper.selectTenantMenuIds(tenantDto.getCode());
|
|
|
//相同的暂时不改动
|
|
|
|
|
|
//新增的菜单id(需要新增的)
|