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
0c228604
Commit
0c228604
authored
Apr 25, 2019
by
李尚科
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rental house fix
parent
e98566b2
Pipeline
#6457
passed with stage
in 2 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
rental_house.js
app/service/house/rental_house.js
+3
-1
rental_house.js
app/service/house_common/rental_house.js
+1
-1
No files found.
app/service/house/rental_house.js
View file @
0c228604
...
@@ -82,9 +82,11 @@ class RentalHouseService extends Service {
...
@@ -82,9 +82,11 @@ class RentalHouseService extends Service {
value
:
0
,
value
:
0
,
operator
:
"notEqual"
operator
:
"notEqual"
});
});
const
pageSize
=
condition
.
page_size
||
30
;
const
pageSize
=
parseInt
(
condition
.
page_size
)
?
parseInt
(
condition
.
page_size
)
:
30
;
const
page
=
parseInt
(
condition
.
page
)
?
parseInt
(
condition
.
page
)
:
1
;
const
filter
=
{
const
filter
=
{
pageSize
:
pageSize
,
pageSize
:
pageSize
,
pageIndex
:
page
,
queryConditions
:
queryConditions
,
queryConditions
:
queryConditions
,
orderConditions
:
[{
orderConditions
:
[{
key
:
'price'
,
key
:
'price'
,
...
...
app/service/house_common/rental_house.js
View file @
0c228604
...
@@ -8,7 +8,7 @@ class RentalHouseService extends Service {
...
@@ -8,7 +8,7 @@ class RentalHouseService extends Service {
async
all
(
data
)
{
async
all
(
data
)
{
const
{
ctx
}
=
this
;
const
{
ctx
}
=
this
;
const
pageIndex
=
data
.
page
||
1
;
const
pageIndex
=
data
.
page
Index
||
1
;
const
pageSize
=
data
.
pageSize
||
10
;
const
pageSize
=
data
.
pageSize
||
10
;
const
queryConditions
=
data
.
queryConditions
||
[];
const
queryConditions
=
data
.
queryConditions
||
[];
const
orderConditions
=
data
.
orderConditions
||
[];
const
orderConditions
=
data
.
orderConditions
||
[];
...
...
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