mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
改进chunk方法
This commit is contained in:
@@ -2628,7 +2628,7 @@ class Query
|
|||||||
}
|
}
|
||||||
$resultSet = $query->order($column, $order)->select();
|
$resultSet = $query->order($column, $order)->select();
|
||||||
|
|
||||||
while (!empty($resultSet)) {
|
while (count($resultSet) > 0) {
|
||||||
if ($resultSet instanceof Collection) {
|
if ($resultSet instanceof Collection) {
|
||||||
$resultSet = $resultSet->all();
|
$resultSet = $resultSet->all();
|
||||||
}
|
}
|
||||||
@@ -2649,8 +2649,8 @@ class Query
|
|||||||
}
|
}
|
||||||
|
|
||||||
$resultSet = $query->bind($bind)->order($column, $order)->select();
|
$resultSet = $query->bind($bind)->order($column, $order)->select();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user