(improvement)(chat) show case filter by user name (#245)

Co-authored-by: jolunoluo
This commit is contained in:
LXW
2023-10-17 17:52:27 +08:00
committed by GitHub
parent a9bb1c1f68
commit 968d50e071
6 changed files with 19 additions and 18 deletions

View File

@@ -60,6 +60,9 @@
select distinct chat_id
from s2_chat_query
where query_state = 1 and agent_id = ${agentId}
<if test="userName != null and userName != ''">
and user_name = #{userName}
</if>
order by chat_id desc
limit #{start}, #{limit}
) q2