Commit 4dbfb34d authored by hujun's avatar hujun

site_id

parent d0be7d42
......@@ -785,10 +785,14 @@ class Broker extends Basic
$where['phone'] = $this->params['phone'];
}
if (!empty($this->params['site_id'])) {
$where['site_id'] = $this->params['site_id'];
}
try {
$m_agent = new AAgents();
$m_store = new AStore();
$list = $m_agent->getList($pageNo, $pageSize, 'id desc', 'id,phone,name,position,store_id,level', '',$where);
$list = $m_agent->getList($pageNo, $pageSize, 'id desc', 'id,phone,name,position,store_id,level,site_id', '',$where);
foreach ($list as $k=>$v) {
$list[$k]['store_name'] = $m_store->getStoreKeyById('store_name', ['id'=>$v['store_id']]);
......
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