From 0be51f4d62fcfb415cc8984c269e42a1a1ec7174 Mon Sep 17 00:00:00 2001 From: zhengyongxing Date: Mon, 1 Mar 2021 10:15:32 +0800 Subject: [PATCH] =?UTF-8?q?2.28=E5=8F=B7=E5=8A=9F=E8=83=BD=E6=8F=90?= =?UTF-8?q?=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CompanyStatementController.class.php | 17 ++++++++++++++--- .../View/CompanyStatement/poolWmStatement.html | 5 ++++- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/Application/Admin/Controller/CompanyStatementController.class.php b/Application/Admin/Controller/CompanyStatementController.class.php index c8b9179aa..68f239367 100644 --- a/Application/Admin/Controller/CompanyStatementController.class.php +++ b/Application/Admin/Controller/CompanyStatementController.class.php @@ -715,6 +715,10 @@ class CompanyStatementController extends ThinkController $begin_time = strtotime(str_replace(".","-",$_REQUEST["begin_time"])); $end_time = strtotime(str_replace(".","-",$_REQUEST["end_time"]))+86399; + $check_list = array_column(json_decode($_POST["list"],true),"game_name"); + +// dump($check_list);die(); + if (!$company_id) { $data = []; } else { @@ -736,9 +740,11 @@ class CompanyStatementController extends ThinkController if ($value['company_type'] == 1) { - $list = array_merge($list, $statement_info); +// $list = array_merge(, $statement_info); foreach ($statement_info as $k => $v) { - + if (!in_array($v["game_name"],$check_list)) { + array_push($list,$v); + } $statement_begin_time = strtotime(str_replace(".", "-", $v['statement_begin_time'])); $statement_end_time = strtotime(str_replace(".", "-", $v['statement_end_time'])) + 86399; @@ -765,8 +771,13 @@ class CompanyStatementController extends ThinkController } elseif($value['company_type'] == 2) { foreach ($statement_info as $k => $v) { $game_list = $v["game_list"]; - $list = array_merge($list, $game_list); +// $list = array_merge($list, $game_list); foreach ($game_list as $gk=>$gv) { + + if (!in_array($gv["game_name"],$check_list)) { + array_push($list,$gv); + } + $statement_begin_time = strtotime(str_replace(".", "-", $gv['statement_begin_time'])); $statement_end_time = strtotime(str_replace(".", "-", $gv['statement_end_time'])) + 86399; diff --git a/Application/Admin/View/CompanyStatement/poolWmStatement.html b/Application/Admin/View/CompanyStatement/poolWmStatement.html index 0b7b5752b..a16965bf0 100644 --- a/Application/Admin/View/CompanyStatement/poolWmStatement.html +++ b/Application/Admin/View/CompanyStatement/poolWmStatement.html @@ -213,11 +213,12 @@ $(".user_newcount").attr("rowspan",parseInt($(".user_newcount").attr('rowspan'))-row); $(".parent_fax_ratio").attr("rowspan",parseInt($(".parent_fax_ratio").attr('rowspan'))-row); $(".sum_money").attr("rowspan",parseInt($(".sum_money").attr('rowspan'))-row); + layer.load(2); $.ajax({ type: 'post', url: "{:U('checkCompanyData')}", - data:{begin_time:begin,end_time:end,company_id:company_id,statement_id:id,amount_data:amount_data}, + data:{begin_time:begin,end_time:end,company_id:company_id,statement_id:id,amount_data:amount_data,list:list}, success: function(data) { if (data.status==1) { for (var key in data.list) { @@ -247,9 +248,11 @@ other_list = JSON.stringify(data.list); other_id = data.other_id; } + layer.closeAll("loading"); }, error:function(){ layer.alert("网络错误或超时"); + layer.closeAll("loading"); return false; } });