public function avg($args = "") { //设置表关联 $this->setJoinTable(); $this->init(); return parent::max($args); }