mongo or查询

浏览:550 发布日期:2018/01/16 分类:求助交流
thinkphp3.1 多个字段or关系查询,用文档中快捷查询方式不行

$where['status|u_time'] =array(intval($status), ['lt', $tm], '_multi'=>true);
打印的sql:
SdAuthInfo.sd_userinfo.find({"aid":{"$in":[0,2,4,5]},"$or":[{"status":{"0":3,"1":["lt",1513505723],"_multi":true}},{"u_time":{"0":3,"1":["lt",1513505723],"_multi":true}}]}).count()

明显不对的
最佳答案
评论( 相关
后面还有条评论,点击查看>>