mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
修正聚合查询返回null的问题
This commit is contained in:
@@ -415,8 +415,9 @@ class Query
|
||||
}
|
||||
$result = $pdo->fetchColumn();
|
||||
if ($force) {
|
||||
$result = is_numeric($result) ? $result + 0 : $result;
|
||||
$result += 0;
|
||||
}
|
||||
|
||||
if (isset($cache)) {
|
||||
// 缓存数据
|
||||
$this->cacheData($key, $result, $cache);
|
||||
|
||||
Reference in New Issue
Block a user