Skip to content

Commit

Permalink
refactor: 重构打印返回结果表格
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Mar 29, 2024
1 parent a5fc9db commit 6293e97
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
```

----------
### 最新版本:[点击查看](https://search.maven.org/artifact/com.github.dreamroute/sqlprinter-spring-boot-starter)
### 最新版本:[点击查看](https://central.sonatype.com/artifact/com.github.dreamroute/sqlprinter-spring-boot-starter)

--------------

Expand All @@ -36,6 +36,19 @@
- com.github.dreamroute.sqlprinter.boot.mapper.UserMapper.selectAll
```
那么selectById和selectAll方法就不会打印sql了。
4. 对于查询sql,显示查询结果,整条效果如下:
```
==> com.github.dreamroute.sqlprinter.boot.mapper.UserMapper.selectUserByIds
SELECT *
FROM smart_user
WHERE id IN (1, 2)
|==========================================================|
| id | name | password | version | birthday | gender |
|==========================================================|
| 1 | w.dehai | null | 0 | null | null |
| 2 | Dreamroute | null | 0 | null | null |
|==========================================================|
```
----------
### 2. 效果: ###
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

<properties>
<!-- 版本信息 -->
<revision>2.3.11-RELEASE</revision>
<revision>2.3.12-RELEASE</revision>

<!-- 默认仓库地址 -->
<repository.url>https://maven.aliyun.com/repository/public</repository.url>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@

/**
* 控制台打印表格
*
* @author zhanjixun
* @date 2020-07-27 18:05:21
*/
public class PrettyTable {
/**
Expand Down

0 comments on commit 6293e97

Please sign in to comment.