Commit f5eec4ad authored by hujun's avatar hujun

总监多城市

parent 2f374302
......@@ -13,6 +13,7 @@ use app\api_broker\extend\Basic;
use app\api_broker\service\RedisCacheService;
use app\api_broker\service\VipService;
use app\index\service\CostService;
use app\model\AAgents;
use app\model\AStore;
use app\model\FApplyForFee;
use app\model\FApplyForFeeCheck;
......@@ -47,7 +48,15 @@ class ApplyForCost extends Basic
$is_check = 1;
}
$where['a.status'] = 0;
$where[] = ['EXP', 'b.store_id = '.$agent_data['store_id']. ' or b.district_id ='.$agent_data['district_id']];break;
$m_agent = new AAgents();
$district_id = $m_agent->getAgentsByWhereColumn(['id'=>['<>', $this->agentId],'phone'=>$this->agentPhone], 'district_id');
if ($district_id) {
$district_id[] = $agent_data['district_id'];
$where['b.district_id'] = ['in', $district_id];break;
} else {
$where['b.district_id'] = $agent_data['district_id'];break;
}
case 2 :
//总监权限查看
$where['a.status'] = 1;
......
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