12.28功能提交

master
zhengyongxing 4 years ago
parent eb8478fbb7
commit f4027b75b3

@ -266,6 +266,7 @@ class PaymentController extends BaseController
}
$title = [
'num'=>'序号',
'company_name' => '公司名称',
'statement_time' => '结算时间',
'statement_money' => '结算金额',
@ -289,14 +290,18 @@ class PaymentController extends BaseController
// ->where(['statement_info_id'=>['in',$id]])
// ->find();
$money = M("company_statement_info","tab_")->alias('s')->field("sum(statement_money) statement_money")->where(['s.id'=>['in',$id]])->find();
$sumData = [
'company_name'=>'合计',
'statement_time' => "待打款金额: {$sum['unpay_amount']} 打款成功: {$sum['pay_amount']} 打款失败: {$sum['faild_pay_amount']}",
];
$data = array_merge($data,[$sumData]);
foreach($data as $key => $value) {
$data[$key]['num'] = $key + 1;
}
// dump($data);die();
data2csv($data,'线上打款',$title);
// $this->ajaxReturn(['stauts'=>1,'msg'=>'导出成功']);

Loading…
Cancel
Save