$model = Mage::getModel('tomtop_rewards/pointsreport');
$collection = $model->getCollection();
$collection->getSelect()->join(array('table1' => 'customer_entity'), 'table1.entity_id = customer_id', array('table1.email'))
->join(array('table2' => 'rewards_points'), 'table2.customer_id = main_table.customer_id', array('table2.points as totalpoint'))
;
$this->setCollection($collection);
magento 多表相同列名join
最新推荐文章于 2022-11-04 10:54:13 发布