Commit 3b0c4f3b authored by 李尚科's avatar 李尚科

fix

parent a0feb7e0
Pipeline #9750 passed with stage
in 4 seconds
'use strict'; 'use strict';
const Controller = require('egg').Controller; const Controller = require('egg').Controller;
const R = require('ramda');
class HouseAnalysisController extends Controller { class HouseAnalysisController extends Controller {
//购房解析列表 //购房解析列表
...@@ -81,7 +81,7 @@ class HouseAnalysisController extends Controller { ...@@ -81,7 +81,7 @@ class HouseAnalysisController extends Controller {
const { ctx } = this; const { ctx } = this;
const results = await ctx.blockModel.City.all({ where: { code: { $in: [110000, 310000, 330100, 440100, 440300, 500000] } } }); const results = await ctx.blockModel.City.all({ where: { code: { $in: [110000, 310000, 330100, 440100, 440300, 500000] } } });
ctx.success({ results }); ctx.success({ results: R.project(['code', 'name'])(results) });
} }
......
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