tp的$map不同條件默認是 and ,如果要用or<><><><>如下
例如查詢Stu表中年齡大於18,或者身高低於180cm的男性(1為男性),(例子不太好標題有可能不符,望見諒)
$where['age'] = array("gt",18);
$where['height'] =array("lt",180);
$where['_logic'] = "OR";
$map["_complex"] = $where;
$map['sex'] = 1;
$res = M("Stu")->where($map)->select();