java-myBatis-plus(CRUD)

https://baomidou.com/pages/10c804/#abstractwrapper

 

笔记1 BaseMapper CRUD 接口的方法
insert

delete entity 条件
deletById id
deletBacthIds ids
deletByMap map添加

update entiy 条件
updateById id

selectById id 单数据
selectOne entity 条件

selectList entity 条件
seletBachtIds ids
selectByMap
selectMaps
seletctObjs
------------------------------------------------------------------------------------
笔记1 IBaseService CRUD 接口的方法-
sava
saveBatch 批量插入

saveOrUpdate // TableId 注解存在更新记录,否插入一条记录
saveOrUpdateBatch // 批量修改插入

remove
removeById
removeByIds
removeMap

update
updaeById
updateBacthIds

getById
getOne
getMap // 根据 Wrapper,查询一条记录
getObj // 根据 Wrapper,查询一条记录

list
listByIds
listByMap
ListMaps



 

posted @ 2024-04-09 16:18  y_d_g  阅读(9)  评论(0编辑  收藏  举报