Commit 9f6c1a5b authored by hujun's avatar hujun

//

parent 9dd513bc
......@@ -53,14 +53,23 @@ class ApplyForCost extends Basic
$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;
$where['b.district_id'] = ['in', $district_id];
} else {
$where['b.district_id'] = $agent_data['district_id'];break;
$where['b.district_id'] = $agent_data['district_id'];
}
break;
case 2 :
//总监权限查看
$where['a.status'] = 1;
$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];
} else {
$where['b.district_id'] = $agent_data['district_id'];
}
break;
case 3 :
$where['a.status'] = 2;break; //财务一审
case 4 :
......
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