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
cdd14064
Commit
cdd14064
authored
Jan 04, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
推送人去重
parent
c04405f7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
1 deletion
+26
-1
PushMessageService.php
application/api_broker/service/PushMessageService.php
+1
-1
GHousesToAgents.php
application/model/GHousesToAgents.php
+25
-0
No files found.
application/api_broker/service/PushMessageService.php
View file @
cdd14064
...
...
@@ -48,7 +48,7 @@ class PushMessageService
$house
=
new
GHouses
();
$m_report
=
new
OReportModel
();
$data
=
$house_agent
->
getHousesAgents
(
$house_id
,
'b.id'
,
[
'a.type'
=>
$type
,
'a.is_del'
=>
0
]);
$data
=
$house_agent
->
getHousesAgents
Push
(
$house_id
,
'b.id'
,
[
'a.type'
=>
$type
,
'a.is_del'
=>
0
]);
$agent_name
=
$agent
->
getAgentsStoreById
([
'a.id'
=>
$agent_id
],
'name,store_name'
);
$house_data
=
$house
->
getHouseDetail
(
'internal_title'
,
[
'id'
=>
$house_id
]);
$order_id
=
$m_report
->
getReportOrder
(
'b.id'
,[
'a.report_agent_id'
=>
$agent_id
]);
...
...
application/model/GHousesToAgents.php
View file @
cdd14064
...
...
@@ -286,6 +286,31 @@ class GHousesToAgents extends BaseModel
* @throws \think\exception\DbException
*/
public
function
getHousesAgents
(
$houses_id
,
$field
=
'b.id,name,a.type,b.phone'
,
$where
=
''
)
{
$select_data
=
$this
->
field
(
$field
)
->
alias
(
'a'
)
->
join
(
'a_agents b'
,
'a.agents_id = b.id'
,
'LEFT'
)
->
where
([
'houses_id'
=>
$houses_id
,
'is_del'
=>
0
])
->
where
(
$where
)
->
select
();
return
$select_data
;
}
/**
* 楼盘对应的经纪人信息
*
* @param $houses_id
* @param string $field
* @param string $where
* @return false|\PDOStatement|string|\think\Collection
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
getHousesAgentsPush
(
$houses_id
,
$field
=
'b.id,name,a.type,b.phone'
,
$where
=
''
)
{
$select_data
=
$this
->
field
(
$field
)
->
alias
(
'a'
)
->
join
(
'a_agents b'
,
'a.agents_id = b.id'
,
'LEFT'
)
...
...
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