$total = User::alias('u') ->join('contract c','c.user_id=u.id','left') ->where($page_param) ->count('distinct u.name');
tp5分页去除重复值
最新推荐文章于 2024-06-22 00:12:45 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)
$total = User::alias('u') ->join('contract c','c.user_id=u.id','left') ->where($page_param) ->count('distinct u.name');