<> use mysql Implementation plan
EXPLAIN SELECT COUNT( 1 ) FROM ( Query table and conditions ) TOTAL 1 SIMPLE tb_humidity ALL
10998200 100.00 1 SIMPLE ca eq_ref PRIMARY PRIMARY 8 cold.tb_humidity.car_id 1
100.00 Using index 1 SIMPLE w eq_ref WeChatUser_ID WeChatUser_ID 8
cold.tb_humidity.wechat_id 1 100.00 Using index

Get the total number of current queries , This is better than direct count Fast Watch
List<Map<String, Object>> mapList = baseMapper.callSize(params); String
str=mapList.get(0).get("rows").toString();
page.setTotal(Integer.parseInt(str)); page.setSearchCount(false);
The first is the result of parsing execution conditions
Manual injection of total number of pages
Paging master query switch false

Technology
©2019-2020 Toolsou All rights reserved,
It's unexpected Python Cherry tree (turtle The gorgeous style of Library ) Some East 14 Pay change 16 salary , Sincerity or routine ? Browser kernel ( understand )java Four functional interfaces ( a key , simple )HashMap Explain in detail html Writing about cherry trees , Writing about cherry trees os Simple use of module