mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 15:12:48 +08:00
改进一个字段多次查询条件
This commit is contained in:
@@ -1187,10 +1187,8 @@ class Query
|
|||||||
$this->options['multi'][$logic][$field][] = $where[$field];
|
$this->options['multi'][$logic][$field][] = $where[$field];
|
||||||
} elseif (is_null($condition)) {
|
} elseif (is_null($condition)) {
|
||||||
// 字段相等查询
|
// 字段相等查询
|
||||||
$where[$field] = ['eq', $op];
|
$where[$field] = ['eq', $op];
|
||||||
if ('AND' != $logic) {
|
$this->options['multi'][$logic][$field][] = $where[$field];
|
||||||
$this->options['multi'][$logic][$field][] = $where[$field];
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
$where[$field] = [$op, $condition, isset($param[2]) ? $param[2] : null];
|
$where[$field] = [$op, $condition, isset($param[2]) ? $param[2] : null];
|
||||||
if ('exp' == strtolower($op) && isset($param[2]) && is_array($param[2])) {
|
if ('exp' == strtolower($op) && isset($param[2]) && is_array($param[2])) {
|
||||||
|
|||||||
Reference in New Issue
Block a user