Commit 19e86170 authored by Hsinli's avatar Hsinli

Merge branch 'master' of t-git.51gjj.com:fangbin/51business

parents 639a7dae 631f7965
Pipeline #6462 passed with stage
in 2 seconds
......@@ -108,14 +108,14 @@ class ToolController extends Controller {
const total_price = input_parmas.total_price;
const area_name = input_parmas.area_name;
let filter = {
total_price: { min: total_price - 300000, max: total_price + 300000 },
total_price: { min: total_price - 30, max: total_price + 30 },
area_code: { bizcircle_code: area_code },
}
let recommend_houses = await ctx.service.house.newHouse.getNewHouseList(filter);//推荐房源
if (recommend_houses.count === 0) {
filter = {
total_price: { min: total_price - 300000, max: total_price + 300000 },
total_price: { min: total_price - 30, max: total_price + 30 },
area_code: { district_code: area_code },
}
recommend_houses = await ctx.service.house.newHouse.getNewHouseList(filter);//推荐房源
......@@ -123,7 +123,7 @@ class ToolController extends Controller {
if (recommend_houses.count === 0) {
filter = {
total_price: { min: total_price - 300000, max: total_price + 300000 },
total_price: { min: total_price - 30, max: total_price + 30 },
area_code: { city_code: area_code },
}
recommend_houses = await ctx.service.house.newHouse.getNewHouseList(filter);//推荐房源
......
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