Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
5
51business
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
方斌
51business
Commits
3b0c4f3b
Commit
3b0c4f3b
authored
Jun 27, 2019
by
李尚科
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
a0feb7e0
Pipeline
#9750
passed with stage
in 4 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
house_analysis.js
app/controller/house/v2/house_analysis.js
+2
-2
No files found.
app/controller/house/v2/house_analysis.js
View file @
3b0c4f3b
'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
)
});
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment