Commit 5903982f authored by hujun's avatar hujun

字段修改

parent 109c1779
......@@ -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 ;
}
......
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