diff --git a/chat/server/src/main/java/com/tencent/supersonic/chat/server/persistence/mapper/ChatParseMapper.java b/chat/server/src/main/java/com/tencent/supersonic/chat/server/persistence/mapper/ChatParseMapper.java index c733c5abb..282f3b789 100644 --- a/chat/server/src/main/java/com/tencent/supersonic/chat/server/persistence/mapper/ChatParseMapper.java +++ b/chat/server/src/main/java/com/tencent/supersonic/chat/server/persistence/mapper/ChatParseMapper.java @@ -18,4 +18,6 @@ public interface ChatParseMapper { List getParseInfoList(List questionIds); List getContextualParseInfo(Integer chatId); + + int deleteByQuestionId(Long questionId); } diff --git a/chat/server/src/main/resources/mapper/ChatParseMapper.xml b/chat/server/src/main/resources/mapper/ChatParseMapper.xml index 8e1e5336a..8cb2cf8e8 100644 --- a/chat/server/src/main/resources/mapper/ChatParseMapper.xml +++ b/chat/server/src/main/resources/mapper/ChatParseMapper.xml @@ -52,4 +52,9 @@ where chat_id = #{chatId} order by question_id desc limit 10 + + delete from s2_chat_parse + where question_id = #{questionId} + +