Commit e4d37704 authored by Hsinli's avatar Hsinli

add

parent 7b1de2dd
Pipeline #19668 passed with stage
in 2 seconds
...@@ -29,8 +29,9 @@ class NewsService extends Service { ...@@ -29,8 +29,9 @@ class NewsService extends Service {
order: [['top', 'desc'], ['source_time', 'desc']] order: [['top', 'desc'], ['source_time', 'desc']]
} }
let list = await ctx.realestateModel.CdNews.findAndCountAll(filter); let list = await ctx.realestateModel.CdNews.findAndCountAll(filter);
let ret = { let ret = {
list: list.row, list: list.rows,
page: list.count, page: list.count,
page_size: Math.ceil(list.count / limit) page_size: Math.ceil(list.count / limit)
} }
......
...@@ -29,7 +29,7 @@ class PresellHouseService extends Service { ...@@ -29,7 +29,7 @@ class PresellHouseService extends Service {
} }
let list = await ctx.realestateModel.CdNews.findAndCountAll(filter); let list = await ctx.realestateModel.CdNews.findAndCountAll(filter);
let ret = { let ret = {
list: list.row, list: list.rows,
page: list.count, page: list.count,
page_size: Math.ceil(list.count / limit) page_size: Math.ceil(list.count / limit)
} }
......
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