接口 BaseMapper<T>

所有已知子接口:
PayConfigMapper, PayRecordMapper, RmsClientDetailsMapper

public interface BaseMapper<T>
  • 方法详细资料

    • insert

      Integer insert(T entity)
      插入一条记录
      参数:
      entity - 实体对象
      返回:
      int
    • insertBatch

      Integer insertBatch(List<T> list)
      批量插入
      参数:
      list - 数据集
      返回:
      int
    • deleteById

      Integer deleteById(Serializable id)
      根据 ID 删除
      参数:
      id - 主键ID
      返回:
      int
    • delete

      Integer delete(T t)
      根据 entity 条件,删除记录
      参数:
      t - 实体对象封装操作类(可以为 null)
      返回:
      int
    • deleteBatchIds

      Integer deleteBatchIds(@Param("coll") Collection<? extends Serializable> idList)

      删除(根据ID 批量删除)

      参数:
      idList - 主键ID列表
      返回:
      int
    • modify

      Integer modify(T entity)

      根据 ID 修改

      参数:
      entity - 实体对象
      返回:
      int
    • modifyBatch

      Integer modifyBatch(List<T> list)
      批量修改数据
      参数:
      list - 数据集
      返回:
      int
    • findEntityById

      <T> T findEntityById(Serializable id)
      根据 ID 查询
      类型参数:
      T - 实体类
      参数:
      id - 主键ID
      返回:
      T
    • listFindByIds

      <T> List<T> listFindByIds(@Param("coll") Collection<? extends Serializable> idList)
      查询(根据ID 批量查询)
      类型参数:
      T - 实体类
      参数:
      idList - 主键ID列表
      返回:
      List
    • findEntity

      <T> T findEntity(T entity)
      根据 entity 条件,查询一条记录
      类型参数:
      T - 实体类
      参数:
      entity - 实体对象
      返回:
      T
    • listFindByEntity

      <T> List<T> listFindByEntity(T entity)
      根据 entity 条件,查询全部记录
      类型参数:
      T - 实体类
      参数:
      entity - 实体对象封装操作类(可以为 null)
      返回:
      List