public interface MPJBaseService<T>
extends com.baomidou.mybatisplus.extension.service.IService<T>
| 限定符和类型 | 方法和说明 |
|---|---|
default boolean |
deleteJoin(MPJBaseJoin<T> wrapper)
根据 Wrapper 条件,连表删除
|
default Long |
selectJoinCount(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>> |
selectJoinListPage(P page,
Class<DTO> clazz,
MPJBaseJoin<T> wrapper)
连接查询返回集合并分页
|
default Map<String,Object> |
selectJoinMap(MPJBaseJoin<T> wrapper)
连接查询返回Map
|
default List<Map<String,Object>> |
selectJoinMaps(MPJBaseJoin<T> wrapper)
连接查询返回Map集合
|
default <P extends com.baomidou.mybatisplus.core.metadata.IPage<Map<String,Object>>> |
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字段也会更新 !!!)
|
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, removeBatchByIds, removeBatchByIds, removeBatchByIds, removeBatchByIds, removeById, removeById, removeById, removeByIds, removeByIds, removeByMap, save, saveBatch, saveBatch, saveOrUpdate, saveOrUpdate, saveOrUpdateBatch, saveOrUpdateBatch, update, update, update, updateBatchById, updateBatchById, updateByIddefault boolean deleteJoin(MPJBaseJoin<T> wrapper)
wrapper - joinWrapperdefault boolean updateJoin(T entity, MPJBaseJoin<T> wrapper)
entity - 实体对象 (set 条件值,可以为 null)wrapper - 实体对象封装操作类(可以为 null,里面的 entity 用于生成 where 语句)default boolean updateJoinAndNull(T entity, MPJBaseJoin<T> wrapper)
entity - 实体对象 (set 条件值,可以为 null)wrapper - 实体对象封装操作类(可以为 null,里面的 entity 用于生成 where 语句)default Long selectJoinCount(MPJBaseJoin<T> wrapper)
default <DTO> DTO selectJoinOne(Class<DTO> clazz, MPJBaseJoin<T> 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> selectJoinMap(MPJBaseJoin<T> wrapper)
default <P extends com.baomidou.mybatisplus.core.metadata.IPage<Map<String,Object>>> P selectJoinMapsPage(P page, MPJBaseJoin<T> wrapper)
Copyright © 2023. All rights reserved.