$where1 = array(
'uid' => array('eq', $id), 'type' => array('eq', 1), 'trade_type' => array('eq', 1), 'status' => array('in', array(2,3,4)) ); $where = array( '_complex' => $where1, // 复合查询 '_logic' => 'or', // 关系为or '_string' => 'b_uid='.$id.' AND type=2 AND trade_type=1 AND status in (2,3,4)', );