Commit 749ca322 authored by zhuwei's avatar zhuwei

1

parent 036ccdd1
......@@ -517,7 +517,7 @@ class AStore extends BaseModel
$result = Db::table($this->table)
->field($field)
->alias('a')
->join('a_agents b', 'a.id = b.store_id and (b.level = 20 or b.level = 40) ', 'left')
->join('a_agents b', 'a.id = b.store_id and (b.level = 20 or b.level = 40) and b.status = 0', 'left')
->where($params)
->select();
// big_log($this->getLastSql());
......
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