count(); //师傅数 $worker_count = Db::name('worker')->where('deletetime',NULL)->count(); //公司数 $company_count = Db::name('company')->where('deletetime',NULL)->count(); //维保订单数 $maintain_count = Db::name('maintain')->count(); //检测下发数 $jiance_count = Db::name('jiance')->count(); $this->view->assign([ 'user_count' => $user_count, 'worker_count' => $worker_count, 'company_count' => $company_count, 'maintain_count' => $maintain_count, 'jiance_count' => $jiance_count, ]); return $this->view->fetch(); } }