alias('vip') ->field($field) ->where($where) ->order($order) ->page($page, $limit) ->select(); $total = $this->alias('vip') ->where($where) ->count(); $result['list'] = $list; $result['count'] = $total; return $result; } //获取plus会员信息 public function getPlusInfo($where, $fields = '*', $order = 'v.id desc', $page = 1, $limit = 10) { $id_arr = $this->alias('v') ->join('ls_retail_plus_vip as p on p.vip_id=v.id') ->field($fields) ->where($where) ->page($page, $limit) ->order($order) ->select(); return $id_arr; } //获取plus会员id集合 public function getPlusCount($where) { $count = $this->alias('v') ->join('ls_retail_plus_vip as p on p.vip_id=v.id') ->where($where) ->count(); return $count; } }