接口 FakerMapper<ENTITY extends BaseEntity<? extends Serializable>>
-
- 所有超级接口:
com.baomidou.mybatisplus.core.mapper.BaseMapper<ENTITY>,BaseMapper<ENTITY>,com.baomidou.mybatisplus.core.mapper.Mapper<ENTITY>
public interface FakerMapper<ENTITY extends BaseEntity<? extends Serializable>> extends BaseMapper<ENTITY>
仅仅为了兼容接口,复用 controller 、 service,实际不实现未使用功能 若要使用 CRUD Controller 则至少实现 insert updateById updateAllById selectById selectList selectPage deleteById deleteBatchIds- 作者:
- lym
-
-
方法概要
所有方法 实例方法 默认方法 修饰符和类型 方法 说明 default BaseRuntimeExceptioncreateNotSupportException()default intdelete(com.baomidou.mybatisplus.core.conditions.Wrapper<ENTITY> queryWrapper)default intdeleteBatchIds(Collection<? extends Serializable> idList)default intdeleteById(Serializable id)default intdeleteByMap(Map<String,Object> columnMap)default intdeleteInLogicByBizId(ENTITY entity)逻辑删除,根据 id 进行default intdeleteInLogicByBizIdList(Collection<? extends ENTITY> entityList)逻辑删除,根据 id 进行default intdeleteInLogicById(ENTITY entity)逻辑删除,根据 id 进行default intdeleteInLogicByIdList(List<? extends Serializable> idList)逻辑删除,根据 id 进行default intinsert(ENTITY entity)default intinsertBatch(List<ENTITY> dictionaryEntities)批量插入(所有字段)default List<ENTITY>selectBatchBizIds(Collection<String> bizId)查询(根据 bizId 批量查询)default List<ENTITY>selectBatchIds(Collection<? extends Serializable> idList)default ENTITYselectByBizId(String bizId)根据 bizId 查询default ENTITYselectById(Serializable id)default List<ENTITY>selectByMap(Map<String,Object> columnMap)default IntegerselectCount(com.baomidou.mybatisplus.core.conditions.Wrapper<ENTITY> queryWrapper)default ENTITYselectForUpdateByBizId(String bizId)锁定一条记录default ENTITYselectForUpdateById(Serializable id)锁定一条记录default List<ENTITY>selectList(com.baomidou.mybatisplus.core.conditions.Wrapper<ENTITY> queryWrapper)default List<Map<String,Object>>selectMaps(com.baomidou.mybatisplus.core.conditions.Wrapper<ENTITY> queryWrapper)default <E extends com.baomidou.mybatisplus.core.metadata.IPage<Map<String,Object>>>
EselectMapsPage(E page, com.baomidou.mybatisplus.core.conditions.Wrapper<ENTITY> queryWrapper)default List<Object>selectObjs(com.baomidou.mybatisplus.core.conditions.Wrapper<ENTITY> queryWrapper)default ENTITYselectOne(com.baomidou.mybatisplus.core.conditions.Wrapper<ENTITY> queryWrapper)default <E extends com.baomidou.mybatisplus.core.metadata.IPage<ENTITY>>
EselectPage(E page, com.baomidou.mybatisplus.core.conditions.Wrapper<ENTITY> queryWrapper)default intupdate(ENTITY entity, com.baomidou.mybatisplus.core.conditions.Wrapper<ENTITY> updateWrapper)default intupdateAllFieldsById(ENTITY entity)根据 id 全量修改所有包含的字段,与 updateById 区别:包括为 null 的字段,表示设置这个字段为 NULL 不常用default intupdateByBizId(ENTITY entity)根据 bizId 修改default intupdateById(ENTITY entity)-
从接口继承的方法 org.shoulder.data.mybatis.template.dao.BaseMapper
selectBatchForUpdateByBizIds
-
-
-
-
方法详细资料
-
insert
default int insert(ENTITY entity)
- 指定者:
insert在接口中com.baomidou.mybatisplus.core.mapper.BaseMapper<ENTITY extends BaseEntity<? extends Serializable>>
-
updateById
default int updateById(ENTITY entity)
- 指定者:
updateById在接口中com.baomidou.mybatisplus.core.mapper.BaseMapper<ENTITY extends BaseEntity<? extends Serializable>>
-
updateAllFieldsById
default int updateAllFieldsById(ENTITY entity)
从接口复制的说明:BaseMapper根据 id 全量修改所有包含的字段,与 updateById 区别:包括为 null 的字段,表示设置这个字段为 NULL 不常用- 指定者:
updateAllFieldsById在接口中BaseMapper<ENTITY extends BaseEntity<? extends Serializable>>- 参数:
entity- 实体- 返回:
- 修改数量
-
selectById
default ENTITY selectById(Serializable id)
- 指定者:
selectById在接口中com.baomidou.mybatisplus.core.mapper.BaseMapper<ENTITY extends BaseEntity<? extends Serializable>>
-
selectList
default List<ENTITY> selectList(com.baomidou.mybatisplus.core.conditions.Wrapper<ENTITY> queryWrapper)
- 指定者:
selectList在接口中com.baomidou.mybatisplus.core.mapper.BaseMapper<ENTITY extends BaseEntity<? extends Serializable>>
-
selectPage
default <E extends com.baomidou.mybatisplus.core.metadata.IPage<ENTITY>> E selectPage(E page, com.baomidou.mybatisplus.core.conditions.Wrapper<ENTITY> queryWrapper)
- 指定者:
selectPage在接口中com.baomidou.mybatisplus.core.mapper.BaseMapper<ENTITY extends BaseEntity<? extends Serializable>>
-
deleteById
default int deleteById(Serializable id)
- 指定者:
deleteById在接口中com.baomidou.mybatisplus.core.mapper.BaseMapper<ENTITY extends BaseEntity<? extends Serializable>>
-
deleteBatchIds
default int deleteBatchIds(Collection<? extends Serializable> idList)
- 指定者:
deleteBatchIds在接口中com.baomidou.mybatisplus.core.mapper.BaseMapper<ENTITY extends BaseEntity<? extends Serializable>>
-
selectByBizId
default ENTITY selectByBizId(String bizId)
从接口复制的说明:BaseMapper根据 bizId 查询- 指定者:
selectByBizId在接口中BaseMapper<ENTITY extends BaseEntity<? extends Serializable>>- 参数:
bizId- bizId- 返回:
- entity
-
selectBatchBizIds
default List<ENTITY> selectBatchBizIds(Collection<String> bizId)
从接口复制的说明:BaseMapper查询(根据 bizId 批量查询)- 指定者:
selectBatchBizIds在接口中BaseMapper<ENTITY extends BaseEntity<? extends Serializable>>- 返回:
- entity
-
selectForUpdateByBizId
default ENTITY selectForUpdateByBizId(String bizId)
从接口复制的说明:BaseMapper锁定一条记录- 指定者:
selectForUpdateByBizId在接口中BaseMapper<ENTITY extends BaseEntity<? extends Serializable>>- 参数:
bizId- bizId- 返回:
- 实体
-
selectForUpdateById
default ENTITY selectForUpdateById(Serializable id)
从接口复制的说明:BaseMapper锁定一条记录- 指定者:
selectForUpdateById在接口中BaseMapper<ENTITY extends BaseEntity<? extends Serializable>>- 参数:
id- 主键- 返回:
- 实体
-
updateByBizId
default int updateByBizId(ENTITY entity)
从接口复制的说明:BaseMapper根据 bizId 修改- 指定者:
updateByBizId在接口中BaseMapper<ENTITY extends BaseEntity<? extends Serializable>>- 参数:
entity- 实体对象- 返回:
- 影响行数
-
insertBatch
default int insertBatch(List<ENTITY> dictionaryEntities)
从接口复制的说明:BaseMapper批量插入(所有字段)- 指定者:
insertBatch在接口中BaseMapper<ENTITY extends BaseEntity<? extends Serializable>>- 参数:
dictionaryEntities- 实体集合- 返回:
- 插入数量
-
deleteInLogicById
default int deleteInLogicById(ENTITY entity)
从接口复制的说明:BaseMapper逻辑删除,根据 id 进行- 指定者:
deleteInLogicById在接口中BaseMapper<ENTITY extends BaseEntity<? extends Serializable>>- 参数:
entity- 实体- 返回:
- 影响行数
-
deleteInLogicByIdList
default int deleteInLogicByIdList(List<? extends Serializable> idList)
从接口复制的说明:BaseMapper逻辑删除,根据 id 进行- 指定者:
deleteInLogicByIdList在接口中BaseMapper<ENTITY extends BaseEntity<? extends Serializable>>- 参数:
idList- idList- 返回:
- 影响行数
-
deleteInLogicByBizId
default int deleteInLogicByBizId(ENTITY entity)
从接口复制的说明:BaseMapper逻辑删除,根据 id 进行- 指定者:
deleteInLogicByBizId在接口中BaseMapper<ENTITY extends BaseEntity<? extends Serializable>>- 参数:
entity- 实体- 返回:
- 影响行数
-
deleteInLogicByBizIdList
default int deleteInLogicByBizIdList(Collection<? extends ENTITY> entityList)
从接口复制的说明:BaseMapper逻辑删除,根据 id 进行- 指定者:
deleteInLogicByBizIdList在接口中BaseMapper<ENTITY extends BaseEntity<? extends Serializable>>- 参数:
entityList- 实体列表- 返回:
- 影响行数
-
deleteByMap
default int deleteByMap(Map<String,Object> columnMap)
- 指定者:
deleteByMap在接口中com.baomidou.mybatisplus.core.mapper.BaseMapper<ENTITY extends BaseEntity<? extends Serializable>>
-
delete
default int delete(com.baomidou.mybatisplus.core.conditions.Wrapper<ENTITY> queryWrapper)
- 指定者:
delete在接口中com.baomidou.mybatisplus.core.mapper.BaseMapper<ENTITY extends BaseEntity<? extends Serializable>>
-
update
default int update(ENTITY entity, com.baomidou.mybatisplus.core.conditions.Wrapper<ENTITY> updateWrapper)
- 指定者:
update在接口中com.baomidou.mybatisplus.core.mapper.BaseMapper<ENTITY extends BaseEntity<? extends Serializable>>
-
selectBatchIds
default List<ENTITY> selectBatchIds(Collection<? extends Serializable> idList)
- 指定者:
selectBatchIds在接口中com.baomidou.mybatisplus.core.mapper.BaseMapper<ENTITY extends BaseEntity<? extends Serializable>>
-
selectByMap
default List<ENTITY> selectByMap(Map<String,Object> columnMap)
- 指定者:
selectByMap在接口中com.baomidou.mybatisplus.core.mapper.BaseMapper<ENTITY extends BaseEntity<? extends Serializable>>
-
selectOne
default ENTITY selectOne(com.baomidou.mybatisplus.core.conditions.Wrapper<ENTITY> queryWrapper)
- 指定者:
selectOne在接口中com.baomidou.mybatisplus.core.mapper.BaseMapper<ENTITY extends BaseEntity<? extends Serializable>>
-
selectCount
default Integer selectCount(com.baomidou.mybatisplus.core.conditions.Wrapper<ENTITY> queryWrapper)
- 指定者:
selectCount在接口中com.baomidou.mybatisplus.core.mapper.BaseMapper<ENTITY extends BaseEntity<? extends Serializable>>
-
selectMaps
default List<Map<String,Object>> selectMaps(com.baomidou.mybatisplus.core.conditions.Wrapper<ENTITY> queryWrapper)
- 指定者:
selectMaps在接口中com.baomidou.mybatisplus.core.mapper.BaseMapper<ENTITY extends BaseEntity<? extends Serializable>>
-
selectObjs
default List<Object> selectObjs(com.baomidou.mybatisplus.core.conditions.Wrapper<ENTITY> queryWrapper)
- 指定者:
selectObjs在接口中com.baomidou.mybatisplus.core.mapper.BaseMapper<ENTITY extends BaseEntity<? extends Serializable>>
-
selectMapsPage
default <E extends com.baomidou.mybatisplus.core.metadata.IPage<Map<String,Object>>> E selectMapsPage(E page, com.baomidou.mybatisplus.core.conditions.Wrapper<ENTITY> queryWrapper)
- 指定者:
selectMapsPage在接口中com.baomidou.mybatisplus.core.mapper.BaseMapper<ENTITY extends BaseEntity<? extends Serializable>>
-
createNotSupportException
default BaseRuntimeException createNotSupportException()
-
-