数据库的配置是一样的
执行分页 PageHelper 的时候只执行了一个
Preparing: SELECT count(0) FROM ((((((tbl_member_user_info t1 INNER JOIN tbl_card_info t2 ON t2.card_no = t1.base_card_no) LEFT JOIN tbl_member_bind_user_info t3 ON t3.member_no = t1.member_no) LEFT JOIN tbl_card_acct_info t4 ON t4.card_no = t1.base_card_no) LEFT JOIN tbl_growth_value_info t5 ON t5.card_no = t1.base_card_no) LEFT JOIN tbl_member_config t6 ON t6.mcht_no = t1.mcht_no) LEFT JOIN mcht_base_info m ON m.mcht_no = t1.mcht_no) WHERE 1 = 1 AND t1.mcht_no = ?
类似这样的分页查询,但是没有执行实际数据的查询操作,如果正确查询应该会再执行一个实际列表的语句
Preparing: select t1.mcht_no, t1.member_no, t1.base_card_no as card_no, t1.member_name, t1.member_gender, t1.member_phone_area_no, t1.member_phone, t1.member_status, t1.create_time, t4.acct_balance, t5.growth_value, t5.level_value, t3.bind_user_id, t6.member_config_logo, m.mcht_name, m.mcht_name_abbr from ((((((tbl_member_user_info t1 inner join tbl_card_info t2 on t2.card_no = t1.base_card_no) left join tbl_member_bind_user_info t3 on t3.member_no = t1.member_no) left join tbl_card_acct_info t4 on t4.card_no = t1.base_card_no) left join tbl_growth_value_info t5 on t5.card_no=t1.base_card_no) left join tbl_member_config t6 on t6.mcht_no = t1.mcht_no) left join mcht_base_info m on m.mcht_no = t1.mcht_no) where 1=1 and t1.mcht_no = ? order by t1.create_time desc LIMIT ?
不知道什么原因。。。
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.