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
44e79e90
Commit
44e79e90
authored
Apr 15, 2019
by
Hsinli
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of t-git.51gjj.com:fangbin/51business
parents
73a67ab8
3b706e0c
Pipeline
#5977
passed with stage
in 5 seconds
Changes
2
Pipelines
1
Show 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 @
44e79e90
...
@@ -135,7 +135,7 @@ class OptionService extends Service {
...
@@ -135,7 +135,7 @@ class OptionService extends Service {
}
}
const
districts
=
await
ctx
.
blockModel
.
HouseDistrict
.
all
({
where
:
{
city_id
:
city
.
code
}
});
const
districts
=
await
ctx
.
blockModel
.
HouseDistrict
.
all
({
where
:
{
city_id
:
city
.
code
}
});
if
(
!
districts
||
districts
.
length
===
0
)
{
if
(
!
districts
||
districts
.
length
===
0
)
{
ctx
.
failed
(
'district error'
)
;
return
[]
;
}
}
const
ret
=
[]
const
ret
=
[]
...
...
app/service/house/rental_house.js
View file @
44e79e90
...
@@ -22,8 +22,8 @@ class RentalHouseService extends Service {
...
@@ -22,8 +22,8 @@ class RentalHouseService extends Service {
const
queryConditions
=
[];
const
queryConditions
=
[];
if
(
condition
.
brand
)
{
if
(
condition
.
brand
)
{
queryConditions
.
push
({
queryConditions
.
push
({
key
:
'developer
I
d'
,
key
:
'developer
i
d'
,
value
:
condition
.
brand
,
value
:
parseInt
(
condition
.
brand
)
,
operator
:
'equal'
,
operator
:
'equal'
,
});
});
}
}
...
@@ -41,15 +41,15 @@ class RentalHouseService extends Service {
...
@@ -41,15 +41,15 @@ class RentalHouseService extends Service {
}
}
if
(
condition
.
house_type
)
{
if
(
condition
.
house_type
)
{
queryConditions
.
push
({
queryConditions
.
push
({
key
:
'
rentalHouseT
ype'
,
key
:
'
t
ype'
,
value
:
condition
.
house_type
,
value
:
parseInt
(
condition
.
house_type
)
,
operator
:
'
contains
'
,
operator
:
'
equal
'
,
});
});
}
}
if
(
condition
.
area_
nam
e
)
{
if
(
condition
.
area_
cod
e
)
{
queryConditions
.
push
({
queryConditions
.
push
({
key
:
'
area_name
'
,
key
:
'
county
'
,
value
:
condition
.
area_
nam
e
,
value
:
condition
.
area_
cod
e
,
operator
:
'equal'
,
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