Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
miemieYaho committed Nov 30, 2024
1 parent 9a9b6ad commit 5d801b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/content/docs/guides/data-interface.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ if (user != null) {
生成的 SQL:

```sql
SELECT * FROM user WHERE name = 'John Doe' LIMIT 1
SELECT * FROM user WHERE name = 'John Doe'
```

**示例(getOne 不抛出异常):**
Expand Down Expand Up @@ -584,7 +584,7 @@ if (userMap != null) {
生成的 SQL:

```sql
SELECT * FROM user WHERE name = 'John Doe' LIMIT 1
SELECT * FROM user WHERE name = 'John Doe'
```

**示例(getObj):**
Expand All @@ -604,7 +604,7 @@ if (userName != null) {
生成的 SQL:

```sql
SELECT * FROM user WHERE name = 'John Doe' LIMIT 1
SELECT * FROM user WHERE name = 'John Doe'
```

通过上述示例,我们可以看到 `get` 系列方法是如何在 Service 层进行查询操作的,以及它们对应的 SQL 语句。这些方法提供了灵活的数据查询方式,可以根据不同的条件进行查询操作。
Expand Down

0 comments on commit 5d801b8

Please sign in to comment.