|
@@ -110,7 +110,8 @@ public interface FastGptChatMsgMapper
|
|
|
|
|
|
@Select("select content from fastgpt_chat_msg where msg_id < #{msgId} and user_id = #{userId} and role_id = #{roleId} and send_type = 1 ORDER BY msg_id desc limit 1")
|
|
|
String selectUserContent(@Param("msgId") Long msgId,@Param("userId") String userId,@Param("roleId") Long roleId);
|
|
|
- @Select("select * from fastgpt_chat_msg where session_id =#{sessionId} and msg_type=1 ORDER BY msg_id DESC limit 20 ")
|
|
|
+
|
|
|
+// @Select("select * from fastgpt_chat_msg where session_id =#{sessionId} and msg_type=1 ORDER BY msg_id DESC limit 20 ")
|
|
|
List<FastGptChatMsg> selectFastGptChatMsgByMsgSessionId(Long sessionId);
|
|
|
|
|
|
void insertFastGptEventLog(FastGptEventLog fastGptEventLog);
|