mirror of
https://github.com/tencentmusic/supersonic.git
synced 2026-01-04 08:18:49 +08:00
(improvement)(chat) dsl supports revision (#254)
This commit is contained in:
@@ -34,8 +34,7 @@
|
||||
<select id="getParseInfo" resultMap="ChatParse">
|
||||
select *
|
||||
from s2_chat_parse
|
||||
where question_id = #{questionId} and user_name = #{userName}
|
||||
and parse_id = #{parseId} limit 1
|
||||
where question_id = #{questionId} and parse_id = #{parseId} limit 1
|
||||
</select>
|
||||
|
||||
<select id="getParseInfoList" resultMap="ChatParse">
|
||||
|
||||
@@ -59,8 +59,8 @@
|
||||
join (
|
||||
select distinct chat_id
|
||||
from s2_chat_query
|
||||
where query_state = 1 and agent_id = ${agentId}
|
||||
<if test="userName != null and userName != ''">
|
||||
where query_state = 1 and agent_id = ${agentId} and (score is null or score > 1)
|
||||
<if test="userName != null and userName != ''">
|
||||
and user_name = #{userName}
|
||||
</if>
|
||||
order by chat_id desc
|
||||
|
||||
Reference in New Issue
Block a user