alias('p') ->join('ls_retail_vip as v on p.vip_id=v.id') ->join('ls_retail_store as s on p.storeid=s.id', 'LEFT') ->where($where) ->page($page, $limit) ->order('p.id desc') ->field('p.*,v.mobile_phone,v.balance,v.integral,v.birthday,v.name,v.nickname,v.status,s.storetag as store_name,v.card_key,v.guideid') ->select(); return $list ? $list : []; } public function getPlusInfoTotal($where) { $list = $this->alias('p') ->join('ls_retail_vip as v on p.vip_id=v.id') ->where($where) ->field('v.balance,v.integral') ->select(); return $list ? $list : []; } public function getPlusInfoCount($where) { $count = $this->alias('p') ->join('ls_retail_vip as v on p.vip_id=v.id') ->where($where) ->count(); return $count ? $count : 0; } }