if ($title) {
$map['title'] = array('like', "%$title%");
$map['barcode'] = array('like', "%$title%");
$map['_logic'] = 'or';
$where['_complex'] = $map;
}
if ($title) {
$map['title'] = array('like', "%$title%");
$map['barcode'] = array('like', "%$title%");
$map['_logic'] = 'or';
$where['_complex'] = $map;
}
本文标题:多类搜索
本文链接:https://www.haomeiwen.com/subject/krdmsttx.html
网友评论