edit-api-biz_company
This commit is contained in:
@@ -11,5 +11,9 @@ class Welcome extends CI_Controller {
|
||||
}
|
||||
|
||||
public function test(){
|
||||
$this->load->library('receiver/orders_v2_entity');
|
||||
$biz_id = 134;
|
||||
$row = $this->orders_v2_entity->get_biz_mchid($biz_id);
|
||||
print_r($row);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -108,7 +108,7 @@ class Orders_v2_entity{
|
||||
$where = [
|
||||
"id in ({$biz['company_id']},{$biz['srv_company_id']})" => null
|
||||
];
|
||||
$companys = $this->ci->sys_company_model->map('wx_mchid','',$where,'','','',$filed);
|
||||
$companys = $this->ci->sys_company_model->map('id','',$where,'','','',$filed);
|
||||
$company = $companys[$biz['company_id']][0];
|
||||
$srv_company = $companys[$biz['srv_company_id']][0];
|
||||
}else{ //其它店铺
|
||||
|
||||
Reference in New Issue
Block a user