【8.0】【sys】【role】封装获取角色限制列表接口

pull/57/head
fengshuonan 2023-09-08 14:20:41 +08:00
parent 2007a08031
commit 1d592db287
2 changed files with 12 additions and 1 deletions

View File

@ -5,6 +5,8 @@ import cn.stylefeng.roses.kernel.sys.modular.role.pojo.request.RoleBindPermissio
import cn.stylefeng.roses.kernel.sys.modular.role.pojo.response.RoleBindPermissionResponse;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.Set;
/**
*
*
@ -29,4 +31,12 @@ public interface SysRoleLimitService extends IService<SysRoleLimit> {
*/
void updateRoleBindLimit(RoleBindPermissionRequest roleBindPermissionRequest);
/**
* idid
*
* @author fengshuonan
* @since 2023/9/8 14:19
*/
Set<Long> getRoleBindLimitList(Long roleId);
}

View File

@ -63,7 +63,8 @@ public class SysRoleLimitServiceImpl extends ServiceImpl<SysRoleLimitMapper, Sys
* @author fengshuonan
* @since 2023/9/8 13:55
*/
private Set<Long> getRoleBindLimitList(Long roleId) {
@Override
public Set<Long> getRoleBindLimitList(Long roleId) {
LambdaQueryWrapper<SysRoleLimit> sysRoleLimitLambdaQueryWrapper = new LambdaQueryWrapper<>();
sysRoleLimitLambdaQueryWrapper.select(SysRoleLimit::getBusinessId);
sysRoleLimitLambdaQueryWrapper.eq(SysRoleLimit::getRoleId, roleId);