Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
5
51business
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
方斌
51business
Commits
e89eba35
Commit
e89eba35
authored
Jun 12, 2019
by
李尚科
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rental houe fix
parent
fb065616
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
rental_house.js
app/service/house/v2/rental_house.js
+4
-2
No files found.
app/service/house/v2/rental_house.js
View file @
e89eba35
...
...
@@ -53,7 +53,7 @@ class RentalHouseService extends Service {
where
.
id
=
{
$in
:
rental_houses_ids
};
}
const
rental_houses_results
=
await
ctx
.
realestateModel
.
RentalHouse
.
list
({
page
:
page
,
limit
:
limit
,
where
:
where
,
order
:
[[
'order_id'
,
'asc'
]]
});
const
rental_houses_results
=
await
ctx
.
realestateModel
.
RentalHouse
.
list
({
page
:
page
,
limit
:
Number
(
limit
)
,
where
:
where
,
order
:
[[
'order_id'
,
'asc'
]]
});
let
rental_houses
=
await
this
.
formatRentalHouseBasic
(
rental_houses_results
.
rows
);
rental_houses
=
R
.
project
([
'id'
,
'image'
,
'name'
,
'address'
,
'price'
,
'tags'
,
'favourable_info'
])(
rental_houses
);
...
...
@@ -89,8 +89,10 @@ class RentalHouseService extends Service {
//TODO添加用户足迹,是否关注过房源
await
ctx
.
service
.
house
.
v2
.
footPrint
.
addFootPrint
({
type
:
2
,
id
:
rental_house_id
});
//是否关注
let
collectionTask
=
await
ctx
.
service
.
house
.
collection
.
getCollection
({
type
:
2
,
id
:
rental_house_id
});
return
{
house_basic
,
house_images
,
house_types
,
collection
:
false
,
};
return
{
house_basic
,
house_images
,
house_types
,
collection
:
collectionTask
,
};
}
//格式化户型数据
...
...
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