(improvement)(chat) chat history record save query sql (#253)

* (improvement)(chat) history record save query sql

* (improvement)(semantic) update easyexcel version

---------

Co-authored-by: jolunoluo
This commit is contained in:
LXW
2023-10-18 15:06:29 +08:00
committed by GitHub
parent 36052cb4f2
commit 2e4954a4e8
13 changed files with 132 additions and 14 deletions

View File

@@ -25,6 +25,12 @@
</foreach>
</insert>
<update id="updateParseInfo" parameterType="com.tencent.supersonic.chat.persistence.dataobject.ChatParseDO">
update s2_chat_parse
set parse_info = #{parseInfo}
where parse_id = #{parseId}
</update>
<select id="getParseInfo" resultMap="ChatParse">
select *
from s2_chat_parse
@@ -32,4 +38,13 @@
and parse_id = #{parseId} limit 1
</select>
<select id="getParseInfoList" resultMap="ChatParse">
select *
from s2_chat_parse
where question_id in
<foreach item="questionId" index="index" collection="list" open="(" separator="," close=")">
#{questionId}
</foreach>
</select>
</mapper>