mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 20:52:48 +08:00
改进Query类的find方法 支持查询主键为0的情况
This commit is contained in:
@@ -1294,7 +1294,7 @@ class Query
|
||||
// 分析查询表达式
|
||||
$options = $this->parseExpress();
|
||||
|
||||
if (empty($options['where']) && !empty($data)) {
|
||||
if (empty($options['where']) && (!empty($data) || 0 == $data)) {
|
||||
// AR模式分析主键条件
|
||||
$this->parsePkWhere($data, $options);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user