Commit 0d09257b by 彭顺

fix: 对话消息顺序调整

parent cb2e4688
......@@ -35,7 +35,7 @@ public interface AiChatAnalysisMapper extends BaseMapperX<AiChatAnalysisDO> {
default List<AiChatAnalysisDO> selectByChatId(String chatId) {
return selectList(new LambdaQueryWrapperX<AiChatAnalysisDO>()
.eqIfPresent(AiChatAnalysisDO::getChatId, chatId)
.orderByDesc(AiChatAnalysisDO::getChatTime));
.orderByAsc(AiChatAnalysisDO::getChatTime));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment