tp3中子查询 逻辑条件是or

直接用写sql最快

$map['_string'] = 'status=1 AND score>10';
//子查询条件字段不同
$condition['platform'] = 'swap';
$sub['nickname'] = array('like', '%' . $name . '%');
$sub['phone'] = array('like', '%' . $name . '%');
$sub['_logic'] = 'or';
$condition['_complex'] = $sub;

 

posted @ 2019-05-28 19:08  1553  阅读(389)  评论(0编辑  收藏  举报