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
c6b105ba
Commit
c6b105ba
authored
Jul 03, 2019
by
李尚科
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
house v2 tool house plan fix
parent
412b8e14
Pipeline
#10083
passed with stage
in 5 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
tool.js
app/controller/house/v2/tool.js
+2
-0
No files found.
app/controller/house/v2/tool.js
View file @
c6b105ba
...
@@ -209,6 +209,8 @@ class ToolController extends Controller {
...
@@ -209,6 +209,8 @@ class ToolController extends Controller {
let
recommend_houses
=
await
ctx
.
realestateModel
.
NewHouse
.
list
({
limit
:
6
,
page
:
1
,
where
:
where
,
order
:
[[
'order_id'
,
'desc'
]]
});
//推荐房源
let
recommend_houses
=
await
ctx
.
realestateModel
.
NewHouse
.
list
({
limit
:
6
,
page
:
1
,
where
:
where
,
order
:
[[
'order_id'
,
'desc'
]]
});
//推荐房源
if
(
recommend_houses
.
count
<
6
)
{
if
(
recommend_houses
.
count
<
6
)
{
delete
where
.
option_district_code
;
delete
where
.
option_district_code
;
const
out_house_ids
=
R
.
pluck
(
'id'
,
recommend_houses
.
rows
);
where
.
id
=
{
$notIn
:
out_house_ids
};
const
recommend_houses_supplement
=
await
ctx
.
realestateModel
.
NewHouse
.
list
({
limit
:
6
,
page
:
1
,
where
:
where
,
order
:
[[
'order_id'
,
'desc'
]]
});
//推荐房源
const
recommend_houses_supplement
=
await
ctx
.
realestateModel
.
NewHouse
.
list
({
limit
:
6
,
page
:
1
,
where
:
where
,
order
:
[[
'order_id'
,
'desc'
]]
});
//推荐房源
recommend_houses
=
[...
recommend_houses
.
rows
,
...
recommend_houses_supplement
.
rows
];
recommend_houses
=
[...
recommend_houses
.
rows
,
...
recommend_houses_supplement
.
rows
];
}
}
...
...
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