优化公会统计默认值

master
chenzhi 5 years ago
parent ccda6e0b39
commit d64895896f

@ -111,6 +111,7 @@ class FinancePromoteController extends AdminController
"inside_cash_count"=>0, "inside_cash_count"=>0,
); );
foreach($senddata as $k=>$v){ foreach($senddata as $k=>$v){
$v['company_belong'] = $v['company_belong'] ?:0;
$v['company_belong'] = getCompanyBlong($v['company_belong']); $v['company_belong'] = getCompanyBlong($v['company_belong']);
if(empty($v['company_name'])) $v['company_name']= $this->COMPANY_NAME; if(empty($v['company_name'])) $v['company_name']= $this->COMPANY_NAME;
if(empty($v['p_id'])) $v['p_id']= "0"; if(empty($v['p_id'])) $v['p_id']= "0";

Loading…
Cancel
Save