first commit

This commit is contained in:
annnj-company
2026-04-17 18:29:53 +08:00
parent e49fa5a215
commit 130c1026c4
5615 changed files with 1639145 additions and 0 deletions

View File

@@ -0,0 +1,56 @@
<?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);
}
}