Interface JoinService<T>

All Known Subinterfaces:
MPJBaseService<T>
All Known Implementing Classes:
MPJBaseServiceImpl

public interface JoinService<T>
  • Method Details

    • getBaseMapper

      com.baomidou.mybatisplus.core.mapper.BaseMapper<T> getBaseMapper()
    • 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集合并分页