feat(chat): 添加问题ID删除解析信息功能
Some checks are pending
supersonic CentOS CI / build (21) (push) Waiting to run
supersonic mac CI / build (21) (push) Waiting to run
supersonic ubuntu CI / build (21) (push) Waiting to run
supersonic windows CI / build (21) (push) Waiting to run

- 在ChatParseMapper接口中新增deleteByQuestionId方法
- 实现按问题ID删除聊天解析数据的功能
- 在XML映射文件中添加对应的DELETE SQL语句
This commit is contained in:
jerryjzhang
2026-04-25 20:24:46 +08:00
parent aa86e3f02a
commit 1ff1a76a9e
2 changed files with 7 additions and 0 deletions

View File

@@ -18,4 +18,6 @@ public interface ChatParseMapper {
List<ChatParseDO> getParseInfoList(List<Long> questionIds);
List<ChatParseDO> getContextualParseInfo(Integer chatId);
int deleteByQuestionId(Long questionId);
}

View File

@@ -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>