Commit f5ae20b0 authored by Hsinli's avatar Hsinli

addd

parent 3e6e7508
Pipeline #12736 passed with stage
in 4 seconds
......@@ -545,12 +545,9 @@ class NewHouseService extends Service {
valid: 1
}
}
let cityPrice = await ctx.realestateModel.NewHouseCityPrice.findAll(filter);
let ret = {};
if (cityPrice !== undefined && cityPrice.length > 0) {
for (let i in cityPrice) {
ret[cityPrice[i].code] = cityPrice[i];
}
let ret = await ctx.realestateModel.NewHouseCityPrice.findAll(filter);
if (ret === undefined && ret.length === 0) {
return [];
}
return ret;
}
......
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