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