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
1e593cb3
Commit
1e593cb3
authored
Feb 27, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
经纪人查询
parent
068a73a7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
2 deletions
+18
-2
Broker.php
application/index/controller/Broker.php
+7
-2
AuthGroupSite.php
application/model/AuthGroupSite.php
+11
-0
No files found.
application/index/controller/Broker.php
View file @
1e593cb3
...
...
@@ -20,6 +20,7 @@ use app\model\AAgentsBlackListImg;
use
app\model\ABindingDevice
;
use
app\model\AOperatingRecords
;
use
app\model\AStore
;
use
app\model\AuthGroupSite
;
use
app\model\Evaluate
;
use
app\model\GHousesToAgents
;
use
app\model\GOperatingRecords
;
...
...
@@ -110,8 +111,12 @@ class Broker extends Basic
$where
[
'district_id'
]
=
$this
->
params
[
'district_id'
];
}
if
(
$this
->
params
[
'site_id'
]
&&
(
$this
->
userId
!=
1
))
{
$where
[
'site_id'
]
=
$this
->
params
[
'site_id'
];
if
(
$this
->
userId
!=
1
)
{
$group_site
=
new
AuthGroupSite
();
$agent_model
=
new
AAgents
();
$auth_group_id
=
$agent_model
->
getAgentFieldById
(
$this
->
userId
,
'auth_group_id'
);
$site_id
=
$group_site
->
getAgentField
(
'site_id'
,
[
'group_id'
=>
$auth_group_id
]);
$where
[
'site_id'
]
=
[
'in'
,
$site_id
];
}
if
(
$this
->
params
[
'position'
]
==
-
1
)
{
...
...
application/model/AuthGroupSite.php
View file @
1e593cb3
...
...
@@ -69,4 +69,14 @@ class AuthGroupSite extends BaseModel
return
$data
;
}
/**
* @param $id
* @param $fields
* @return mixed
*/
public
function
getAgentField
(
$fields
,
$where
)
{
return
$this
->
where
(
$where
)
->
value
(
$fields
);
}
}
\ No newline at end of file
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