|
|
@ -2351,7 +2351,6 @@ class DownloadController extends BaseController {
|
|
|
|
fputcsv($fp, $xlsCell);//将数据格式化为CSV格式并写入到output流中
|
|
|
|
fputcsv($fp, $xlsCell);//将数据格式化为CSV格式并写入到output流中
|
|
|
|
$accessNum = '100000';//从数据库获取总量,假设是十万
|
|
|
|
$accessNum = '100000';//从数据库获取总量,假设是十万
|
|
|
|
$accessNum = count($data1)?:0 ;
|
|
|
|
$accessNum = count($data1)?:0 ;
|
|
|
|
var_dump($data1);die();
|
|
|
|
|
|
|
|
$perSize = 5000;//每次查询的条数
|
|
|
|
$perSize = 5000;//每次查询的条数
|
|
|
|
$pages = ceil($accessNum / $perSize);
|
|
|
|
$pages = ceil($accessNum / $perSize);
|
|
|
|
for($i = 1; $i <= $pages; $i++) {
|
|
|
|
for($i = 1; $i <= $pages; $i++) {
|
|
|
|