Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
5903982f
Commit
5903982f
authored
Apr 18, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
字段修改
parent
109c1779
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
TransferHouseInfo.php
application/api/controller/TransferHouseInfo.php
+12
-6
No files found.
application/api/controller/TransferHouseInfo.php
View file @
5903982f
...
...
@@ -22,7 +22,7 @@ class TransferHouseInfo extends Controller
public
function
table
()
{
Db
::
table
(
'g_houses'
)
->
execute
(
'TRUNCATE `g_houses`'
);
Db
::
table
(
'g_houses_to_agents'
)
->
execute
(
'TRUNCATE `g_houses_to_agents`'
);
Db
::
table
(
'houseinfo_exts'
)
->
execute
(
'TRUNCATE `
houseinfo_exts
`'
);
Db
::
table
(
'houseinfo_exts'
)
->
execute
(
'TRUNCATE `
g_houses_ext
`'
);
$num
=
Db
::
table
(
'houseinfos'
)
->
order
(
'id desc'
)
->
value
(
'id'
);
$regions
=
new
Regions
();
for
(
$i
=
1
;
$i
<=
$num
;
$i
++
)
{
...
...
@@ -54,7 +54,7 @@ class TransferHouseInfo extends Controller
$g_house_data
[
'market_area'
]
=
$house_info_data
[
'business_area'
];
$g_house_data
[
'rent_type'
]
=
$house_info_data
[
'rent_type'
];
$g_house_data
[
'rent_price'
]
=
$house_info_data
[
'price'
];
$g_house_data
[
'rent_price'
]
=
$house_info_data
[
'price'
]
*
100
;
$g_house_data
[
'industry_type'
]
=
$house_info_data
[
'yetai'
];
// $g_house_data['case_manager_phone'] = $house_info_data['title'];
...
...
@@ -70,16 +70,16 @@ class TransferHouseInfo extends Controller
}
$g_house_data
[
'home_page_sort'
]
=
empty
(
$house_info_data
[
'
home_page_sort'
])
?
0
:
$house_info_data
[
'home_page_sort
'
];
$g_house_data
[
'home_page_sort'
]
=
empty
(
$house_info_data
[
'
rank'
])
?
0
:
$house_info_data
[
'rank
'
];
$g_house_data
[
'shop_type'
]
=
$house_info_data
[
'shangpu_type'
];
$g_house_data
[
'shop_sign'
]
=
$house_info_data
[
'shangpu_tags'
];
$g_house_data
[
'management_fee'
]
=
$house_info_data
[
'management_fee'
]
*
100
;
//商铺类型(0商场,1街铺)
if
(
$g_house_data
[
'shop_type'
]
==
1
)
{
$g_house_data
[
'slotting_fee'
]
=
$house_info_data
[
'slotting_fee'
]
*
100
;
}
else
{
$g_house_data
[
'slotting_fee'
]
=
$house_info_data
[
'transfer_fee'
]
*
100
;
}
else
{
$g_house_data
[
'slotting_fee'
]
=
$house_info_data
[
'slotting_fee'
]
*
100
;
}
$g_house_data
[
'residue_num'
]
=
$house_info_data
[
'room_num_left'
];
...
...
@@ -89,7 +89,7 @@ class TransferHouseInfo extends Controller
$g_house_data
[
'is_show'
]
=
$house_info_data
[
'show_all'
];
$g_house_data
[
'is_can_records'
]
=
$house_info_data
[
'iscanreport'
];
$g_house_data
[
'is_has_gas'
]
=
$house_info_data
[
'has_gas'
];
$g_house_data
[
'is_carefully_chosen'
]
=
$house_info_data
[
'carefully_chosen'
]
;
$g_house_data
[
'is_carefully_chosen'
]
=
empty
(
$house_info_data
[
'carefully_chosen'
])
?
1
:
0
;
//是否独家0否1是
$g_house_data
[
'is_exclusive_type'
]
=
$house_info_data
[
'exclusive_type'
];
$g_house_data
[
'upload_id'
]
=
$house_info_data
[
'admin_id'
];
...
...
@@ -168,6 +168,7 @@ class TransferHouseInfo extends Controller
*/
public
function
houseImg
()
{
Db
::
table
(
'g_houses'
)
->
execute
(
'TRUNCATE `g_houses_imgs`'
);
$num
=
Db
::
table
(
'houseimgs'
)
->
order
(
'id desc'
)
->
value
(
'id'
);
...
...
@@ -201,6 +202,11 @@ class TransferHouseInfo extends Controller
Db
::
table
(
'g_houses_imgs'
)
->
insert
(
$house_img_save
);
}
}
// if ($i == 5000) {
// echo $i;
// break;
// }
}
return
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment