/**
 * 
 */
package org.springblade.etl.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springblade.etl.entity.bi.ReportDatasourcePermission;

import java.util.List;

/**
 * @author wookvn
 *
 */
public interface ReportDatasourcePermissionMapper extends BaseMapper<ReportDatasourcePermission> {

	@Select({
		"select distinct a.* from report_datasource_permission a",
		"inner join data_permission_user b on a.data_perm_id = b.data_perm_id",
		"${ew.customSqlSegment}"
	})
	public List<ReportDatasourcePermission> listPerm(@Param(Constants.WRAPPER) QueryWrapper<ReportDatasourcePermission> queryWrapper);
}
