mirror of
https://github.com/tencentmusic/supersonic.git
synced 2026-04-22 23:14:33 +08:00
feat(chat): 添加批量获取语义解析信息功能
- 在ChatManageService中新增getParseInfos方法用于批量查询 - 实现ChatManageServiceImpl中的getParseInfos具体逻辑 - 优化SqlReplaceHelper中的代码格式化处理 - 支持根据questionId批量获取多个语义解析结果
This commit is contained in:
@@ -194,7 +194,8 @@ public class SqlReplaceHelper {
|
||||
setOperationList.getSelects().forEach(subSelectBody -> {
|
||||
if (subSelectBody instanceof PlainSelect) {
|
||||
PlainSelect subPlainSelect = (PlainSelect) subSelectBody;
|
||||
replaceFieldsInPlainOneSelect(fieldNameMap, exactReplace, subPlainSelect);
|
||||
replaceFieldsInPlainOneSelect(fieldNameMap, exactReplace,
|
||||
subPlainSelect);
|
||||
} else if (subSelectBody instanceof ParenthesedSelect) {
|
||||
replaceFieldsInPlainOneSelect(fieldNameMap, exactReplace,
|
||||
((ParenthesedSelect) subSelectBody).getPlainSelect());
|
||||
|
||||
Reference in New Issue
Block a user