public interface BaseMapper<T>
extends com.github.yulichang.base.MPJBaseMapper<T>
限定符和类型 | 方法和说明 |
---|---|
int |
alwaysUpdateSomeColumnById(T entity)
根据Id更新固定的某些字段,更新时可以设置哪些字段需要更新,哪些字段不需要更新
|
int |
deleteByIdWithFill(T entity)
根据id进行逻辑删除数据,并带自动填充功能
|
int |
insertBatchSomeColumn(List<T> entityList)
批量插入
如果实体中属性为null,那么插入数据表中数据为null,
如果数据库中已存在数据,会报错
|
int |
insertIgnoreBatchSomeColumn(List<T> entityList)
批量插入(insert ignore)
如果实体中属性为null,那么插入数据表中数据为null,
如果数据库中已存在数据,会被忽略已存在的数据
|
default com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper<T> |
lambdaQueryChain()
lambda查询链
|
default com.baomidou.mybatisplus.extension.conditions.update.LambdaUpdateChainWrapper<T> |
lambdaUpdateChain()
lambda更新链
|
default com.baomidou.mybatisplus.extension.conditions.query.QueryChainWrapper<T> |
queryChain()
查询链
|
default com.baomidou.mybatisplus.extension.conditions.update.UpdateChainWrapper<T> |
updateChain()
更新链
|
selectJoinCount, selectJoinList, selectJoinMap, selectJoinMaps, selectJoinMapsPage, selectJoinOne, selectJoinPage
mpjBindData, mpjBindMap, mpjQueryMapMapping, mpjQueryMapMapping, mpjQueryMapping, mpjQueryMapping, selectBatchIdsDeep, selectBatchIdsDeep, selectBatchIdsDeep, selectByIdDeep, selectByIdDeep, selectByIdDeep, selectByMapDeep, selectByMapDeep, selectByMapDeep, selectListDeep, selectListDeep, selectListDeep, selectMapsDeep, selectMapsDeep, selectMapsDeep, selectMapsPageDeep, selectMapsPageDeep, selectMapsPageDeep, selectOneDeep, selectOneDeep, selectOneDeep, selectPageDeep, selectPageDeep, selectPageDeep
default com.baomidou.mybatisplus.extension.conditions.query.QueryChainWrapper<T> queryChain()
default com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper<T> lambdaQueryChain()
default com.baomidou.mybatisplus.extension.conditions.update.UpdateChainWrapper<T> updateChain()
default com.baomidou.mybatisplus.extension.conditions.update.LambdaUpdateChainWrapper<T> lambdaUpdateChain()
int insertBatchSomeColumn(List<T> entityList)
entityList
- int insertIgnoreBatchSomeColumn(List<T> entityList)
entityList
- int alwaysUpdateSomeColumnById(@Param(value="et") T entity)
entity
- int deleteByIdWithFill(T entity)
entity
-