package com.sysu.admin.support.system.role_permission;

import com.xiesx.fastboot.core.jpa.JpaPlusRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface RolePermissionRepository extends JpaPlusRepository<RolePermission, PKRP> {

    @Query(value = "select * from sys_role_permission where roles=?1", nativeQuery = true)
    List<RolePermission> getListByRole(Long roesId);
}
