Commit f055716a authored by hujun's avatar hujun

where

parent 27f20d77
...@@ -106,7 +106,12 @@ class Regions extends Model ...@@ -106,7 +106,12 @@ class Regions extends Model
//区和商圈 //区和商圈
foreach ($data[$k]['city'] as $k2=>$v2) { foreach ($data[$k]['city'] as $k2=>$v2) {
$data[$k]['business_district'][$k2]['district'] = $v2; $data[$k]['business_district'][$k2]['district'] = $v2;
$business_arr = $business->field('id,name')->where('city',$v['fullName'])->where('disc', $v2)->select(); $business_arr = $business->field('id,name')
->where('city',$v['fullName'])
->where('disc', $v2)
->where('is_del', 0)
->where('status', 0)
->select();
$data[$k]['business_district'][$k2]['business'] = array_merge($all_arr, $business_arr); $data[$k]['business_district'][$k2]['business'] = array_merge($all_arr, $business_arr);
} }
} }
......
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