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

house fix

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