'单套',1=>"多套"); /** * 获取住宅项目组列表 * @author cavan * * @parameter type 项目类型:1、加急项目,2、拓展项目,3、特殊项目 */ public function reqAppraisingPriceList() { $type = $this->request->post('type', '', 'trim'); if(!$type){ return $this->buildFailed("缺少参数项目类型"); } $ProjectTeam = new ProjectTeam(); $Inquiry = new Inquiry(); $Property_cert_info = new Property_cert_info(); $uid_str = $ProjectTeam->where("status",1) ->where("type",$type) ->value('uid_str'); $list = $Inquiry->where("user_id","in",$uid_str) ->where("type",1) ->where("status",1) ->field("id,order_no,user_id,user_name,bank_name,is_multiple,update_time") ->select(); if(!empty($list)){ foreach ($list as $k => $v){ $child = $Property_cert_info->where("quot_id",$v['id']) ->field("city,area,property_full_name,size,reg_price") ->select(); // if(!empty($child)){ // foreach ($child as $kc => $vc){ // $child[$kc]['size'] = $vc['size'] / 100; // $child[$kc]['reg_price'] = $vc['reg_price'] / 100; // } // } $list[$k]['multi_name'] = $this->is_multiple[$v['is_multiple']]; $list[$k]['child'] = $child; } } return $this->buildSuccess($list); } }