db251; } public static function model($className = __CLASS__) { return parent::model($className); } public function tableName() { return "order_goods"; } public function getGoodsByOrderId($order_ids) { $criteria = new CDbCriteria(); $criteria->addInCondition('order_id',$order_ids); $data = $this->findAll($criteria); if($data) { return $data; } return false; } }