视图模型下,可以进行复合查询吗?

浏览:674 发布日期:2013/01/22 分类:求助交流
$xuqiuModel = new XuqiuViewModel();    


$authId = $_SESSION[C('USER_AUTH_KEY')]; 
        $where['jf_id']  = array('eq', $authId);
        $where['sf_id']  = array('eq',$authId);
        $where['_logic'] = 'or';    
        $map['_complex'] = $where;
$map['status'] =  array('EQ',2);

$count = $xuqiuModel->where($map)->count(); 
会报错 
最佳答案
评论() 相关
后面还有条评论,点击查看>>