mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 23:22:48 +08:00
exp查询支持传入绑定参数
This commit is contained in:
@@ -957,6 +957,10 @@ class Query
|
|||||||
$where[$field] = ['eq', $op];
|
$where[$field] = ['eq', $op];
|
||||||
} else {
|
} else {
|
||||||
$where[$field] = [$op, $condition];
|
$where[$field] = [$op, $condition];
|
||||||
|
if ('exp' == strtolower($op) && isset($param[2]) && is_array($param[2])) {
|
||||||
|
// 参数绑定
|
||||||
|
$this->bind($param[2]);
|
||||||
|
}
|
||||||
// 记录一个字段多次查询条件
|
// 记录一个字段多次查询条件
|
||||||
$this->options['multi'][$field][] = $where[$field];
|
$this->options['multi'][$field][] = $where[$field];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user