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
b5311abb
Commit
b5311abb
authored
Apr 15, 2019
by
李尚科
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
house fix
parent
e2b4d6c6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
option.js
app/service/house/option.js
+1
-1
rental_house.js
app/service/house/rental_house.js
+8
-8
No files found.
app/service/house/option.js
View file @
b5311abb
...
...
@@ -135,7 +135,7 @@ class OptionService extends Service {
}
const
districts
=
await
ctx
.
blockModel
.
HouseDistrict
.
all
({
where
:
{
city_id
:
city
.
code
}
});
if
(
!
districts
||
districts
.
length
===
0
)
{
ctx
.
failed
(
'district error'
)
;
return
[]
;
}
const
ret
=
[]
...
...
app/service/house/rental_house.js
View file @
b5311abb
...
...
@@ -22,8 +22,8 @@ class RentalHouseService extends Service {
const
queryConditions
=
[];
if
(
condition
.
brand
)
{
queryConditions
.
push
({
key
:
'developer
I
d'
,
value
:
condition
.
brand
,
key
:
'developer
i
d'
,
value
:
parseInt
(
condition
.
brand
)
,
operator
:
'equal'
,
});
}
...
...
@@ -41,15 +41,15 @@ class RentalHouseService extends Service {
}
if
(
condition
.
house_type
)
{
queryConditions
.
push
({
key
:
'
rentalHouseT
ype'
,
value
:
condition
.
house_type
,
operator
:
'
contains
'
,
key
:
'
t
ype'
,
value
:
parseInt
(
condition
.
house_type
)
,
operator
:
'
equal
'
,
});
}
if
(
condition
.
area_
nam
e
)
{
if
(
condition
.
area_
cod
e
)
{
queryConditions
.
push
({
key
:
'
area_name
'
,
value
:
condition
.
area_
nam
e
,
key
:
'
county
'
,
value
:
condition
.
area_
cod
e
,
operator
:
'equal'
,
});
}
...
...
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