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
32e8be45
Commit
32e8be45
authored
Jun 28, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
595ec023
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
OfficeBroker.php
application/api/controller/OfficeBroker.php
+3
-3
AAgents.php
application/model/AAgents.php
+8
-0
No files found.
application/api/controller/OfficeBroker.php
View file @
32e8be45
...
...
@@ -133,7 +133,7 @@ class OfficeBroker extends Basic
$list
=
[];
$agents
=
new
AAgents
();
$m_march
=
new
OMarchInModel
();
$m_march
=
new
O
fficeO
MarchInModel
();
$m_evaluate
=
new
Evaluate
();
//查找30天带看最多的人
...
...
@@ -174,11 +174,11 @@ class OfficeBroker extends Basic
$where
[
'a.id'
]
=
[
'neq'
,
$list
[
1
][
'id'
]];
}
$where
[
'b.house
s
_id'
]
=
$this
->
params
[
'house_id'
];
$where
[
'b.house_id'
]
=
$this
->
params
[
'house_id'
];
$where
[
'b.is_del'
]
=
$where
[
'a.status'
]
=
0
;
$where
[
'b.type'
]
=
2
;
$house_agent
=
$agents
->
getAgentHouseType
(
$fields
,
$where
);
$house_agent
=
$agents
->
getAgentHouseType
ByOffice
(
$fields
,
$where
);
if
(
!
empty
(
$house_agent
)){
$house_agent
[
'show_content'
]
=
'本铺由我登记,熟悉房源信息'
;
array_push
(
$list
,
$house_agent
);
...
...
application/model/AAgents.php
View file @
32e8be45
...
...
@@ -1713,6 +1713,14 @@ class AAgents extends BaseModel
->
find
();
}
public
function
getAgentHouseTypeByOffice
(
$field
,
$where
)
{
return
$this
->
alias
(
'a'
)
->
field
(
$field
)
->
join
(
'office_g_room_to_agent b'
,
'a.id=b.agent_id'
,
'left'
)
->
where
(
$where
)
->
find
();
}
public
function
getAgentDistrictId
(
$field
,
$params
)
{
$result
=
Db
::
table
(
$this
->
table
)
...
...
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