// 主查询SELECT
t1.id,
t1.meeting_id,
t1.type,
t1.progress_id,
t1.name,
t1.area_name,
t1.content,
t1.comment_voice,
t1.supported_quantity,
t1.objection_quantity,
t1.hot_count,
t1.comment_time,
t1.open_id,
#{openId}as currentId,(select tt.status from app_deliberative_meeting_progress_hot tt where tt.progress_id = t1.id and tt.open_id =#{openId})as status
FROM app_deliberative_meeting_progress t1
where(ISNULL(t1.progress_id)||LENGTH(trim(t1.progress_id))<1)
SELECT
t1.id,
t1.meeting_id,
t1.type,
t1.progress_id,
t1.name,
t1.area_name,
t1.content,
t1.comment_voice,
t1.supported_quantity,
t1.objection_quantity,
t1.hot_count,
t1.comment_time,
t1.open_id,(select tt.status from app_deliberative_meeting_progress_hot tt where tt.progress_id = t1.id and tt.open_id =#{currentId})as status
FROM app_deliberative_meeting_progress t1
where t1.progress_id = #{id}
order by t1.hot_count desc,t1.comment_time asc