'请输入完整的信息'], ['type','in','range'=>[1,2]], ]; } public function FindId() { return self::find()->andFilterWhere(['rid'=>$this->rid]) ->andFilterWhere(['type'=>$this->type]) ->one(); } public function FindRid() { return self::find()->andWhere(['rid'=>$this->rid,'type'=>$this->type])->asArray()->all(); } }