/** * 拒绝人员 */ public function actionRefuseuser() { $job_id = Yii::$app->request->get("job_id"); $model = new FinPartList(); /* 查询用户类型 */ $data = $model->getrefuseUser($job_id); $array = []; foreach ($data as $k => $v) { $model = new User(); $type = $model->usertype($v['user_id']); /* 状态为学生 */ if ($type['user_type'] == 1) { $stu = new Students(); $array[$k] = $stu->getStudent($v['user_id']); } elseif ($type['user_type'] == 3) { $base = new FinMerchantBase(); $array[$k] = $base->getMessage($v['user_id']); } else { } } return $this->render("fuseuser", ['array' => $array, 'job_id' => $job_id]); }