Commit 5bd88ccb authored by zhuwei's avatar zhuwei

1

parent f6b69ed1
......@@ -129,12 +129,13 @@ class FStoreData extends BaseModel
public function getAllStoreCost($field, $where)
{
$where['a.status'] = 0;
$where['a.is_del'] = 0;
return $this->field($field)
->alias('a')
->join('a_store b', 'a.store_id=b.id', 'left')
->join('a_district c', 'b.district_id=c.id', 'left')
->where($where)
->group('a.store_id')
->select();
}
}
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