Interface SelectByIdsMapper<T>

Type Parameters:
T - 泛型
All Known Subinterfaces:
IdsMapper<T>, Mapper<T>

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

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

    • selectByIds

      @SelectProvider(type=IdsProvider.class, method="dynamicSQL") List<T> selectByIds(String ids)
      根据主键字符串进行查询,类中只有存在一个带有@Id注解的字段
      Parameters:
      ids - 如 "1,2,3,4"
      Returns:
      the int 操作结果