Commit 3f690b4d authored by 李尚科's avatar 李尚科
parents 34b40bd0 8f8aaa28
Pipeline #9184 passed with stage
in 14 seconds
This diff is collapsed.
'use strict'; 'use strict';
module.exports = app => { module.exports = app => {
const router = app.router.namespace(app.config.projectRootPath + '/house/export20190425'); const router = app.router.namespace(app.config.projectRootPath + '/house/export');
router.get('add', '/house_image', 'house.export20190425.exportHouseImages');//用户浏览记录列表 router.get('add', '/house_image', 'house.export20190425.exportHouseImages');//用户浏览记录列表
router.get('add', '/residential', 'house.export20190425.exportResidential');//用户浏览记录列表 router.get('add', '/residential', 'house.export20190425.exportResidential');//用户浏览记录列表
...@@ -10,4 +10,15 @@ module.exports = app => { ...@@ -10,4 +10,15 @@ module.exports = app => {
router.get('/new_house', 'house.export20190425.moveNewHouse'); router.get('/new_house', 'house.export20190425.moveNewHouse');
router.get('/new_house_type', 'house.export20190425.moveNewHouseType'); router.get('/new_house_type', 'house.export20190425.moveNewHouseType');
//sqlserver迁移数据
router.get('third', '/new_house_related', 'house.v2.export190619.moveNewHouse');
router.get('third', '/collection', 'house.v2.export190619.moveCollection');
router.get('third', '/order', 'house.v2.export190619.moveOrder');
router.get('third', '/history', 'house.v2.export190619.moveHistory');
router.get('third', '/foot', 'house.v2.export190619.moveFoot');
}; };
...@@ -342,7 +342,7 @@ class NewHouseService extends Service { ...@@ -342,7 +342,7 @@ class NewHouseService extends Service {
if (type === 'home') { if (type === 'home') {
//为您推荐只展示50条在售楼盘的数据,根据排序序号取数,数字小的排在前面,数字一样的情况下根据时间逆序排列,时间也一样的情况下随机排列; //为您推荐只展示50条在售楼盘的数据,根据排序序号取数,数字小的排在前面,数字一样的情况下根据时间逆序排列,时间也一样的情况下随机排列;
filter.limit = Number(condition.page_size) || 50; filter.limit = Number(condition.page_size) || 50;
filter.order.push(['order_id', 'desc'], ['created_at', 'desc']); filter.order.push(['order_id', 'asc'], ['created_at', 'desc']);
} else if (type === 'all') { } else if (type === 'all') {
filter.order.push(['sale_type', 'desc']); filter.order.push(['sale_type', 'desc']);
} else if (type === 'sale') { } else if (type === 'sale') {
......
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