mysql示例 SELECT * FROM ( SELECT DISTINCT ( d.id ) did, d.* FROM data_waste_treatment d ORDER BY create_time DESC ) d1 GROUP BY d1.enterprise_id 其中DISTINCT 是必须要加的