|
|
@ -85,9 +85,15 @@ class CompanyStatementOfflineController extends ThinkController
|
|
|
|
->field("c.*,p.statement_num,p.verify_status")
|
|
|
|
->field("c.*,p.statement_num,p.verify_status")
|
|
|
|
->where($map)
|
|
|
|
->where($map)
|
|
|
|
->join("tab_company_statement_pool as p ON c.pool_id = p.id")
|
|
|
|
->join("tab_company_statement_pool as p ON c.pool_id = p.id")
|
|
|
|
->page($page,$row)
|
|
|
|
->order("id desc");
|
|
|
|
->order("id desc")
|
|
|
|
|
|
|
|
->select();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (isset($_REQUEST['list_export']) && $_REQUEST['list_export']==1) {
|
|
|
|
|
|
|
|
$data = $data->select();
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
$data = $data->page($page,$row)->select();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$unPayData = SM("company_statement_info_part","tab_")
|
|
|
|
$unPayData = SM("company_statement_info_part","tab_")
|
|
|
|
->field("sum(statement_money) statement_money,info_id")
|
|
|
|
->field("sum(statement_money) statement_money,info_id")
|
|
|
@ -188,6 +194,23 @@ class CompanyStatementOfflineController extends ThinkController
|
|
|
|
$count['statement_money'] -= $countSuccess['success_money'];
|
|
|
|
$count['statement_money'] -= $countSuccess['success_money'];
|
|
|
|
$count['error_money'] += $countPart['error_money'];
|
|
|
|
$count['error_money'] += $countPart['error_money'];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (isset($_REQUEST['list_export']) && $_REQUEST['list_export']==1) {
|
|
|
|
|
|
|
|
$data[]=[
|
|
|
|
|
|
|
|
'company_name'=>'合计',
|
|
|
|
|
|
|
|
'company_type_str'=>"待打款金额:{$count['statement_money']} / 打款成功金额:{$count['success_money']} / 打款失败金额:{$count['error_money']}"
|
|
|
|
|
|
|
|
];
|
|
|
|
|
|
|
|
data2csv($data,'线下打款确认',array(
|
|
|
|
|
|
|
|
'company_name'=>'合作公司',
|
|
|
|
|
|
|
|
'company_type_str'=>'公司类型',
|
|
|
|
|
|
|
|
'valid'=>'结算时间',
|
|
|
|
|
|
|
|
'statement_money'=>'结算金额',
|
|
|
|
|
|
|
|
'surplus_amount'=>'剩余未打款金额',
|
|
|
|
|
|
|
|
'platform_amount'=>'结算流水',
|
|
|
|
|
|
|
|
'pay_check_str'=>'打款信息确认状态',
|
|
|
|
|
|
|
|
'payment'=>'打款状态',
|
|
|
|
|
|
|
|
'statement_num'=>'汇总单号'
|
|
|
|
|
|
|
|
));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$params['p'] = $page;
|
|
|
|
$params['p'] = $page;
|
|
|
|
$params['row'] = $row;
|
|
|
|
$params['row'] = $row;
|
|
|
|