Commit 56f1dfce authored by zhuwei's avatar zhuwei

1

parent 6b0c16fb
...@@ -580,10 +580,10 @@ class OfficeRoomService ...@@ -580,10 +580,10 @@ class OfficeRoomService
$conditions['a.id'] = $params["id"]; $conditions['a.id'] = $params["id"];
$field = 'a.id,b.title,a.price_total,a.price,a.station_start,b.type,a.station_end,a.area,a.floor,a.floor_tag,is_register $field = 'a.id,b.title,a.price_total,a.price,a.station_start,b.type,a.station_end,a.area,a.floor,a.floor_tag,
,a.age_limit_start,a.age_limit_end,a.rent_free,a.management_fee,a.slotting_fee,a.carport,a.enter_date,a.is_partition a.is_register,a.age_limit_start,a.age_limit_end,a.rent_free,a.management_fee,a.slotting_fee,a.carport,a.enter_date,
,a.decoration,a.payment_month,a.deposit_month,a.source,a.create_time,a.operation_id,a.landlord_remark,a.fee_rule, a.is_partition,a.decoration,a.payment_month,a.deposit_month,a.source,a.create_time,a.operation_id,a.landlord_remark,
a.update_time,b.address'; a.fee_rule,a.update_time,b.address';
$result = $this->m_office_room->getOfficeRoomInfo($field, $conditions); $result = $this->m_office_room->getOfficeRoomInfo($field, $conditions);
if (!$result) { if (!$result) {
return ['status'=>101,'msg'=>'此房源不存在']; return ['status'=>101,'msg'=>'此房源不存在'];
...@@ -625,9 +625,11 @@ class OfficeRoomService ...@@ -625,9 +625,11 @@ class OfficeRoomService
$params['type'] = 3; $params['type'] = 3;
$params['is_del'] = 0; $params['is_del'] = 0;
$res = $this->agent_room->getAgentsByRoomId('b.id,name,a.type,b.phone', $params); $res = $this->agent_room->getAgentsByRoomId('b.id,name,a.type,b.phone', $params);
if($res) if($res){
$exclusive_info['name'] = $res['name']; $exclusive_info['name'] = $res[0]['name'];
$exclusive_info['phone'] = $res['phone']; $exclusive_info['phone'] = $res[0]['phone'];
}
return $exclusive_info; return $exclusive_info;
} }
...@@ -640,13 +642,13 @@ class OfficeRoomService ...@@ -640,13 +642,13 @@ class OfficeRoomService
public function getLandlordInfo($house_id){ public function getLandlordInfo($house_id){
$m_landlord = new OfficeGLandlordPhone(); $m_landlord = new OfficeGLandlordPhone();
$landlord_info = [];
$res = $m_landlord->getAllList('id,name,phone', ['house_id'=>$house_id]);; $res = $m_landlord->getAllList('id,name,phone', ['house_id'=>$house_id]);;
if($res) if($res){
$landlord_info['id'] = $res['id']; foreach ($res as $k=>$v) {
$landlord_info['name'] = $res['name']; $res[$k]['phone'] = preg_replace('/(\d{3})\d{4}(\d{4})/', '$1****$2', $v["phone"]);
$landlord_info['phone'] = $res['phone']; }
return $landlord_info; }
return $res;
} }
/* /*
......
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