添加生成SQL查询语句的HTML格式化输出
All checks were successful
Docker Build & Deploy / Build Docker Image (push) Successful in 21s
Docker Build & Deploy / Deploy to Production (push) Successful in 7s
Docker Build & Deploy / Cleanup Dangling Images (push) Successful in 1s

This commit is contained in:
孙诚
2026-01-05 15:35:57 +08:00
parent d44cceb6e4
commit d7274cd54d

View File

@@ -328,6 +328,14 @@ public class SmartHandleService(
logger.LogInformation("AI生成的SQL: {Sql}", sqlText); logger.LogInformation("AI生成的SQL: {Sql}", sqlText);
chunkAction(
$"""
<pre style="max-height: 150px; font-size: 12px; overflow-y: auto; padding: 8px; border: none;">
SQL查询语句
{System.Net.WebUtility.HtmlEncode(sqlText)}
"""
);
// 第二步执行动态SQL查询 // 第二步执行动态SQL查询
List<dynamic> queryResults; List<dynamic> queryResults;
try try