Commit e89eba35 authored by 李尚科's avatar 李尚科

rental houe fix

parent fb065616
...@@ -53,7 +53,7 @@ class RentalHouseService extends Service { ...@@ -53,7 +53,7 @@ class RentalHouseService extends Service {
where.id = { $in: rental_houses_ids }; 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); let rental_houses = await this.formatRentalHouseBasic(rental_houses_results.rows);
rental_houses = R.project(['id', 'image', 'name', 'address', 'price', 'tags', 'favourable_info'])(rental_houses); rental_houses = R.project(['id', 'image', 'name', 'address', 'price', 'tags', 'favourable_info'])(rental_houses);
...@@ -89,8 +89,10 @@ class RentalHouseService extends Service { ...@@ -89,8 +89,10 @@ class RentalHouseService extends Service {
//TODO添加用户足迹,是否关注过房源 //TODO添加用户足迹,是否关注过房源
await ctx.service.house.v2.footPrint.addFootPrint({ type: 2, id: rental_house_id }); 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, };
} }
//格式化户型数据 //格式化户型数据
......
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