group by之后的分页问题

浏览:1741 发布日期:2016/02/25 分类:求助交流
$count = $trades->where($where)->count();//p($count);die;
$Page = new \Think\Page($count,12);
$show = $Page->show();
$field = array('LOGIN,sum(MYPROFIT) AS totalMoney,sum(VOLUME) AS totalVolume');
$list = $trades->where($where)->field($field)->group('LOGIN')
->limit($Page->firstRow.','.$Page->listRows)
->order('CLOSE_TIME DESC')->select();


分组后 分页都不对了 大侠有什么解决方法没?
最佳答案
评论() 相关
后面还有条评论,点击查看>>