📜  magento colloction 查询 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:06.786000             🧑  作者: Mango

代码示例1
$object->getCollection()
->addStatusFilter(1)
->addPriorityFilter('ASC')
->addFieldToFilter('main_table.from_date', [['lteq' => $now], ['null' => true]])
->addFieldToFilter('main_table.to_date', [['gteq' => $now], ['null' => true]])
->addFieldToFilter('main_table.column', ['eq' => 87])
->addCustomerGroupFilter($customerGroup)
->addStoreFilter([$this->_storeManager->getStore()->getId()],false );