From 3a629d63eaf28ee9d38e00567d2ea6c2098eed06 Mon Sep 17 00:00:00 2001 From: chenzhi Date: Mon, 4 Jan 2021 16:51:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=BB=93=E7=AE=97=E4=BA=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CompanyStatementPoolController.class.php | 71 +++---------------- 1 file changed, 10 insertions(+), 61 deletions(-) diff --git a/Application/Admin/Controller/CompanyStatementPoolController.class.php b/Application/Admin/Controller/CompanyStatementPoolController.class.php index 872a4a4a2..cf102db71 100644 --- a/Application/Admin/Controller/CompanyStatementPoolController.class.php +++ b/Application/Admin/Controller/CompanyStatementPoolController.class.php @@ -792,15 +792,16 @@ class CompanyStatementPoolController extends ThinkController $line = 1; $count = []; + // dd($infolist); //获取对接人 - $p_id = array_column($infolist,'company_id'); - $map['id'] = ['in',$p_id]; - $pl = M("promote_company","tab_")->field("id,settlement_contact")->where($map)->select(); - $Partner = []; - foreach($pl as $k=>$v){ - $Partner[$v['id']] = $v['settlement_contact']; - } - unset($pl); + // $p_id = array_column($infolist,'company_id'); + // $map['id'] = ['in',$p_id]; + // $pl = M("promote_company","tab_")->field("id,settlement_contact")->where($map)->select(); + // $Partner = []; + // foreach($pl as $k=>$v){ + // $Partner[$v['id']] = $v['settlement_contact']; + // } + // unset($pl); foreach($infolist as $k=>&$v){ @@ -855,59 +856,7 @@ class CompanyStatementPoolController extends ThinkController } } - -// $game_list = []; -// $statement_info = $v['statement_info']; -// //使用时间与会长账号作为键值分离数据 -// foreach($statement_info as $sk=>$sv){ -// -// $sv['time'] = $sv['statement_begin_time'].'-'.$sv['statement_end_time']; -// $game_list[$sv['statement_begin_time'].'-'.$sv['statement_end_time']][] = $sv; -// -// } -// -// $handle_data = []; -// $substract = 1; -// -// //处理游戏金额数据 -// foreach($game_list as $gk => $gv) { -// -// foreach ($gv as $lk => $lv){ -// -// if ($lk > 0) { -// -// for (;;) { -// -// if (!$handle_data[$lk-$substract]['time']) { -// $substract++; -// } else { -// $handle_data[$lk-$substract]['row'] += 1; -// $handle_data[$lk-$substract]['week_amount'] += $lv['d_statement_money']; -// unset($lv['time']); -// break; -// } -// -// } -// -// } else { -// -// $lv['row'] = 1; -// $lv['week_amount'] = $lv['d_statement_money']; -// } -// -// array_push($handle_data,$lv); -// -// } -// -// } -// -// $handle_data = $this->changeDataStructVc($v['statement_info'],$is_export,$cline); -// $v['statement_info'] = $handle_data; -// dump($handle_data); - - - - $v['settlement_contact'] = $Partner[$v['company_id']]; + $v['settlement_contact'] = $v['company_info']['link_man']; if($is_export){