edit-common-get_company
This commit is contained in:
@@ -122,10 +122,10 @@ class Orders_v2_entity{
|
||||
}
|
||||
}
|
||||
if(!$company){ //获取城市销售公司
|
||||
$company = $this->ci->sys_company_model->get(['city_id'=>$biz['city_id'],'type'=>1],$filed);
|
||||
$company = $this->ci->sys_company_model->get(['city_id'=>$biz['city_id'],'type'=>1,'status'=>1],$filed);
|
||||
}
|
||||
if(!$srv_company){ //获取城市服务公司
|
||||
$srv_company = $this->ci->sys_company_model->get(['city_id'=>$biz['city_id'],'type'=>0],$filed);
|
||||
$srv_company = $this->ci->sys_company_model->get(['city_id'=>$biz['city_id'],'type'=>0,'status'=>1],$filed);
|
||||
}
|
||||
if(!$company){ //获取固定id销售公司
|
||||
$company = $this->ci->sys_company_model->get(['id'=>1],$filed);
|
||||
|
||||
Reference in New Issue
Block a user