From e8dea24f46cb0f24ce9917534e1e8d6aeb982718 Mon Sep 17 00:00:00 2001 From: chenzhi Date: Mon, 1 Mar 2021 17:28:40 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=91=A8=E7=BB=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...SubCompanyStatementSetController.class.php | 26 ++++++++++++++++--- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/Application/Admin/Controller/SubCompanyStatementSetController.class.php b/Application/Admin/Controller/SubCompanyStatementSetController.class.php index 7018a81e3..dff4f5833 100644 --- a/Application/Admin/Controller/SubCompanyStatementSetController.class.php +++ b/Application/Admin/Controller/SubCompanyStatementSetController.class.php @@ -71,7 +71,27 @@ class SubCompanyStatementSetController extends Controller { } $nowdate = date("Y-m-d",$stime); $d = (int)date("d",$stime); + $w = (int)date("w",$stime); + if($w == 1){ + if($company == "all"){ + echo $nowdate.":".PHP_EOL; + echo "--周结begin".PHP_EOL; + + $this->cpStatement(0,$stime); + echo "∟----CP周结统计ok".PHP_EOL; + $this->promoteCompanyStatement(0,$stime); + echo "∟----推广公司周结统计ok".PHP_EOL; + } + if($company == "cp"){ + $this->cpStatement(0,$stime); + echo "∟----CP周结统计ok".PHP_EOL; + } + if($company == "pc"){ + $this->promoteCompanyStatement(0,$stime); + echo "∟----推广公司周结统计ok".PHP_EOL; + } + } if($d == 1){ if($company == "all"){ echo $nowdate.":".PHP_EOL; @@ -81,7 +101,6 @@ class SubCompanyStatementSetController extends Controller { echo "∟----CP月结&补点统计ok".PHP_EOL; $this->promoteCompanyStatement(1,$stime); - $this->promoteCompanyStatement(2,$stime); $this->officeCompanyStatement($stime); //官方结算 echo "∟----官方/推广公司月结统计ok".PHP_EOL; @@ -95,7 +114,6 @@ class SubCompanyStatementSetController extends Controller { } if($company == "pc"){ $this->promoteCompanyStatement(1,$stime); - $this->promoteCompanyStatement(2,$stime); $this->officeCompanyStatement($stime); //官方结算 echo "∟----官方/推广公司月结&补点统计ok".PHP_EOL; } @@ -103,7 +121,8 @@ class SubCompanyStatementSetController extends Controller { $this->promoteUserPool(1,$stime); echo "∟----推广个人月结&补点统计ok".PHP_EOL; } - }else{ + } + if($w != 1 && $d != 1){ echo $nowdate."非月初,无需任何处理".PHP_EOL; } } @@ -497,7 +516,6 @@ class SubCompanyStatementSetController extends Controller { //非重算 return $v; } - $StatementDb->add($v); } } From a33ea0d57524d3e98053192f9902f368bbcecb38 Mon Sep 17 00:00:00 2001 From: chenzhi Date: Mon, 1 Mar 2021 17:48:31 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=B8=8A=E6=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Admin/Controller/SubCompanyStatementSetController.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Application/Admin/Controller/SubCompanyStatementSetController.class.php b/Application/Admin/Controller/SubCompanyStatementSetController.class.php index dff4f5833..75375b3a0 100644 --- a/Application/Admin/Controller/SubCompanyStatementSetController.class.php +++ b/Application/Admin/Controller/SubCompanyStatementSetController.class.php @@ -273,6 +273,7 @@ class SubCompanyStatementSetController extends Controller { } } unset($add_data['id'],$add_data['remark'],$add_data['confirm_status'],$add_data['confirm_log']); + $add_data['verify_status'] = 0; $add_data['verify_log'] = $verify_log; $add_data['op_time'] =time(); $add_data['statement_info'] = json_encode($add_data['statement_info'],JSON_UNESCAPED_UNICODE);