Commit b0848ed5 authored by 蔡闯's avatar 蔡闯

1

parent 99d20b99
......@@ -117,7 +117,7 @@ class Build extends Base
$data['address'] = $village_name.$addre;
//判断是否设置了小区的参数,设置了就不用设置,
$is_exit = DB::name('house_village')->where(['village_id'=>$village_id])->field('village_id,property_price,water_price,electric_price,gas_price,park_price')->find();
$is_exit = DB::name('house_village')->where(['village_id'=>$village_id])->field('village_id,property_price,water_price,electric_price,gas_price,parking_price as park_price')->find();
if(!$is_exit['property_price'] && !$is_exit['water_price'] &&!$is_exit['electric_price'] &&!$is_exit['gas_price']&&!$is_exit['parking_price'] ) {
DB::name('house_village')->where(['village_id'=>$village_id])->save($save);
}
......
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