package com.patzn.lims.res.mapper;

import com.baomidou.mybatisplus.annotation.SqlParser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.patzn.lims.res.entity.LmsBaseDict;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
  * 字典表 Mapper 接口
 * </p>
 *
 * @author patzn
 * @since 2017-08-28
 */
public interface LmsBaseDictMapper extends BaseMapper<LmsBaseDict> {

    LmsBaseDict selectByKey(@Param("key") String key);

    @SqlParser(filter = true)
    List<LmsBaseDict>  selectBaseDictList();

    @SqlParser(filter = true)
    List<LmsBaseDict> getDictTypeNoRepeat(@Param("companyId") Long companyId);
}