Interface JoinRepository<T>

All Superinterfaces:
com.baomidou.mybatisplus.extension.repository.IRepository<T>
All Known Implementing Classes:
JoinAbstractRepository, JoinCrudRepository

public interface JoinRepository<T> extends com.baomidou.mybatisplus.extension.repository.IRepository<T>
IRepository
Since:
1.5.2
Author:
yulichang
  • Field Summary

    Fields inherited from interface com.baomidou.mybatisplus.extension.repository.IRepository

    DEFAULT_BATCH_SIZE
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    根据 Wrapper 条件,连表删除
    default Long
    根据 Wrapper 条件,查询总记录数
    default <DTO> List<DTO>
    selectJoinList(Class<DTO> clazz, MPJBaseJoin<T> wrapper)
    连接查询返回集合
    default <DTO, P extends com.baomidou.mybatisplus.core.metadata.IPage<DTO>>
    P
    selectJoinListPage(P page, Class<DTO> clazz, MPJBaseJoin<T> wrapper)
    连接查询返回集合并分页
    default Map<String,Object>
    连接查询返回Map
    default List<Map<String,Object>>
    连接查询返回Map集合
    default <P extends com.baomidou.mybatisplus.core.metadata.IPage<Map<String, Object>>>
    P
    selectJoinMapsPage(P page, MPJBaseJoin<T> wrapper)
    连接查询返回Map集合并分页
    default <DTO> DTO
    selectJoinOne(Class<DTO> clazz, MPJBaseJoin<T> wrapper)
    连接查询返回一条记录
    default boolean
    updateJoin(T entity, MPJBaseJoin<T> wrapper)
    根据 whereEntity 条件,更新记录
    default boolean
    updateJoinAndNull(T entity, MPJBaseJoin<T> wrapper)
    根据 whereEntity 条件,更新记录 (null字段也会更新 !!!)

    Methods inherited from interface com.baomidou.mybatisplus.extension.repository.IRepository

    count, count, exists, getBaseMapper, getById, getEntityClass, getMap, getObj, getOne, getOne, getOneOpt, getOneOpt, getOptById, ktQuery, ktUpdate, lambdaQuery, lambdaQuery, lambdaUpdate, list, list, list, list, listByIds, listByMap, listMaps, listMaps, listMaps, listMaps, listObjs, listObjs, listObjs, listObjs, page, page, pageMaps, pageMaps, query, remove, removeById, removeById, removeById, removeByIds, removeByIds, removeByMap, save, saveBatch, saveOrUpdate, saveOrUpdateBatch, update, update, update, updateBatchById, updateById
  • Method Details

    • deleteJoin

      default boolean deleteJoin(MPJBaseJoin<T> wrapper)
      根据 Wrapper 条件,连表删除
      Parameters:
      wrapper - joinWrapper
    • updateJoin

      default boolean updateJoin(T entity, MPJBaseJoin<T> wrapper)
      根据 whereEntity 条件,更新记录
      Parameters:
      entity - 实体对象 (set 条件值,可以为 null)
      wrapper - 实体对象封装操作类(可以为 null,里面的 entity 用于生成 where 语句)
    • updateJoinAndNull

      default boolean updateJoinAndNull(T entity, MPJBaseJoin<T> wrapper)
      根据 whereEntity 条件,更新记录 (null字段也会更新 !!!)
      Parameters:
      entity - 实体对象 (set 条件值,可以为 null)
      wrapper - 实体对象封装操作类(可以为 null,里面的 entity 用于生成 where 语句)
    • selectJoinCount

      default Long selectJoinCount(MPJBaseJoin<T> wrapper)
      根据 Wrapper 条件,查询总记录数
    • selectJoinOne

      default <DTO> DTO selectJoinOne(Class<DTO> clazz, MPJBaseJoin<T> wrapper)
      连接查询返回一条记录
    • selectJoinList

      default <DTO> List<DTO> selectJoinList(Class<DTO> clazz, MPJBaseJoin<T> wrapper)
      连接查询返回集合
    • selectJoinListPage

      default <DTO, P extends com.baomidou.mybatisplus.core.metadata.IPage<DTO>> P selectJoinListPage(P page, Class<DTO> clazz, MPJBaseJoin<T> wrapper)
      连接查询返回集合并分页
    • selectJoinMap

      default Map<String,Object> selectJoinMap(MPJBaseJoin<T> wrapper)
      连接查询返回Map
    • selectJoinMaps

      default List<Map<String,Object>> selectJoinMaps(MPJBaseJoin<T> wrapper)
      连接查询返回Map集合
    • selectJoinMapsPage

      default <P extends com.baomidou.mybatisplus.core.metadata.IPage<Map<String, Object>>> P selectJoinMapsPage(P page, MPJBaseJoin<T> wrapper)
      连接查询返回Map集合并分页