|
|
|
@ -988,7 +988,7 @@ class CompanyStatementController extends ThinkController
|
|
|
|
|
|
|
|
|
|
$start_time = strtotime($_REQUEST['time_start']);
|
|
|
|
|
$end_time = strtotime($_REQUEST['time_end']) + 86399;
|
|
|
|
|
$check_add = M("company_statement","tab_")->field("statement_begin_time,statement_end_time,statement_info,company_type")->where(['company_id'=>$_REQUEST['company_id']])->select();
|
|
|
|
|
$check_add = M("company_statement","tab_")->field("statement_begin_time,statement_end_time,statement_info,company_type")->where(['company_id'=>$_REQUEST['company_id'],'withdraw_type'=>3])->select();
|
|
|
|
|
|
|
|
|
|
foreach ($check_add as $key => $value) {
|
|
|
|
|
|
|
|
|
@ -1312,7 +1312,7 @@ class CompanyStatementController extends ThinkController
|
|
|
|
|
$amount_time['promote_id'] = '-1';
|
|
|
|
|
}
|
|
|
|
|
$amount_time['tab_spend.pay_status'] = 1;
|
|
|
|
|
$amount_time['pay_way'] = ['egt',1];
|
|
|
|
|
$amount_time['pay_way'] = ['egt',0];
|
|
|
|
|
|
|
|
|
|
foreach ($statement_info as $k => $v) {
|
|
|
|
|
$statement_begin_time = strtotime($v['statement_begin_time']);
|
|
|
|
@ -1348,7 +1348,7 @@ class CompanyStatementController extends ThinkController
|
|
|
|
|
$game_list['statement_end_time'] = $v['statement_end_time'];
|
|
|
|
|
$game_list['statement_type'] = '0';
|
|
|
|
|
|
|
|
|
|
$statement_data[$aval['account']."-".$aval['real_name']][] = $game_list;
|
|
|
|
|
$statement_data[$aval['account']."-".$aval['real_name']."-".$aval['promote_id']][] = $game_list;
|
|
|
|
|
// $statement_insert[] = $statement_data;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -1359,6 +1359,7 @@ class CompanyStatementController extends ThinkController
|
|
|
|
|
$proCompany_info['nickname'] = $strKey[1];
|
|
|
|
|
$statement['account'] = $strKey[0];
|
|
|
|
|
$statement['real_name'] = $strKey[1];
|
|
|
|
|
$statement['promote_id'] = $strKey[2];
|
|
|
|
|
$statement['game_list'] = $v;
|
|
|
|
|
|
|
|
|
|
$statement['row'] = count($v);
|
|
|
|
|