现在有这样的SQL: SELECT * FROM film f LEFT JOIN film_release_date ON f.id = film_release_date.film_id WHERE f.id IN ( SELECT film_id FROM film_release_date WHERE release_date = '2017-09-01' GROUP BY film_id ) GROUP BY f.id ORDER BY (f.film_douban_people + f.film_imdb_people) DESC 分页查询时会生成这样的语句: SELECT count(*) FROM film f LEFT JOIN film_release_date ON f.id = film_release_date.film_id WHERE f.id IN (SELECT film_id FROM film_release_date WHERE release_date = ? GROUP BY film_id) GROUP BY f.id + f.film_imdb_people) DESC 查询代码后发现是Model的第337行查询总数的SQL错误 PS:发表这个反馈,样式和部分内容总是丢失。。。。。