Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
f3e1399d
Commit
f3e1399d
authored
Jun 11, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
预约看铺
parent
47efc73e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
3 deletions
+32
-3
AppointmentTime.php
application/api/controller/AppointmentTime.php
+32
-3
No files found.
application/api/controller/AppointmentTime.php
View file @
f3e1399d
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment