模板比例bug修改提交

master
zhengyongxing 4 years ago
parent 2848f0ce90
commit ba6323203a

@ -930,6 +930,7 @@ class CompanyStatementSetController extends Controller {
if(empty($list)){continue;} if(empty($list)){continue;}
foreach($list as $k=>$v){ foreach($list as $k=>$v){
try { try {
$res[$company_id]["pay_amount"] += $v['pay_amount']; $res[$company_id]["pay_amount"] += $v['pay_amount'];
} catch (\Throwable $th) { } catch (\Throwable $th) {
@ -937,11 +938,14 @@ class CompanyStatementSetController extends Controller {
} }
if(isset($res[$company_id][$v['relation_game_id']])){ if(isset($res[$company_id][$v['relation_game_id']])){
// //
$res[$company_id][$v['relation_game_id']]['pay_amount'] += $v['pay_amount']; $res[$company_id][$v['relation_game_id']]['pay_amount'] += $v['pay_amount'];
$res[$company_id][$v['relation_game_id']]['ratio_pay_amount'] += $v['pay_amount']; $res[$company_id][$v['relation_game_id']]['ratio_pay_amount'] += $v['pay_amount'];
}else{ }else{
unset($v['game_id']); unset($v['game_id']);
$v['ratio_pay_amount'] = $v['pay_amount'];
$res[$company_id][$v['relation_game_id']]= $v; $res[$company_id][$v['relation_game_id']]= $v;
} }
} }
@ -950,6 +954,7 @@ class CompanyStatementSetController extends Controller {
$game_ids = $this->getModuleRatioGame($company_id,$game_ids,$begintime,$endtime); $game_ids = $this->getModuleRatioGame($company_id,$game_ids,$begintime,$endtime);
$sameGame = $this->getTheSameGame($game_ids); $sameGame = $this->getTheSameGame($game_ids);
if(!empty($sameGame)){ if(!empty($sameGame)){
foreach ($sameGame as $k => $v) { foreach ($sameGame as $k => $v) {
@ -983,6 +988,7 @@ class CompanyStatementSetController extends Controller {
} }
foreach($res as $key=>$value){ foreach($res as $key=>$value){
foreach ($value as $k => $v){ foreach ($value as $k => $v){

@ -316,7 +316,7 @@ $(function(){
//判断日期是否小于当周周一 //判断日期是否小于当周周一
if (momday > cres.begin_time) { if (momday > cres.begin_time) {
layer.msg("配置的开始日期不能于当周周一", {icon: 2}); layer.msg("配置的开始日期不能于当周周一", {icon: 2});
return false; return false;
} }

Loading…
Cancel
Save