Skip to content

Commit

Permalink
Update data-interface.mdx
Browse files Browse the repository at this point in the history
fix:调整文档removeByMap
  • Loading branch information
ForeverWorld authored and nieqiurong committed Jul 26, 2024
1 parent e1142c4 commit 689bb41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/content/docs/guides/data-interface.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ DELETE FROM user WHERE id = 1
**示例(removeByMap):**

```java
// 假设有一个 columnMap,设置删除条件为 age > 30
// 假设有一个 columnMap,设置删除条件为 age = 30
Map<String, Object> columnMap = new HashMap<>();
columnMap.put("age", 30);
boolean result = userService.removeByMap(columnMap); // 调用 removeByMap 方法
Expand All @@ -316,7 +316,7 @@ if (result) {
生成的 SQL:

```sql
DELETE FROM user WHERE age > 30
DELETE FROM user WHERE age = 30
```

**示例(removeByIds):**
Expand Down

0 comments on commit 689bb41

Please sign in to comment.