$res = M()
  ->table('__USER__ u')
  ->join('LEFT JOIN __USER_INFO__ i ON i.user_id=u.id')
  ->where($where)
  ->order($order)
  ->limit($page,$page_num)
  ->field($field)
  ->group('u.id')
  ->buildSql();
$countres = M()->table($res.'a')-> group('id')->select();
$list['list'] = $countres;    //列表
$list['count'] = count($countres); //数量

相关文章:

  • 2021-06-23
  • 2022-01-21
  • 2021-12-01
  • 2021-09-02
  • 2021-11-17
  • 2022-01-14
  • 2021-10-06
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-28
  • 2021-09-18
  • 2021-11-20
  • 2022-12-23
相关资源
相似解决方案