From 566411019444e53ca143298ee490d33cf510e28c Mon Sep 17 00:00:00 2001
From: guang <guang@guang.com>
Date: 星期五, 05 五月 2023 12:22:06 +0800
Subject: [PATCH] 增加phi正式使用版本

---
 src/main/java/com/hx/other/service/controller/SqlQueryController.java |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/hx/other/service/controller/SqlQueryController.java b/src/main/java/com/hx/other/service/controller/SqlQueryController.java
index bc41cd9..03d0393 100644
--- a/src/main/java/com/hx/other/service/controller/SqlQueryController.java
+++ b/src/main/java/com/hx/other/service/controller/SqlQueryController.java
@@ -12,6 +12,8 @@
 import com.hx.other.service.vo.ai.SqlVo;
 import com.hx.resultTool.Result;
 import com.hx.util.StringUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.beans.factory.annotation.Qualifier;
 import org.springframework.jdbc.core.JdbcTemplate;
 import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestBody;
@@ -36,7 +38,8 @@
     @Resource
     private SqlQueryTempService sqlQueryTempService;
 
-    @Resource
+    @Autowired
+    @Qualifier("readJdbcTemplate")
     private JdbcTemplate jdbcTemplate;
 
     @Resource

--
Gitblit v1.8.0