Commit 6c07a3cb authored by Hsinli's avatar Hsinli

add

parent 28baa87a
Pipeline #11944 passed with stage
in 4 seconds
...@@ -136,7 +136,7 @@ class ToolService extends Service { ...@@ -136,7 +136,7 @@ class ToolService extends Service {
status = 1;//加把劲还是有希望买到房 status = 1;//加把劲还是有希望买到房
notice = '恭喜您!依据以上计划,您即将完成此项目首付款准备。您现阶段首付预算可以购买以下项目房源:'; notice = '恭喜您!依据以上计划,您即将完成此项目首付款准备。您现阶段首付预算可以购买以下项目房源:';
const invest_plans = await ctx.blockModel.HouseInvestPlan.one({ where: { condition_min: { $lt: rate }, condition_max: { $gte: rate }, status: 'online', valid: 1, period: prepare_time } }); const invest_plans = await ctx.blockModel.HouseInvestPlan.one({ where: { condition_min: { $lt: rate }, condition_max: { $gte: rate }, status: 'online', valid: 1, period: prepare_time } });
if (Object.keys(invest_plans).length !== 0 && invest_plans.items) { if (invest_plans !== null && invest_plans.items) {
invest_items = invest_plans.items; invest_items = invest_plans.items;
if (invest_items.length === 0) {//差距还是太大 投资期限过长 不宜买房 if (invest_items.length === 0) {//差距还是太大 投资期限过长 不宜买房
status = 0; status = 0;
......
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