magento - Magento 如何在集合中使用封闭的 AND & OR 条件
问题描述
select * from quote where created < '2020-05-12' and (((is_offer = 0 OR (is_offer is null and is_active = 1)) and
(cart_status is NULL)) OR cart_status = 3) and status='completed';
如何使用 magento 集合模型编写此查询。已经尝试过但不知道这个(((is_offer = 0 OR (is_offer is null and is_active = 1)) and
(cart_status is NULL)) OR cart_status = 3)
提前致谢。
解决方案
推荐阅读
- php - 如何参数化 PHP Soap 调用 - Taleo
- pdf - 我在哪里可以获得 Adobe-Identity-UCS cmap 文件?
- javascript - 具有多种条件的开关盒
- database-performance - 即使更新的列不在任何索引中,重度索引表的更新也会变慢吗?
- spring - Spring Rest Controller - java.lang.IllegalStateException:已连接
- machine-learning - word2vec 中互为标量倍数的词向量之间的语义关系是什么?
- unity3d - Unity: Unabe 合并 Android Manifests
- javascript - Angularjs无法读取未定义的属性“****”
- spring - net.sf.ehcache 和 org.ehcache 的区别?
- javascript - 单击动态添加的选项时未填充 Select2 输入字段