mirror of
https://github.com/tencentmusic/supersonic.git
synced 2026-04-26 01:34:53 +08:00
feat(chat): 添加问题ID删除解析信息功能
- 在ChatParseMapper接口中新增deleteByQuestionId方法 - 实现按问题ID删除聊天解析数据的功能 - 在XML映射文件中添加对应的DELETE SQL语句
This commit is contained in:
@@ -18,4 +18,6 @@ public interface ChatParseMapper {
|
||||
List<ChatParseDO> getParseInfoList(List<Long> questionIds);
|
||||
|
||||
List<ChatParseDO> getContextualParseInfo(Integer chatId);
|
||||
|
||||
int deleteByQuestionId(Long questionId);
|
||||
}
|
||||
|
||||
@@ -52,4 +52,9 @@
|
||||
where chat_id = #{chatId} order by question_id desc limit 10
|
||||
</select>
|
||||
|
||||
<delete id="deleteByQuestionId">
|
||||
delete from s2_chat_parse
|
||||
where question_id = #{questionId}
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user