|
|
@ -111,6 +111,14 @@ class ExportController extends Controller
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (isset($_REQUEST['time_start']) && isset($_REQUEST['time_end'])) {
|
|
|
|
|
|
|
|
$map['create_time'] = ['between', [strtotime(I('time_start')), strtotime(I('time_end')) + 86399]];
|
|
|
|
|
|
|
|
} elseif (isset($_REQUEST['time_start'])) {
|
|
|
|
|
|
|
|
$map['create_time'] = ['GT', strtotime(I('time_start'))];
|
|
|
|
|
|
|
|
} elseif (isset($_REQUEST['time_end'])) {
|
|
|
|
|
|
|
|
$map['create_time'] = ['LT', strtotime(I('time_end')) + 86399];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$csvFileName = $xlsName.'.csv';
|
|
|
|
$csvFileName = $xlsName.'.csv';
|
|
|
|
//设置好告诉浏览器要下载excel文件的headers
|
|
|
|
//设置好告诉浏览器要下载excel文件的headers
|
|
|
|
header('Content-Description: File Transfer');
|
|
|
|
header('Content-Description: File Transfer');
|
|
|
|