package com.hzs.system.config.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hzs.common.domain.system.config.BdMenuDetail;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 菜单配置权限明细 Mapper 接口
 *
 * @author hzs
 * @since 2022-10-08
 */
public interface BdMenuDetailMapper extends BaseMapper<BdMenuDetail> {

    /**
     * 批量插入
     *
     * @param list
     * @return
     */
    int insertBatch(List<BdMenuDetail> list);

    /**
     * 查询会员显示菜单
     *
     * @param pkGrade   等级ID
     * @param pkAwards  奖衔ID
     * @param authority 注册权限
     * @param pkCountry 国家ID
     * @return
     */
    List<BdMenuDetail> showMenuDetail(@Param("pkGrade") Integer pkGrade,
                                      @Param("pkAwards") Integer pkAwards,
                                      @Param("authority") Integer authority,
                                      @Param("pkCountry") Integer pkCountry);

}
