|
|
@ -71,7 +71,27 @@ class SubCompanyStatementSetController extends Controller {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$nowdate = date("Y-m-d",$stime);
|
|
|
|
$nowdate = date("Y-m-d",$stime);
|
|
|
|
$d = (int)date("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($d == 1){
|
|
|
|
if($company == "all"){
|
|
|
|
if($company == "all"){
|
|
|
|
echo $nowdate.":".PHP_EOL;
|
|
|
|
echo $nowdate.":".PHP_EOL;
|
|
|
@ -81,7 +101,6 @@ class SubCompanyStatementSetController extends Controller {
|
|
|
|
echo "∟----CP月结&补点统计ok".PHP_EOL;
|
|
|
|
echo "∟----CP月结&补点统计ok".PHP_EOL;
|
|
|
|
|
|
|
|
|
|
|
|
$this->promoteCompanyStatement(1,$stime);
|
|
|
|
$this->promoteCompanyStatement(1,$stime);
|
|
|
|
$this->promoteCompanyStatement(2,$stime);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$this->officeCompanyStatement($stime); //官方结算
|
|
|
|
$this->officeCompanyStatement($stime); //官方结算
|
|
|
|
echo "∟----官方/推广公司月结统计ok".PHP_EOL;
|
|
|
|
echo "∟----官方/推广公司月结统计ok".PHP_EOL;
|
|
|
@ -95,7 +114,6 @@ class SubCompanyStatementSetController extends Controller {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if($company == "pc"){
|
|
|
|
if($company == "pc"){
|
|
|
|
$this->promoteCompanyStatement(1,$stime);
|
|
|
|
$this->promoteCompanyStatement(1,$stime);
|
|
|
|
$this->promoteCompanyStatement(2,$stime);
|
|
|
|
|
|
|
|
$this->officeCompanyStatement($stime); //官方结算
|
|
|
|
$this->officeCompanyStatement($stime); //官方结算
|
|
|
|
echo "∟----官方/推广公司月结&补点统计ok".PHP_EOL;
|
|
|
|
echo "∟----官方/推广公司月结&补点统计ok".PHP_EOL;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -103,7 +121,8 @@ class SubCompanyStatementSetController extends Controller {
|
|
|
|
$this->promoteUserPool(1,$stime);
|
|
|
|
$this->promoteUserPool(1,$stime);
|
|
|
|
echo "∟----推广个人月结&补点统计ok".PHP_EOL;
|
|
|
|
echo "∟----推广个人月结&补点统计ok".PHP_EOL;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}else{
|
|
|
|
}
|
|
|
|
|
|
|
|
if($w != 1 && $d != 1){
|
|
|
|
echo $nowdate."非月初,无需任何处理".PHP_EOL;
|
|
|
|
echo $nowdate."非月初,无需任何处理".PHP_EOL;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -497,7 +516,6 @@ class SubCompanyStatementSetController extends Controller {
|
|
|
|
//非重算
|
|
|
|
//非重算
|
|
|
|
return $v;
|
|
|
|
return $v;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$StatementDb->add($v);
|
|
|
|
$StatementDb->add($v);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|