Commit f3e1399d authored by clone's avatar clone

预约看铺

parent 47efc73e
...@@ -151,8 +151,8 @@ class AppointmentTime extends Basic ...@@ -151,8 +151,8 @@ class AppointmentTime extends Basic
{ {
$field = "id,agents_id,house_id,house_title,phone,expect_time,is_evaluate"; $field = "id,agents_id,house_id,house_title,phone,expect_time,is_evaluate";
$where_["status"] = array( "in", array( "0,1" ) ); $where_["status"] = array( "in", array( "0,1" ) );
$where_["user_id"] = array( "eq", $params["user_id"] ); $where_["user_id"] = array( "eq", $params["user_id"] );
$where_["applies_id"] = 0; $where_["applies_id"] = 0;
$result = $this->appointmentTimeModel->getAppointWatchShopList($pageNo, $pageSize, "id desc", $field, $where_); $result = $this->appointmentTimeModel->getAppointWatchShopList($pageNo, $pageSize, "id desc", $field, $where_);
...@@ -173,7 +173,7 @@ class AppointmentTime extends Basic ...@@ -173,7 +173,7 @@ class AppointmentTime extends Basic
} }
/** /**
* 已看列表 * 已看列表 废弃
* @param $pageNo * @param $pageNo
* @param $pageSize * @param $pageSize
* @param $params * @param $params
...@@ -228,5 +228,33 @@ class AppointmentTime extends Basic ...@@ -228,5 +228,33 @@ class AppointmentTime extends Basic
return $result; return $result;
} }
/**
* @param $pageNo
* @param $pageSize
* @param $params
* @return false|\PDOStatement|string|\think\Collection
*/
public function getWaitListV2($pageNo, $pageSize, $params)
{
$field = "a.id,a.phone,c.reception_id as agents_id,c.create_time as expect_time,a.house_id,
d.external_title as house_title,d.residue_num as room_num_left";
$where_["a.user_id"] = $params["user_id"];
$result = $this->appointmentTimeModel->getHaveToSeeList($pageNo, $pageSize, "id desc", $field, $where_);
//获取图片信息
foreach ($result as $key => $val) {
$result[$key]["api_path"] = IMG_PATH;
$param["house_id"] = $val["house_id"];
$param["img_type"] = 1; //默认主图
$result[$key]["images"] = $this->dbImg->getHouseImages($param, 1);
//todo 是否评价
$evaluateResult = $this->evaluateMode->getIsEvaluate(10, $val["id"], $params["user_id"]);
$result[$key]["is_evaluate"] = count($evaluateResult) > 0 ? 1 : 0;
}
return $result;
}
} }
\ No newline at end of file
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