function lists($key,$type){
        $where=[];
        $type && $where["rt.type"]=$type;
        return $this->alias("a")
            ->join("user","user.id=a.userid")
            ->join("roomtime rt","rt.id=a.rtid")
            ->join("room ro","rt.type=ro.id")
            ->where($where)
            ->order("a.id desc")->paginate(30,false,["query"=>request()->param()]);
    }

后面补充

标签: none

评论已关闭