select a.staff_id staffId , b.staff_name staffName , a.create_time createTime , a.end_time endTime from tab_haoban_group_chat_owner_history a LEFT JOIN tab_haoban_staff b on a.staff_id = b.staff_id
where a.group_chat_id=#{groupChatId} and a.wx_enterprise_id=#{wxEnterpriseId}
where a.group_chat_id=#{groupChatId} and a.wx_enterprise_id=#{wxEnterpriseId} order by a.create_time desc