Commit e1101cc1 authored by 蔡闯's avatar 蔡闯

1

parent 5f2457d1
...@@ -154,12 +154,11 @@ class Build extends Base ...@@ -154,12 +154,11 @@ class Build extends Base
$data['gas_price'] = $where['gas_price'] = Request::param('gas_price'); $data['gas_price'] = $where['gas_price'] = Request::param('gas_price');
$data['parking_price'] = $where['parking_price'] = Request::param('parking_price'); $data['parking_price'] = $where['parking_price'] = Request::param('parking_price');
$data['parent_id'] = $buildInfo['parent_id']; $data['parent_id'] = $buildInfo['parent_id'];
return 1;
$is_inherit = Request::param('is_inherit',1); //物业费等是否继承上一级,1继承,0不继承 $is_inherit = Request::param('is_inherit',1); //物业费等是否继承上一级,1继承,0不继承
unset($where['layout_build_id']); unset($where['layout_build_id']);
if($is_inherit == 1 ) { if($is_inherit == 1 ) {
if($data['parent_id'] == 0) { if($data['parent_id'] == 0) {
$is_find = Db::name('house_village')->where(['village_id'=>$this->village_id])->where($where)->find(); $is_find = Db::name('house_village')->where(['village_id'=>$this->village_id])->where($where)->find();
} else { } else {
$is_find = Db::name('layout_build')->where(['village_id'=>$this->village_id,'layout_build_id'=>$data['parent_id']])->where($where)->find(); $is_find = Db::name('layout_build')->where(['village_id'=>$this->village_id,'layout_build_id'=>$data['parent_id']])->where($where)->find();
......
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