Commit 41e56d7f authored by hujun's avatar hujun

增加字段

parent 09ccdf80
......@@ -316,6 +316,28 @@ class OfficeRoomService
$data['building_data'] = [];
}
}
$data['landlord_phone_array'] = $this->landlord_phone->getAllList('id,name,phone', ['house_id'=>$id]); //房东手机号
if ($data['price_total'] > 0) {
$data['price_total'] = $data['price_total']/100;
}
if ($data['price'] > 0) {
$data['price'] = $data['price']/100;
}
if ($data['slotting_fee'] > 0) {
$data['slotting_fee'] = $data['slotting_fee']/100;
}
if ($data['management_fee'] > 0) {
$data['management_fee'] = $data['management_fee']/100;
}
if ($data['rent_free'] > 0) {
$data['rent_free'] = $data['rent_free']/100;
}
}
$result['data'] = $data;
$result['status'] = 'successful';
......
......@@ -67,6 +67,16 @@ class OfficeGRoom extends BaseModel
$save_data['is_exclusive_type'] = $data['is_exclusive_type'];
}
//是否独家0否1是
if (isset($data['agent_start_time'])) {
$save_data['agent_start_time'] = $data['agent_start_time'];
}
//是否独家0否1是
if (isset($data['agent_end_time'])) {
$save_data['agent_end_time'] = $data['agent_end_time'];
}
//租金总价 存分
if (isset($data['price_total'])) {
$save_data['price_total'] = $data['price_total'] * 100;
......
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