Files
annnj-company 130c1026c4 first commit
2026-04-17 18:29:53 +08:00

57 lines
1.9 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
namespace app\admin\controller;
use app\model\ProjectTeam;
use app\model\Inquiry;
use app\model\Property_cert_info;
class PendingPrice extends Base
{
private $is_multiple =array(0=>'单套',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);
}
}