Package com.github.yulichang.base
Interface JoinService<T>
- All Known Subinterfaces:
MPJBaseService<T>
- All Known Implementing Classes:
MPJBaseServiceImpl
public interface JoinService<T>
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleandeleteJoin(MPJBaseJoin<T> wrapper) 根据 Wrapper 条件,连表删除com.baomidou.mybatisplus.core.mapper.BaseMapper<T>default LongselectJoinCount(MPJBaseJoin<T> wrapper) 根据 Wrapper 条件,查询总记录数default <DTO> List<DTO>selectJoinList(Class<DTO> clazz, MPJBaseJoin<T> wrapper) 连接查询返回集合default <DTO,P extends com.baomidou.mybatisplus.core.metadata.IPage<DTO>>
PselectJoinListPage(P page, Class<DTO> clazz, MPJBaseJoin<T> wrapper) 连接查询返回集合并分页selectJoinMap(MPJBaseJoin<T> wrapper) 连接查询返回MapselectJoinMaps(MPJBaseJoin<T> wrapper) 连接查询返回Map集合selectJoinMapsPage(P page, MPJBaseJoin<T> wrapper) 连接查询返回Map集合并分页default <DTO> DTOselectJoinOne(Class<DTO> clazz, MPJBaseJoin<T> wrapper) 连接查询返回一条记录default booleanupdateJoin(T entity, MPJBaseJoin<T> wrapper) 根据 whereEntity 条件,更新记录default booleanupdateJoinAndNull(T entity, MPJBaseJoin<T> wrapper) 根据 whereEntity 条件,更新记录 (null字段也会更新 !!!)
-
Method Details
-
getBaseMapper
com.baomidou.mybatisplus.core.mapper.BaseMapper<T> getBaseMapper() -
deleteJoin
根据 Wrapper 条件,连表删除- Parameters:
wrapper- joinWrapper
-
updateJoin
根据 whereEntity 条件,更新记录- Parameters:
entity- 实体对象 (set 条件值,可以为 null)wrapper- 实体对象封装操作类(可以为 null,里面的 entity 用于生成 where 语句)
-
updateJoinAndNull
根据 whereEntity 条件,更新记录 (null字段也会更新 !!!)- Parameters:
entity- 实体对象 (set 条件值,可以为 null)wrapper- 实体对象封装操作类(可以为 null,里面的 entity 用于生成 where 语句)
-
selectJoinCount
根据 Wrapper 条件,查询总记录数 -
selectJoinOne
连接查询返回一条记录 -
selectJoinList
连接查询返回集合 -
selectJoinListPage
default <DTO,P extends com.baomidou.mybatisplus.core.metadata.IPage<DTO>> P selectJoinListPage(P page, Class<DTO> clazz, MPJBaseJoin<T> wrapper) 连接查询返回集合并分页 -
selectJoinMap
连接查询返回Map -
selectJoinMaps
连接查询返回Map集合 -
selectJoinMapsPage
default <P extends com.baomidou.mybatisplus.core.metadata.IPage<Map<String,Object>>> P selectJoinMapsPage(P page, MPJBaseJoin<T> wrapper) 连接查询返回Map集合并分页
-