'否', 1 => '是' ]; //人员状态 const STATUS_ONE = 1; const STATUS_TWO = 2; const STATUS = [ 1 => '正常', 2 => '停用' ]; public function setConnection($name) { $mysql = "mysql"; if($name === '001') $mysql = "mysql_001"; if($name === '002') $mysql = "mysql_002"; return parent::setConnection($mysql); // TODO: Change the autogenerated stub } }