"desc"]:$order; $list = $this->field("order_no,title,o.money,paytime,content_id,type")->alias('o')->join('fa_content f','f.id = o.content_id','LEFT')->order($order) ->where($where) ->paginate(['page'=> $offset?? 1,'list_rows' => $limit]); $result = array("total" => $list->total(), "rows" => $list->items(),"sql"=>$this->fetchSql()); return $result; } }