添加生成SQL查询语句的HTML格式化输出
This commit is contained in:
@@ -328,6 +328,14 @@ public class SmartHandleService(
|
||||
|
||||
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查询
|
||||
List<dynamic> queryResults;
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user