mybatis-flex/docs/zh/base/parts/base-mapper-delete-methods.md
王超 325e47eadb
update docs/zh/base/parts/base-mapper-delete-methods.md.
Signed-off-by: 王超 <920806536@qq.com>
2023-10-12 08:34:53 +00:00

8 lines
676 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

- **`deleteById(id)`**:根据主键删除数据。如果是多个主键的情况下,需要传入数组,例如:`new Integer[]{100,101}`
- **`delete(entity)`**根据实体主键来删除数据。相比deleteById(id),此方法更便于对复合主键实体类的删除。
- **`deleteBatchByIds(ids)`**:根据多个主键批量删除数据。
- **`deleteBatchByIds(ids, size)`**:根据多个主键批量删除数据。
- **`deleteByMap(whereConditions)`**:根据 Map 构建的条件来删除数据。
- **`deleteByCondition(whereConditions)`**:根据查询条件来删除数据。
- **`deleteByQuery(queryWrapper)`**:根据查询条件来删除数据。