【MyBatis&MyBatis-plus】分頁查詢避免兩次查詢同時返回總數和數據

mapper的xml文件能夠按以下方式來寫:java <!-- 用來記錄分頁查詢時的全部數據量,避免出現分頁查詢時須要查詢兩次 --> <resultMap type="java.lang.Integer" id="count"> <result column="total"/> </resultMap> <!-- 多條件查詢 /分頁查詢--> <select id="select
相關文章
相關標籤/搜索