Commit 95bba9cd authored by alex yao's avatar alex yao

fix:首页历史记录只展示首页对话

parent 5a1066aa
select distinct select distinct
agent_id, baadr.agent_id,
dialogs_id, baadr.dialogs_id,
member_id, baadr.member_id,
content, baadr.content,
`timestamp` baadr.`timestamp`
from from
biz_agent_application_dialogues_record biz_agent_application_dialogues_record baadr
where is_deleted ='N' join biz_data_analyze_dialogue_record bdadr
<< and member_id= :memberId>> on bdadr.relation_id = baadr.agent_id
group by dialogs_id and bdadr.member_id = baadr.member_id
order by `timestamp` desc and bdadr.channel ='index'
\ No newline at end of file where baadr.is_deleted ='N'
<< and baadr.member_id= :memberId>>
group by baadr.dialogs_id
order by baadr.`timestamp` desc
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment