mysql语句
SELECT id,company_id,position,is_display,urgent,geo_code,company_name from l_c_j_view where is_display=1 GROUP BY company_id order by update_time DESC, create_time DESC limit 1,24
------解决思路----------------------
select * from(
SELECT id,
company_id,
position,
is_display,
urgent,
geo_code,
company_name,
row_number()over(partition by company_id order by id desc) rn
from l_c_j_view
where is_display=1)
where rn=1
and rownum<=24
order by update_time DESC, create_time DESC