From 52a6704106f21372e79be85395cc92c9d6898a2f Mon Sep 17 00:00:00 2001 From: HuangHai <10402852@qq.com> Date: Mon, 2 Jun 2025 08:27:29 +0800 Subject: [PATCH] 'commit' --- .../src/main/java/com/dsideal/Res/Test/1.html | 176 ------------------ .../com/dsideal/Res/Test/CallDeepSeek.java | 9 +- dsAi/src/main/resources/XueYuan.sql | 12 +- dsAi/target/classes/XueYuan.sql | 12 +- 4 files changed, 24 insertions(+), 185 deletions(-) delete mode 100644 dsAi/src/main/java/com/dsideal/Res/Test/1.html diff --git a/dsAi/src/main/java/com/dsideal/Res/Test/1.html b/dsAi/src/main/java/com/dsideal/Res/Test/1.html deleted file mode 100644 index 5a397e30..00000000 --- a/dsAi/src/main/java/com/dsideal/Res/Test/1.html +++ /dev/null @@ -1,176 +0,0 @@ - - - - SQL Data Lineage Visualization - - - .node text { - font-size: 12px; - } - .link { - stroke: #999; - stroke-opacity: 0.6; - stroke-width: 2px; - } - .arrow { - fill: #999; - stroke-opacity: 0.6; - } - .title { - font-size: 18px; - font-weight: bold; - margin-bottom: 20px; - } - - - -
SQL Data Lineage Visualization
-
- - - - \ No newline at end of file diff --git a/dsAi/src/main/java/com/dsideal/Res/Test/CallDeepSeek.java b/dsAi/src/main/java/com/dsideal/Res/Test/CallDeepSeek.java index 25d9a771..1c8b1f38 100644 --- a/dsAi/src/main/java/com/dsideal/Res/Test/CallDeepSeek.java +++ b/dsAi/src/main/java/com/dsideal/Res/Test/CallDeepSeek.java @@ -8,6 +8,7 @@ import com.alibaba.fastjson.JSONArray; import com.jfinal.kit.PathKit; import org.apache.commons.codec.digest.DigestUtils; + import java.io.File; import java.net.URI; import java.net.http.HttpClient; @@ -107,8 +108,8 @@ public class CallDeepSeek { // 流结束后的处理 String htmlContent = fullResponse.toString(); if (htmlContent.contains("") && htmlContent.contains("")) { - FileUtil.writeString(htmlContent, new File("C:\\1.html"), "UTF-8"); - listener.onComplete("HTML已成功保存到C:\\1.html"); + FileUtil.writeString(htmlContent, new File(outputPath), "UTF-8"); + listener.onComplete("HTML已成功保存到" + outputPath); } else { listener.onError("最终返回内容不是有效的HTML: " + htmlContent.substring(0, Math.min(htmlContent.length(), 200)) + "..."); } @@ -130,11 +131,13 @@ public class CallDeepSeek { }).start(); } + public static String outputPath; + public static void main(String[] args) { String sqlContent = FileUtil.readString("XueYuan.sql", CharsetUtil.CHARSET_UTF_8); String md5 = DigestUtils.md5Hex(sqlContent); - String outputPath = "C:\\" + md5 + ".html"; + outputPath = "C:\\" + md5 + ".html"; File outputFile = new File(outputPath); if (outputFile.exists()) { diff --git a/dsAi/src/main/resources/XueYuan.sql b/dsAi/src/main/resources/XueYuan.sql index 68290b93..c2319b74 100644 --- a/dsAi/src/main/resources/XueYuan.sql +++ b/dsAi/src/main/resources/XueYuan.sql @@ -1,3 +1,9 @@ -select tsl.person_id,tsl.person_name,tsl.mz,tdm.mz_name,tsl.xb,tdx.xb_name from t_sys_loginperson as tsl -inner join t_dm_mz as tdm on tsl.mz=tdm.mz_id -inner join t_dm_xb as tdx on tsl.xb=tdx.xb_id; \ No newline at end of file +select tsl.person_id,tsl.person_name,tsl.mz,tdm.mz_name,tsl.xb,tdx.xb_name,tsl.bureau_id, + tbo.org_name as bureau_name from t_sys_loginperson as tsl + inner join t_dm_mz as tdm on tsl.mz=tdm.mz_id + inner join t_dm_xb as tdx on tsl.xb=tdx.xb_id + inner join t_base_organization as tbo on tsl.bureau_id=tbo.org_id; + + +select tbc.class_id,tbc.class_name,tbo.bureau_id,tbo.org_name from t_base_class as tbc inner join t_base_organization as tbo on + tbc.bureau_id=tbo.org_id; \ No newline at end of file diff --git a/dsAi/target/classes/XueYuan.sql b/dsAi/target/classes/XueYuan.sql index 68290b93..c2319b74 100644 --- a/dsAi/target/classes/XueYuan.sql +++ b/dsAi/target/classes/XueYuan.sql @@ -1,3 +1,9 @@ -select tsl.person_id,tsl.person_name,tsl.mz,tdm.mz_name,tsl.xb,tdx.xb_name from t_sys_loginperson as tsl -inner join t_dm_mz as tdm on tsl.mz=tdm.mz_id -inner join t_dm_xb as tdx on tsl.xb=tdx.xb_id; \ No newline at end of file +select tsl.person_id,tsl.person_name,tsl.mz,tdm.mz_name,tsl.xb,tdx.xb_name,tsl.bureau_id, + tbo.org_name as bureau_name from t_sys_loginperson as tsl + inner join t_dm_mz as tdm on tsl.mz=tdm.mz_id + inner join t_dm_xb as tdx on tsl.xb=tdx.xb_id + inner join t_base_organization as tbo on tsl.bureau_id=tbo.org_id; + + +select tbc.class_id,tbc.class_name,tbo.bureau_id,tbo.org_name from t_base_class as tbc inner join t_base_organization as tbo on + tbc.bureau_id=tbo.org_id; \ No newline at end of file