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

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

parent 5a1066aa
select distinct
agent_id,
dialogs_id,
member_id,
content,
`timestamp`
baadr.agent_id,
baadr.dialogs_id,
baadr.member_id,
baadr.content,
baadr.`timestamp`
from
biz_agent_application_dialogues_record
where is_deleted ='N'
<< and member_id= :memberId>>
group by dialogs_id
order by `timestamp` desc
\ No newline at end of file
biz_agent_application_dialogues_record baadr
join biz_data_analyze_dialogue_record bdadr
on bdadr.relation_id = baadr.agent_id
and bdadr.member_id = baadr.member_id
and bdadr.channel ='index'
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