Commit e3fc7869 authored by hujun's avatar hujun

id_card

parent e8c17c28
......@@ -398,6 +398,16 @@ class Broker extends Basic
$where['a.district_id'] = $params['district_id'];
}
if (!empty($params['id_card'])) {
$m_bank = new AAgentsBank();
$agent_id = $m_bank->getFieldOneValue('agent_id', ['id_card'=>$params['id_card'], 'is_del'=>0]);
if ($agent_id) {
$where['id'] = $agent_id;
} else {
return $this->response(200, '');
}
}
$field = "a.id,a.store_id,a.img,a.district_id,a.`level`,a.`name`,a.phone,a.`status`,a.inviter_id,a.create_time,
ifnull(s.store_name,'')store_name,ifnull(d.district_name,'')district_name,ifnull(g.title,'无')groupname,a.site_id";
$order = 'a.id DESC';
......
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