Commit af54a459 authored by Hsinli's avatar Hsinli

addd

parent e646329b
Pipeline #6411 passed with stage
in 4 seconds
......@@ -24,12 +24,12 @@ class NewHouseController extends Controller {
};
ctx.validate(rule, inputParams);
let ret = {};
if (inputParams.hasOwnProperty('type') && inputParams.type !== '') {
ret = await ctx.service.house.newHouse.getNewHouseListByType(inputParams);
} else {
ret = await ctx.service.house.newHouse.getNewHouseList(inputParams);
}
// ret = await ctx.service.house.newHouse.getNewHouseListV2(inputParams);
// if (inputParams.hasOwnProperty('type') && inputParams.type !== '') {
// ret = await ctx.service.house.newHouse.getNewHouseListByType(inputParams);
// } else {
// ret = await ctx.service.house.newHouse.getNewHouseList(inputParams);
// }
ret = await ctx.service.house.newHouse.getNewHouseListV2(inputParams);
ctx.success(ret);
}
......
......@@ -495,7 +495,7 @@ class NewHouseService extends Service {
orderConditions: [],
}
//根据筛选项增加不同的指定类型
if (inputParams.hasOwnProperty('type') && inputParams.type !== '') {
if (condition.hasOwnProperty('type') && condition.type !== '') {
if (type === 'home') {
//为您推荐只展示50条在售楼盘的数据,根据排序序号取数,数字小的排在前面,数字一样的情况下根据时间逆序排列,时间也一样的情况下随机排列;
filter.pageSize = Number(condition.page_size) || 50;
......
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