Commit 0c228604 authored by 李尚科's avatar 李尚科

rental house fix

parent e98566b2
Pipeline #6457 passed with stage
in 2 seconds
......@@ -82,9 +82,11 @@ class RentalHouseService extends Service {
value: 0,
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 = {
pageSize: pageSize,
pageIndex: page,
queryConditions: queryConditions,
orderConditions: [{
key: 'price',
......
......@@ -8,7 +8,7 @@ class RentalHouseService extends Service {
async all(data) {
const { ctx } = this;
const pageIndex = data.page || 1;
const pageIndex = data.pageIndex || 1;
const pageSize = data.pageSize || 10;
const queryConditions = data.queryConditions || [];
const orderConditions = data.orderConditions || [];
......
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