/**
  * 有线网络设备
  * @return \yii\db\ActiveQuery
  */
 public function getDevice()
 {
     return $this->hasOne(DeviceInfo::className(), ["id" => "device_id"]);
 }
 public function getRight()
 {
     return $this->hasOne(DeviceInfo::className(), ["id" => "rightDevice"]);
 }