Commit 929b293a authored by 李尚科's avatar 李尚科

house tool fix

parent 8006ce03
Pipeline #6291 passed with stage
in 7 seconds
...@@ -96,7 +96,12 @@ class ToolController extends Controller { ...@@ -96,7 +96,12 @@ class ToolController extends Controller {
total_price: { type: 'string', required: true } total_price: { type: 'string', required: true }
} }
ctx.validate(rule, input_parmas); ctx.validate(rule, input_parmas);
if (!parseInt(invest_payment)) {
ctx.failed('现有金额不能为0');
}
if (!parseInt(total_price)) {
ctx.failed('面积不能为0');
}
// const target_house = await ctx.blockModel.HousePriceMap.one({ where: { id: input_parmas.area_code } }); // const target_house = await ctx.blockModel.HousePriceMap.one({ where: { id: input_parmas.area_code } });
const area_code = input_parmas.area_code; const area_code = input_parmas.area_code;
const total_price = input_parmas.total_price; const total_price = input_parmas.total_price;
......
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