Commit 44e79e90 authored by Hsinli's avatar Hsinli

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

parents 73a67ab8 3b706e0c
Pipeline #5977 passed with stage
in 5 seconds
...@@ -135,7 +135,7 @@ class OptionService extends Service { ...@@ -135,7 +135,7 @@ class OptionService extends Service {
} }
const districts = await ctx.blockModel.HouseDistrict.all({ where: { city_id: city.code } }); const districts = await ctx.blockModel.HouseDistrict.all({ where: { city_id: city.code } });
if (!districts || districts.length === 0) { if (!districts || districts.length === 0) {
ctx.failed('district error'); return [];
} }
const ret = [] const ret = []
......
...@@ -22,8 +22,8 @@ class RentalHouseService extends Service { ...@@ -22,8 +22,8 @@ class RentalHouseService extends Service {
const queryConditions = []; const queryConditions = [];
if (condition.brand) { if (condition.brand) {
queryConditions.push({ queryConditions.push({
key: 'developerId', key: 'developerid',
value: condition.brand, value: parseInt(condition.brand),
operator: 'equal', operator: 'equal',
}); });
} }
...@@ -41,15 +41,15 @@ class RentalHouseService extends Service { ...@@ -41,15 +41,15 @@ class RentalHouseService extends Service {
} }
if (condition.house_type) { if (condition.house_type) {
queryConditions.push({ queryConditions.push({
key: 'rentalHouseType', key: 'type',
value: condition.house_type, value: parseInt(condition.house_type),
operator: 'contains', operator: 'equal',
}); });
} }
if (condition.area_name) { if (condition.area_code) {
queryConditions.push({ queryConditions.push({
key: 'area_name', key: 'county',
value: condition.area_name, value: condition.area_code,
operator: 'equal', operator: 'equal',
}); });
} }
......
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