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
a5253ea4
Commit
a5253ea4
authored
Mar 11, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取我的案场权限人,盘方和独家
parent
97fa2920
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
2 deletions
+23
-2
ReportService.php
application/api_broker/service/ReportService.php
+2
-2
VerifyService.php
application/api_broker/service/VerifyService.php
+21
-0
No files found.
application/api_broker/service/ReportService.php
View file @
a5253ea4
...
...
@@ -109,10 +109,10 @@ class ReportService
//todo 获取我报备的我的案场的,
//如果是店长则获取其下所有的经纪人 这里去掉了for190218
$vModel
=
new
VerifyService
();
// $agentArr = $vModel->getAgentsByAgentId($params["report_agent_id"]);
// $agentArr = $vModel->getAgentsByAgentId($params["report_agent_id"]);
$params
[
"agent_id_s"
]
=
array
(
"in"
,
$params
[
"report_agent_id"
]
);
$caseHouseId
=
$vModel
->
get
PanpartyAndExclusiveHouseIdByAgentId
(
$params
[
"agent_id_s"
]);
$caseHouseId
=
$vModel
->
get
CaseHouseIdByAgentIdV2
(
$params
[
"agent_id_s"
]);
$ids
=
""
;
if
(
count
(
$caseHouseId
)
>
0
)
{
foreach
(
$caseHouseId
as
$item
)
{
...
...
application/api_broker/service/VerifyService.php
View file @
a5253ea4
...
...
@@ -225,6 +225,27 @@ class VerifyService
}
/**
* 获取我的案场权限人,盘方和独家
* @param $agent_id
* @return false|null|\PDOStatement|string|\think\Collection
*/
public
function
getCaseHouseIdByAgentIdV2
(
$agent_id
)
{
$houseToAgentModel
=
new
GHousesToAgents
();
$params
[
"a.agents_id"
]
=
$agent_id
;
$params
[
"a.type"
]
=
array
(
"in"
,
'1,2,3'
);
//案场权限人,盘方和独家
$params
[
"a.is_del"
]
=
0
;
$house_arr
=
$houseToAgentModel
->
getHouseByAgentId
(
"a.houses_id,b.internal_title"
,
$params
);
if
(
count
(
$house_arr
)
>
0
)
{
return
$house_arr
;
}
return
null
;
}
/**
* 获取我的盘方和独家
* @param $agent_id
...
...
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