Commit 70703548 authored by Hsinli's avatar Hsinli

add

parent 12e0f3b2
Pipeline #12728 passed with stage
in 20 seconds
...@@ -510,7 +510,9 @@ class NewHouseService extends Service { ...@@ -510,7 +510,9 @@ class NewHouseService extends Service {
return { city, county, region }; return { city, county, region };
} }
//新房支持的城市 /**
* 新房支持的城市
*/
async getNewHouseCity() { async getNewHouseCity() {
const { ctx } = this; const { ctx } = this;
//所有支持的城市编码 //所有支持的城市编码
...@@ -532,6 +534,28 @@ class NewHouseService extends Service { ...@@ -532,6 +534,28 @@ class NewHouseService extends Service {
} }
return ret; return ret;
} }
/**
* 新房城市对应的价格显示
*/
async getNewHouseCityPrice() {
const { ctx } = this;
//所有支持的城市编码
let filter = {
where: {
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];
}
}
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