|
|
|
@ -1070,8 +1070,10 @@ class CompanyStatementPoolController extends ThinkController
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
M("company_statement_info","tab_")->where("pool_id={$id}")->save(['verify_status'=>0,'pay_verify_status'=>0,'verify_time'=>'','verify_member_id'=>0]);
|
|
|
|
|
//线上打款审核状态撤回
|
|
|
|
|
M("company_statement_info","tab_")->where("pool_id={$id}")->save(['pay_verify_status'=>0,'verify_time'=>'','verify_member_id'=>0]);
|
|
|
|
|
//线上打款支付宝状态撤回
|
|
|
|
|
M("company_statement_info","tab_")->where("pool_id={$id} and verify_status != 2")->save(['verify_status'=>0]);
|
|
|
|
|
|
|
|
|
|
foreach ($company_statement_info as $key => $value) {
|
|
|
|
|
$is_hav = M("pay_statement_info","tab_")->where(['statement_info_id'=>$value['id']])->find();
|
|
|
|
@ -1849,12 +1851,13 @@ class CompanyStatementPoolController extends ThinkController
|
|
|
|
|
|
|
|
|
|
$limit_amount = 50000;
|
|
|
|
|
|
|
|
|
|
$dbres = $this->DBModel->field("id")->where("id in ({$ids})")->select();
|
|
|
|
|
$dbres = $this->DBModel->field("id,company_type")->where("id in ({$ids})")->select();
|
|
|
|
|
foreach($dbres as $key=>$value){
|
|
|
|
|
|
|
|
|
|
$statement_data_info = M("company_statement_info","tab_")
|
|
|
|
|
->where(['pool_id'=>$value['id']])
|
|
|
|
|
->select();
|
|
|
|
|
|
|
|
|
|
if ($value['company_type'] == 2){
|
|
|
|
|
//循环info汇总详单
|
|
|
|
|
foreach ($statement_data_info as $skey => $svalue) {
|
|
|
|
@ -1879,6 +1882,7 @@ class CompanyStatementPoolController extends ThinkController
|
|
|
|
|
|
|
|
|
|
$save = [];
|
|
|
|
|
$handle_statement = [];
|
|
|
|
|
// dump($handle_data);
|
|
|
|
|
//将同一时间的汇总详单记录起来
|
|
|
|
|
foreach ($handle_data as $hk => $hv) {
|
|
|
|
|
$statement_time = explode('-', $hk);
|
|
|
|
@ -1891,7 +1895,7 @@ class CompanyStatementPoolController extends ThinkController
|
|
|
|
|
|
|
|
|
|
$game_list = $shv['game_list'];
|
|
|
|
|
foreach ($game_list as $gk => $gv) {
|
|
|
|
|
$statement_money += $gv['sum_money'];
|
|
|
|
|
$statement_money += $gv['sum_money']+$gv['reward']+$gv['reward']-$gv['fine'];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -2018,6 +2022,7 @@ class CompanyStatementPoolController extends ThinkController
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|