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