mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-06 16:48:24 +08:00
update docs/zh/base/parts/base-mapper-delete-methods.md.
Signed-off-by: 王超 <920806536@qq.com>
This commit is contained in:
parent
7ca4279e04
commit
8b532e18df
@ -1,4 +1,5 @@
|
||||
- **`deleteById(id)`**:根据主键删除数据。如果是多个主键的情况下,需要传入数组,例如:`new Integer[]{100,101}`。
|
||||
- **`delete(entity)`**:根据实体主键来删除数据。相比deleteById(id),此方法更便于对多主键实体类的删除。
|
||||
- **`deleteBatchByIds(ids)`**:根据多个主键批量删除数据。
|
||||
- **`deleteBatchByIds(ids, size)`**:根据多个主键批量删除数据。
|
||||
- **`deleteByMap(whereConditions)`**:根据 Map 构建的条件来删除数据。
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user