优化公会统计公司

master
chenzhi 5 years ago
parent c590b948ef
commit 47595c81b8

@ -56,6 +56,7 @@ class FinancePromoteController extends AdminController
$senddata[$v['p_id']] = $v; $senddata[$v['p_id']] = $v;
}; };
} }
if(!empty($senddata)){
if(array_key_exists(0,$senddata) || $_REQUEST['promote_id']==0){ if(array_key_exists(0,$senddata) || $_REQUEST['promote_id']==0){
$pmap['status']=1; $pmap['status']=1;
if($istimeselect){ if($istimeselect){
@ -67,8 +68,7 @@ class FinancePromoteController extends AdminController
} }
} }
}
$data = []; $data = [];
$count =array( $count =array(
"cash_count"=>0, "cash_count"=>0,
@ -132,6 +132,9 @@ class FinancePromoteController extends AdminController
} }
} }
} }
if (isset($_REQUEST['company_id'])) {
$map['promote.company_id'] = $_REQUEST['company_id'];
}
if($type == "spend"){ if($type == "spend"){
if (isset($_REQUEST['game_name']) || isset($_REQUEST['game_type'])) { if (isset($_REQUEST['game_name']) || isset($_REQUEST['game_type'])) {
$map["s.game_id"] = array("in",implode(',', array_column(getGameByName($_REQUEST['game_name'], $_REQUEST['game_type']), 'id')) ); $map["s.game_id"] = array("in",implode(',', array_column(getGameByName($_REQUEST['game_name'], $_REQUEST['game_type']), 'id')) );

Loading…
Cancel
Save