$db_com=Db::name("member")
->alias('a')
->join('lj_collect_stow s','a.id=s.member_id')
->field('a.id as mid,a.nickname,s.*,count(s.id) as tot,sum(s.stowtypeid=3 and s.add_time > '.$start_time.' and s.add_time <= '.$end_time.') as b2,sum(s.stowtypeid=6 and s.add_time > '.$start_time.' and s.add_time <= '.$end_time.') as p1')
->group('s.member_id')
->paginate($pages,false,['query'=>request()->param()]);
上一篇:通过IP获取实际地址位置
下一篇:PHP获取客户端IP