(improvement)(chat) show cases distinct by queryText (#275)

Co-authored-by: jolunoluo
This commit is contained in:
LXW
2023-10-23 18:57:12 +08:00
committed by GitHub
parent c6f9ea2b20
commit 62e2bf7de6
2 changed files with 8 additions and 1 deletions

View File

@@ -66,7 +66,7 @@
and user_name = #{userName}
</if>
order by score, chat_id desc
)
) a
limit #{start}, #{limit}
) q2 on q1.chat_id = q2.chat_id
where agent_id = ${agentId} and (score is null or score > 1)