Commit c3e87c3d authored by zhuwei's avatar zhuwei

根据商铺id获取商铺独家方 bug

parent 713faeb4
...@@ -695,6 +695,7 @@ class HouseService ...@@ -695,6 +695,7 @@ class HouseService
$params__['district_id']=$result[0]['district_id']; $params__['district_id']=$result[0]['district_id'];
$params__['level']=30; $params__['level']=30;
$result_zj = $this->agent->searchAgentsByKeyword("id,store_id,district_id,level", $params__); $result_zj = $this->agent->searchAgentsByKeyword("id,store_id,district_id,level", $params__);
if (($shop_agent_id == $agent_id)or($result_dz[0]['store_id'] == $agent_id)or($result_zj[0]['district_id'] == $agent_id)) { if (($shop_agent_id == $agent_id)or($result_dz[0]['store_id'] == $agent_id)or($result_zj[0]['district_id'] == $agent_id)) {
return 0;//可编辑 return 0;//可编辑
}else{ }else{
...@@ -710,6 +711,7 @@ class HouseService ...@@ -710,6 +711,7 @@ class HouseService
public function getShopOnlyAgentId($shop_id){ public function getShopOnlyAgentId($shop_id){
$where_houses_to_agents['houses_id']=$shop_id; $where_houses_to_agents['houses_id']=$shop_id;
$where_houses_to_agents['type']=3; $where_houses_to_agents['type']=3;
$where_houses_to_agents['is_del']=0;
return $this->agent_house->getAgentHouseValue('agents_id', $where_houses_to_agents); return $this->agent_house->getAgentHouseValue('agents_id', $where_houses_to_agents);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment