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
076935f4
Commit
076935f4
authored
Feb 18, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
已看未看图片
parent
a30a2d0a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
10 deletions
+14
-10
AppointmentTime.php
application/api/controller/AppointmentTime.php
+14
-10
No files found.
application/api/controller/AppointmentTime.php
View file @
076935f4
...
...
@@ -228,7 +228,7 @@ class AppointmentTime extends Basic
public
function
getYetListV2
(
$pageNo
,
$pageSize
,
$params
)
{
$field
=
"a.id,a.report_agent_phone as phone,a.report_agent_id as agents_id,a.predict_see_time as expect_time,b.house_id,
d.external_title as house_title,d.residue_num as room_num_left, d.is_show,d.status,d.external_image_id"
;
d.external_title as house_title,d.residue_num as room_num_left, d.is_show,d.status,d.external_image_id
,d.is_show_image
"
;
$where_
[
"a.user_id"
]
=
$params
[
"user_id"
];
// $result = $this->appointmentTimeModel->getHaveToSeeList($pageNo, $pageSize, "id desc", $field, $where_);
$result
=
$this
->
reportModel
->
getHaveToSeeList
(
$pageNo
,
$pageSize
,
"id desc"
,
$field
,
$where_
);
...
...
@@ -236,18 +236,22 @@ class AppointmentTime extends Basic
//获取图片信息
foreach
(
$result
as
$key
=>
$val
)
{
$result
[
$key
][
"api_path"
]
=
SHOP_IMAGE_DEPOT_URL
;
/*$param["house_id"] = $val["house_id"];
$param["img_type"] = 1; //默认主图
$result[$key]["images"] = $this->dbImg->getHouseImages($param, 1);*/
$result
[
$key
][
"images"
]
=
[];
if
(
$val
[
"external_image_id"
])
{
$param
[
"id"
]
=
array
(
"in"
,
$val
[
"external_image_id"
]
);
$param
[
"img_status"
]
=
0
;
$field
=
'id,0 as house_id,img_type,label,img_name,img_status'
;
if
(
$val
[
'is_show_image'
])
{
$param
[
"house_id"
]
=
$val
[
"house_id"
];
$param
[
"img_type"
]
=
1
;
//默认主图
$result
[
$key
][
"images"
]
=
$this
->
dbImg
->
getHouseImages
(
$param
,
1
);
}
else
{
if
(
$val
[
"external_image_id"
])
{
$param
[
"id"
]
=
array
(
"in"
,
$val
[
"external_image_id"
]
);
$param
[
"img_status"
]
=
0
;
$res
=
$this
->
imageDepotModel
->
getImageDepotById
(
$field
,
$param
,
1
);
$result
[
$key
][
"images"
]
=
count
(
$res
)
>
0
?
$res
:
[];
$field
=
'id,0 as house_id,img_type,label,img_name,img_status'
;
$res
=
$this
->
imageDepotModel
->
getImageDepotById
(
$field
,
$param
,
1
);
$result
[
$key
][
"images"
]
=
count
(
$res
)
>
0
?
$res
:
[];
}
}
//todo 是否评价
$evaluateResult
=
$this
->
evaluateMode
->
getIsEvaluate
(
10
,
$val
[
"id"
],
$params
[
"user_id"
]);
...
...
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