package cn.pluss.platform.mapper;

import cn.pluss.platform.entity.OpenAccountConfig;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 开户奖配置表 Mapper 接口
 * </p>
 *
 * @author crystal
 * @since 2022-06-14
 */
public interface OpenAccountConfigMapper extends BaseMapper<OpenAccountConfig> {

    @Select("SELECT * FROM tb_pluss_open_account_config WHERE roleCode = #{roleCode} order by `level` desc")
    List<OpenAccountConfig> listByRoleCode(String roleCode);
}
