(improvement)(Headless) Add default time setting for metric and detail query mode (#1095)

Co-authored-by: jolunoluo
This commit is contained in:
LXW
2024-06-05 18:55:05 +08:00
committed by GitHub
parent 008c1c35d8
commit b3b9687041
8 changed files with 19 additions and 23 deletions

View File

@@ -85,7 +85,7 @@ public class QueryRecommendProcessor implements ParseResultProcessor {
ChatQueryRepository chatQueryRepository = ContextUtils.getBean(ChatQueryRepository.class);
UpdateWrapper<ChatQueryDO> updateWrapper = new UpdateWrapper<>();
updateWrapper.eq("question_id", chatQueryDO.getQuestionId());
updateWrapper.set("parse_time_cost", chatQueryDO.getSimilarQueries());
updateWrapper.set("similar_queries", chatQueryDO.getSimilarQueries());
chatQueryRepository.updateChatQuery(chatQueryDO, updateWrapper);
}