From 9271c48a2154945bef527a953105f43deee9039a Mon Sep 17 00:00:00 2001 From: psxjoy Date: Fri, 1 Nov 2024 17:59:59 +0800 Subject: [PATCH 1/2] fix:fix some typos in project --- .../ai/chat2db/server/domain/api/enums/AiSqlSourceEnum.java | 2 +- .../chat2db/server/test/temp/{SqlTeset.java => SqlTset.java} | 2 +- .../admin/api/controller/user/UserTeamAdminController.java | 2 +- .../data/source/request/DataSourceBaseRequestInfo.java | 4 ++-- .../web/api/controller/user/request/UserQueryRequest.java | 2 +- .../src/main/java/ai/chat2db/spi/ValueProcessor.java | 2 +- .../src/main/java/ai/chat2db/spi/sql/ConnectionPool.java | 4 ++-- .../src/main/java/ai/chat2db/spi/util/SqlSplitter.java | 2 +- 8 files changed, 10 insertions(+), 10 deletions(-) rename chat2db-server/chat2db-server-test/src/test/java/ai/chat2db/server/test/temp/{SqlTeset.java => SqlTset.java} (98%) diff --git a/chat2db-server/chat2db-server-domain/chat2db-server-domain-api/src/main/java/ai/chat2db/server/domain/api/enums/AiSqlSourceEnum.java b/chat2db-server/chat2db-server-domain/chat2db-server-domain-api/src/main/java/ai/chat2db/server/domain/api/enums/AiSqlSourceEnum.java index 05eb2050a..6e8fd3ef7 100644 --- a/chat2db-server/chat2db-server-domain/chat2db-server-domain-api/src/main/java/ai/chat2db/server/domain/api/enums/AiSqlSourceEnum.java +++ b/chat2db-server/chat2db-server-domain/chat2db-server-domain-api/src/main/java/ai/chat2db/server/domain/api/enums/AiSqlSourceEnum.java @@ -38,7 +38,7 @@ public enum AiSqlSourceEnum implements BaseEnum { CLAUDEAI("CLAUDE AI"), /** - * WNEXIN AI + * WENXIN AI */ WENXINAI("WENXIN AI"), diff --git a/chat2db-server/chat2db-server-test/src/test/java/ai/chat2db/server/test/temp/SqlTeset.java b/chat2db-server/chat2db-server-test/src/test/java/ai/chat2db/server/test/temp/SqlTset.java similarity index 98% rename from chat2db-server/chat2db-server-test/src/test/java/ai/chat2db/server/test/temp/SqlTeset.java rename to chat2db-server/chat2db-server-test/src/test/java/ai/chat2db/server/test/temp/SqlTset.java index a58479481..df92a18df 100644 --- a/chat2db-server/chat2db-server-test/src/test/java/ai/chat2db/server/test/temp/SqlTeset.java +++ b/chat2db-server/chat2db-server-test/src/test/java/ai/chat2db/server/test/temp/SqlTset.java @@ -26,7 +26,7 @@ import org.junit.jupiter.api.Test; @Slf4j -public class SqlTeset extends BaseTest { +public class SqlTset extends BaseTest { @Resource private TableService tableService; diff --git a/chat2db-server/chat2db-server-web/chat2db-server-admin-api/src/main/java/ai/chat2db/server/admin/api/controller/user/UserTeamAdminController.java b/chat2db-server/chat2db-server-web/chat2db-server-admin-api/src/main/java/ai/chat2db/server/admin/api/controller/user/UserTeamAdminController.java index bfa0b71d4..b7551eaac 100644 --- a/chat2db-server/chat2db-server-web/chat2db-server-admin-api/src/main/java/ai/chat2db/server/admin/api/controller/user/UserTeamAdminController.java +++ b/chat2db-server/chat2db-server-web/chat2db-server-admin-api/src/main/java/ai/chat2db/server/admin/api/controller/user/UserTeamAdminController.java @@ -58,7 +58,7 @@ public WebPageResult page(@Valid UserPageCommonQueryRequest * @version 2.1.0 */ @PostMapping("/batch_create") - public ActionResult bacthCreate(@Valid @RequestBody UserTeamBatchCreateRequest request) { + public ActionResult batchCreate(@Valid @RequestBody UserTeamBatchCreateRequest request) { request.getTeamIdList() .forEach(teamId -> { TeamUserPageQueryParam teamUserPageQueryParam = new TeamUserPageQueryParam(); diff --git a/chat2db-server/chat2db-server-web/chat2db-server-web-api/src/main/java/ai/chat2db/server/web/api/controller/data/source/request/DataSourceBaseRequestInfo.java b/chat2db-server/chat2db-server-web/chat2db-server-web-api/src/main/java/ai/chat2db/server/web/api/controller/data/source/request/DataSourceBaseRequestInfo.java index 8dfe798da..848662ebc 100644 --- a/chat2db-server/chat2db-server-web/chat2db-server-web-api/src/main/java/ai/chat2db/server/web/api/controller/data/source/request/DataSourceBaseRequestInfo.java +++ b/chat2db-server/chat2db-server-web/chat2db-server-web-api/src/main/java/ai/chat2db/server/web/api/controller/data/source/request/DataSourceBaseRequestInfo.java @@ -8,13 +8,13 @@ public interface DataSourceBaseRequestInfo { /** - * Get datasoure id + * Get datasource id * @return */ Long getDataSourceId(); /** - * get datasoure name + * get datasource name * @return */ String getDatabaseName(); diff --git a/chat2db-server/chat2db-server-web/chat2db-server-web-api/src/main/java/ai/chat2db/server/web/api/controller/user/request/UserQueryRequest.java b/chat2db-server/chat2db-server-web/chat2db-server-web-api/src/main/java/ai/chat2db/server/web/api/controller/user/request/UserQueryRequest.java index 40e5c5e2d..58a4e5006 100644 --- a/chat2db-server/chat2db-server-web/chat2db-server-web-api/src/main/java/ai/chat2db/server/web/api/controller/user/request/UserQueryRequest.java +++ b/chat2db-server/chat2db-server-web/chat2db-server-web-api/src/main/java/ai/chat2db/server/web/api/controller/user/request/UserQueryRequest.java @@ -12,7 +12,7 @@ /** * @author jipengfei - * @version : UserQueyRequest.java + * @version : UserQueryRequest.java */ @Data @SuperBuilder diff --git a/chat2db-server/chat2db-spi/src/main/java/ai/chat2db/spi/ValueProcessor.java b/chat2db-server/chat2db-spi/src/main/java/ai/chat2db/spi/ValueProcessor.java index c8776feb4..be48e8019 100644 --- a/chat2db-server/chat2db-spi/src/main/java/ai/chat2db/spi/ValueProcessor.java +++ b/chat2db-server/chat2db-spi/src/main/java/ai/chat2db/spi/ValueProcessor.java @@ -13,7 +13,7 @@ public interface ValueProcessor { *
* Input oracle DATE : '2024-05-29 11:35:20.0' *
- * Output for Oracle DATE: TO_DATE('2024-05-29 14:25:00', 'SYYYY-MM-DD HH24:MI:SS') + * Output for Oracle DATE: TO_DATE('2024-05-29 14:25:00', 'YYYY-MM-DD HH24:MI:SS') */ String getSqlValueString(SQLDataValue dataValue); diff --git a/chat2db-server/chat2db-spi/src/main/java/ai/chat2db/spi/sql/ConnectionPool.java b/chat2db-server/chat2db-spi/src/main/java/ai/chat2db/spi/sql/ConnectionPool.java index 9c8a0dc67..c4ea3250c 100644 --- a/chat2db-server/chat2db-spi/src/main/java/ai/chat2db/spi/sql/ConnectionPool.java +++ b/chat2db-server/chat2db-spi/src/main/java/ai/chat2db/spi/sql/ConnectionPool.java @@ -63,7 +63,7 @@ public static Connection getConnection(ConnectInfo connectInfo) { Connection connection = connectInfo.getConnection(); try { if (connection != null && !connection.isClosed()) { - log.info("get connection from loacl"); + log.info("get connection from local"); return connection; } String key = connectInfo.getKey(); @@ -72,7 +72,7 @@ public static Connection getConnection(ConnectInfo connectInfo) { synchronized (lock) { connection = connectInfo.getConnection(); if (connection != null && !connection.isClosed()) { - log.info("get connection from loacl"); + log.info("get connection from local"); return connection; } diff --git a/chat2db-server/chat2db-spi/src/main/java/ai/chat2db/spi/util/SqlSplitter.java b/chat2db-server/chat2db-spi/src/main/java/ai/chat2db/spi/util/SqlSplitter.java index 8b4fff1d6..0150b4668 100644 --- a/chat2db-server/chat2db-spi/src/main/java/ai/chat2db/spi/util/SqlSplitter.java +++ b/chat2db-server/chat2db-spi/src/main/java/ai/chat2db/spi/util/SqlSplitter.java @@ -563,7 +563,7 @@ private int isPLBlockEnd(Token[] tokens, int pos) { int posShift = 0; /** *
-         * `subPLStack` in this function must not be empty because this fuction must be called when state in PL_STMT
+         * `subPLStack` in this function must not be empty because this function must be called when state in PL_STMT
          * `subPLStack` must have been pushed at least once before enter PL_STMT
          * 
*/ From 5e1d251a2dbd6f7b6b34737ae86e55e9e61eefe9 Mon Sep 17 00:00:00 2001 From: psxjoy Date: Tue, 19 Nov 2024 14:21:29 +0800 Subject: [PATCH 2/2] fix:fix some typos in project --- .../ai/chat2db/server/test/temp/{SqlTset.java => SqlTest.java} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename chat2db-server/chat2db-server-test/src/test/java/ai/chat2db/server/test/temp/{SqlTset.java => SqlTest.java} (98%) diff --git a/chat2db-server/chat2db-server-test/src/test/java/ai/chat2db/server/test/temp/SqlTset.java b/chat2db-server/chat2db-server-test/src/test/java/ai/chat2db/server/test/temp/SqlTest.java similarity index 98% rename from chat2db-server/chat2db-server-test/src/test/java/ai/chat2db/server/test/temp/SqlTset.java rename to chat2db-server/chat2db-server-test/src/test/java/ai/chat2db/server/test/temp/SqlTest.java index df92a18df..e00b2252b 100644 --- a/chat2db-server/chat2db-server-test/src/test/java/ai/chat2db/server/test/temp/SqlTset.java +++ b/chat2db-server/chat2db-server-test/src/test/java/ai/chat2db/server/test/temp/SqlTest.java @@ -26,7 +26,7 @@ import org.junit.jupiter.api.Test; @Slf4j -public class SqlTset extends BaseTest { +public class SqlTest extends BaseTest { @Resource private TableService tableService;