Merge pull request '毛利现在bug打印' (#383) from hotfix/underpay_bug into master

Reviewed-on: http://8.136.139.249:3000/wmtx/platform/pulls/383
master
廖金灵 4 years ago
commit 839d287bf2

@ -17,11 +17,12 @@ class GameMarginSetController extends Controller {
private $year;//年份 private $year;//年份
private $adddata;//要添加的数据 private $adddata;//要添加的数据
private $inSideCompanyIds; private $inSideCompanyIds;
// public $result=''; private $debugGame=false;
private $debugStr='';
/** /**
* 更新某月数据 * 更新某月数据
*/ */
public function setFreeMonth($count_date) public function setFreeMonth($count_date,$debug_game=false)
{ {
//设置转换精度 //设置转换精度
ini_set('serialize_precision',14); ini_set('serialize_precision',14);
@ -37,6 +38,7 @@ class GameMarginSetController extends Controller {
$this->month= $tarry[1]; $this->month= $tarry[1];
$this->beginThismonth=mktime(0,0,0,$tarry[1],1,$tarry[0]); $this->beginThismonth=mktime(0,0,0,$tarry[1],1,$tarry[0]);
$this->endThismonth=mktime(0,0,0,$tarry[1]-0+1,1,$tarry[0])-1; $this->endThismonth=mktime(0,0,0,$tarry[1]-0+1,1,$tarry[0])-1;
$this->debugGame=$debug_game;
$this->reCount(); $this->reCount();
$this->setGameMargin(); $this->setGameMargin();
@ -66,6 +68,10 @@ class GameMarginSetController extends Controller {
$this->getPuStatement(); $this->getPuStatement();
$this->getPcStatement(); $this->getPcStatement();
$this->setMarginCount(); $this->setMarginCount();
if($this->debugGame){
$str = $this->debugGame . PHP_EOL."公司名称,团体归属,时间,流水,分成". $this->debugStr . PHP_EOL;
echo $str;
}
echo "{$this->year}-{$this->month}生成成功".PHP_EOL; echo "{$this->year}-{$this->month}生成成功".PHP_EOL;
} }
/** /**
@ -223,6 +229,9 @@ class GameMarginSetController extends Controller {
$this->adddata[$val['game_name']]['pu_pay_amount'] = $val['pay_amount']; $this->adddata[$val['game_name']]['pu_pay_amount'] = $val['pay_amount'];
$this->adddata[$val['game_name']]['pu_statement_amount'] = $val['sum_money']; $this->adddata[$val['game_name']]['pu_statement_amount'] = $val['sum_money'];
} }
if($this->debugGame && $this->debugGame == $val['game_name']){
$this->debugStr .= (PHP_EOL."{$v['company_name']},外团,{$time['begin_time']}-{$time['end_time']},{$val['pay_amount']},{$val['sum_money']}");
}
} }
} }
} }
@ -293,6 +302,10 @@ class GameMarginSetController extends Controller {
$this->adddata[$val['game_name']]['pu_pay_amount'] = $val['pay_amount']; $this->adddata[$val['game_name']]['pu_pay_amount'] = $val['pay_amount'];
$this->adddata[$val['game_name']]['pu_statement_amount'] = $val['sum_money']; $this->adddata[$val['game_name']]['pu_statement_amount'] = $val['sum_money'];
} }
if($this->debugGame && $this->debugGame == $val['game_name']){
$this->debugStr .= (PHP_EOL."{$v['company_name']},外团,{$time['begin_time']}-{$time['end_time']},{$val['pay_amount']},{$val['sum_money']}");
}
} }
} }
} }
@ -322,6 +335,13 @@ class GameMarginSetController extends Controller {
}else{ }else{
$this->adddata[$val['game_name']]['pu_statement_amount'] = $val['sum_money']; $this->adddata[$val['game_name']]['pu_statement_amount'] = $val['sum_money'];
} }
if($this->debugGame && $this->debugGame == $val['game_name']){
$beginThismonth = date("Y.m.d",$this->beginThismonth);
$endThismonth = date("Y.m.d",$this->endThismonth);
$this->debugStr .= (PHP_EOL."{$v['company_name']},外团,{$beginThismonth}-{$endThismonth},0,{$val['sum_money']}");
}
} }
} }
} }

Loading…
Cancel
Save