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
56f1dfce
Commit
56f1dfce
authored
Jun 03, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
6b0c16fb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
13 deletions
+15
-13
OfficeRoomService.php
application/index/service/OfficeRoomService.php
+15
-13
No files found.
application/index/service/OfficeRoomService.php
View file @
56f1dfce
...
@@ -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
;
}
}
/*
/*
...
...
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