From 1e4b7f69d518473ddca699bc2be2d3d0ca96f003 Mon Sep 17 00:00:00 2001 From: liuweiwen <“529520975@qq.com> Date: Fri, 10 Jan 2020 09:41:24 +0800 Subject: [PATCH] =?UTF-8?q?cp/=E5=B7=A5=E4=BC=9A=E5=AF=B9=E8=B4=A6?= =?UTF-8?q?=E7=B3=BB=E7=BB=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Common/extend.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Application/Admin/Common/extend.php b/Application/Admin/Common/extend.php index e17931980..5daf3fc13 100644 --- a/Application/Admin/Common/extend.php +++ b/Application/Admin/Common/extend.php @@ -1865,22 +1865,22 @@ function excelUpStreamTemplate($data, $all_sum_money, $all_pay_amount, $big_all_ foreach ($data['statement_info'] as $key => $value) { $objPHPExcel->getActiveSheet()->insertNewRowBefore($line,1)->mergeCells("J$line:K$line"); $objPHPExcel->getActiveSheet()->setCellValue('C'.$line, $value['statement_begin_time'] . '-' . $value['statement_end_time']); - if ($value['statement_type'] == 1) { + if ($value['statement_type'] == 1) {//罚款 $product_name = $value['type_name']; $objPHPExcel->getActiveSheet()->setCellValue('F'.$line , '-'); $objPHPExcel->getActiveSheet()->setCellValue('G'.$line, '-'); $objPHPExcel->getActiveSheet()->setCellValue('H'.$line, '-'); $objPHPExcel->getActiveSheet()->setCellValue('I'.$line, '-'); - } else { + $objPHPExcel->getActiveSheet()->setCellValue('E'.$line, $value['sum_money']); + } else {//游戏 $product_name = $value['game_name']; $objPHPExcel->getActiveSheet()->setCellValue('F'.$line , $value['first_ratio'] . '%'); $objPHPExcel->getActiveSheet()->setCellValue('G'.$line, $value['second_ratio'] . '%'); $objPHPExcel->getActiveSheet()->setCellValue('H'.$line, $value['promote_ratio'] . '%'); $objPHPExcel->getActiveSheet()->setCellValue('I'.$line, $value['fax_ratio']. '%'); + $objPHPExcel->getActiveSheet()->setCellValue('E'.$line, $value['pay_amount']); } $objPHPExcel->getActiveSheet()->setCellValue('D'.$line, $product_name); - $objPHPExcel->getActiveSheet()->setCellValue('E'.$line, $value['pay_amount']); - $objPHPExcel->getActiveSheet()->setCellValue('J'.$line, $value['sum_money']); $line++; } @@ -1945,17 +1945,18 @@ function excelDownStreamTemplate($data, $all_sum_money, $all_pay_amount, $big_al $objPHPExcel->getActiveSheet()->removeConditionalStyles(); $objPHPExcel->getActiveSheet()->setCellValue('A'.$line, $value['statement_begin_time'] . '-' . $value['statement_end_time']); - if ($value['statement_type'] == 1) { + if ($value['statement_type'] == 1) {//罚款 $product_name = $value['type_name']; $objPHPExcel->getActiveSheet()->setCellValue('D'.$line, '-'); $objPHPExcel->getActiveSheet()->setCellValue('E'.$line, '-'); - } else { + $objPHPExcel->getActiveSheet()->setCellValue('C'.$line, $value['sum_money']); + } else {//游戏 $product_name = $value['game_name']; $objPHPExcel->getActiveSheet()->setCellValue('D'.$line, $value['second_ratio'] . '%'); $objPHPExcel->getActiveSheet()->setCellValue('E'.$line, $value['fax_ratio'] . '%'); + $objPHPExcel->getActiveSheet()->setCellValue('C'.$line, $value['pay_amount']); } $objPHPExcel->getActiveSheet()->setCellValue('B'.$line, $product_name); - $objPHPExcel->getActiveSheet()->setCellValue('C'.$line, $value['pay_amount']); $objPHPExcel->getActiveSheet()->setCellValue('F'.$line, $value['sum_money']); $line++; }