mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-09 08:02:48 +08:00
改进Query类的查询方法
This commit is contained in:
@@ -908,8 +908,12 @@ class Query
|
||||
$where = $field;
|
||||
} elseif ($field) {
|
||||
// 字符串查询
|
||||
if (is_numeric($field)) {
|
||||
$where[] = ['exp', $field];
|
||||
} else {
|
||||
$where[$field] = ['null', ''];
|
||||
}
|
||||
}
|
||||
} elseif (is_array($op)) {
|
||||
$where[$field] = $param;
|
||||
} elseif (in_array(strtolower($op), ['null', 'notnull', 'not null'])) {
|
||||
|
||||
Reference in New Issue
Block a user