Commit 5a89e452 authored by Hsinli's avatar Hsinli

addd

parent 328db340
Pipeline #9312 passed with stage
in 4 seconds
...@@ -29,11 +29,12 @@ class Export20190425 extends Controller { ...@@ -29,11 +29,12 @@ class Export20190425 extends Controller {
let list = newHouseList.results; let list = newHouseList.results;
let newHouseData = []; let newHouseData = [];
for (let i in list) { for (let i in list) {
const houseType = { 1: '住宅', 2: '公寓', 3: '别墅', 4: '商业', 5: '写字', 6: '底商' };
newHouseData[i] = { newHouseData[i] = {
id: list[i].id, id: list[i].id,
name: list[i].name, name: list[i].name,
residential_id: list[i].residentialId, residential_id: list[i].residentialId,
// developer_id: list[i].xxx, developer_id: 4,//暂时默认写个4
province: list[i].residential.province, province: list[i].residential.province,
city: list[i].residential.city, city: list[i].residential.city,
area: list[i].residential.county, area: list[i].residential.county,
...@@ -44,15 +45,15 @@ class Export20190425 extends Controller { ...@@ -44,15 +45,15 @@ class Export20190425 extends Controller {
sale_address: list[i].saleAddress, sale_address: list[i].saleAddress,
tags: list[i].tags, tags: list[i].tags,
sale_type: list[i].saleType, sale_type: list[i].saleType,
house_type: list[i].houseType, house_type: houseType[list[i].houseType],
reference_avg_price: list[i].referenceAvgPrice, reference_avg_price: list[i].referenceAvgPrice,
reference_total_price: list[i].referenceTotalPrice, reference_total_price: list[i].referenceTotalPrice,
image: list[i].image, image: list[i].image,
corner: list[i].cornerMarker, corner: list[i].cornerMarker,
discount: list[i].discount, discount: list[i].discount || null,
favourable_info: list[i].favourableInfo, favourable_info: list[i].favourableInfo || null,
decoration_type: list[i].decorationType, decoration_type: list[i].decorationType || null,
description: list[i].description, description: list[i].description || null,
open_date: list[i].openDate, open_date: list[i].openDate,
due_date: list[i].dueDate, due_date: list[i].dueDate,
plan_rooms: list[i].planRooms, plan_rooms: list[i].planRooms,
...@@ -64,7 +65,7 @@ class Export20190425 extends Controller { ...@@ -64,7 +65,7 @@ class Export20190425 extends Controller {
selling_qualification: list[i].xxx, selling_qualification: list[i].xxx,
remark: list[i].remark, remark: list[i].remark,
// is_reality: list[i].xxx, // is_reality: list[i].xxx,
order_id: list[i].orderNum, order_id: list[i].orderNum === 9999 ? 0 : list[i].orderNum,
status: Number(list[i].state) === 0 ? 'offline' : 'online', status: Number(list[i].state) === 0 ? 'offline' : 'online',
valid: 1, valid: 1,
created_at: list[i].createdAt, created_at: list[i].createdAt,
......
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