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