Interface SelectByIdListMapper<T,PK>

Type Parameters:
T - 泛型
PK - 主键
All Known Subinterfaces:
IdListMapper<T,PK>

public interface SelectByIdListMapper<T,PK>
通用Mapper接口,根据ids查询
Since:
Java 17+
Author:
Kimi Liu
  • Method Summary

    Modifier and Type
    Method
    Description
    根据主键字符串进行查询,类中只有存在一个带有@Id注解的字段
  • Method Details

    • selectByIdList

      @SelectProvider(type=IdListProvider.class, method="dynamicSQL") List<T> selectByIdList(@Param("idList") List<PK> idList)
      根据主键字符串进行查询,类中只有存在一个带有@Id注解的字段
      Parameters:
      idList - 记录值
      Returns:
      the list