the paging query for writing a single table through pagehelper was written happily. Now to write a winning bid (such as 2 tables)
if you write your own sql statement, you cannot use Criteria things. If you query the main table first and query another schedule (the same with collection), you will connect to the database very frequently. Is there any good solution code? Because I used to write the sql statement to associate the query to access the database once. Check the main table first. If the paging of the schedule is 10, it will be visited 10 times, and if the pagination is 20, it will be visited 20 times.