|
|
@ -529,7 +529,7 @@ class AggregateFinanceStatementController extends ThinkController
|
|
|
|
|
|
|
|
|
|
|
|
define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />');
|
|
|
|
define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />');
|
|
|
|
|
|
|
|
|
|
|
|
date_default_timezone_set('Europe/London');
|
|
|
|
date_default_timezone_set('Asia/Shanghai');
|
|
|
|
Vendor("PHPExcel.PHPExcel");
|
|
|
|
Vendor("PHPExcel.PHPExcel");
|
|
|
|
$objPHPExcel = new \PHPExcel();
|
|
|
|
$objPHPExcel = new \PHPExcel();
|
|
|
|
$objReader = \PHPExcel_IOFactory::createReader('Excel5');
|
|
|
|
$objReader = \PHPExcel_IOFactory::createReader('Excel5');
|
|
|
@ -537,9 +537,9 @@ class AggregateFinanceStatementController extends ThinkController
|
|
|
|
$objPHPExcel = $objReader->load("Public/Admin/excel/aggregate_stream.xls");
|
|
|
|
$objPHPExcel = $objReader->load("Public/Admin/excel/aggregate_stream.xls");
|
|
|
|
$statement_begin_time = date('Y.m.d', $data['begintime']);//对账开始时间
|
|
|
|
$statement_begin_time = date('Y.m.d', $data['begintime']);//对账开始时间
|
|
|
|
$statement_end_time = date('Y.m.d',$data['endtime']);//对账截止时间
|
|
|
|
$statement_end_time = date('Y.m.d',$data['endtime']);//对账截止时间
|
|
|
|
$objPHPExcel->getActiveSheet()->setCellValue('A1', "《 {$data['channel_name']} 》结算单
|
|
|
|
|
|
|
|
({$statement_begin_time}-{$statement_end_time})");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$objPHPExcel->getActiveSheet()->getStyle('A1')->getAlignment()->setWrapText(true);
|
|
|
|
|
|
|
|
$objPHPExcel->getActiveSheet()->setCellValue('A1', "《 {$data['channel_name']} 》结算单\n({$statement_begin_time}-{$statement_end_time})");
|
|
|
|
if ($data['withdraw_type'] == '2') {
|
|
|
|
if ($data['withdraw_type'] == '2') {
|
|
|
|
$objPHPExcel->getActiveSheet()->setCellValue('D2','补点比例');
|
|
|
|
$objPHPExcel->getActiveSheet()->setCellValue('D2','补点比例');
|
|
|
|
}
|
|
|
|
}
|
|
|
|