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
db15c837
Commit
db15c837
authored
Mar 29, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查询当前经纪人是否是某个客方的总监
parent
48cbc0ea
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
ImageDepot.php
application/index/controller/ImageDepot.php
+3
-5
UserService.php
application/index/service/UserService.php
+7
-3
No files found.
application/index/controller/ImageDepot.php
View file @
db15c837
...
@@ -190,11 +190,9 @@ class ImageDepot extends Basic
...
@@ -190,11 +190,9 @@ class ImageDepot extends Basic
// dump($is_report);
// dump($is_report);
// big_log('cehsi');
// big_log('cehsi');
$service
=
new
HouseService
();
$user_service
=
new
UserService
();
$house_id
=
148
;
$data
[
'is_can_look'
]
=
$user_service
->
isUserAgentDirector
(
55
,
51
);
dump
(
$data
);
$result
=
$service
->
getHouseVideoList
(
$house_id
);
dump
(
$result
);
...
...
application/index/service/UserService.php
View file @
db15c837
...
@@ -495,6 +495,7 @@ class UserService
...
@@ -495,6 +495,7 @@ class UserService
$params_
[
"id"
]
=
$user_agent_id
;
$params_
[
"id"
]
=
$user_agent_id
;
$result
=
$agent_model
->
searchAgentsByKeyword
(
"id,store_id,district_id,level"
,
$params_
);
$result
=
$agent_model
->
searchAgentsByKeyword
(
"id,store_id,district_id,level"
,
$params_
);
if
(
!
$result
){
if
(
!
$result
){
return
1
;
return
1
;
}
}
...
@@ -502,9 +503,12 @@ class UserService
...
@@ -502,9 +503,12 @@ class UserService
$params__
[
'district_id'
]
=
$result
[
0
][
'district_id'
];
$params__
[
'district_id'
]
=
$result
[
0
][
'district_id'
];
$params__
[
'level'
]
=
30
;
$params__
[
'level'
]
=
30
;
$result
=
$agent_model
->
searchAgentsByKeyword
(
"id,store_id,district_id,level"
,
$params__
);
$result
=
$agent_model
->
searchAgentsByKeyword
(
"id,store_id,district_id,level"
,
$params__
);
if
(
isset
(
$result
[
0
][
'district_id'
])){
if
(
$result
[
0
][
'district_id'
]
==
$agent_id
)
{
if
(
$result
[
0
][
'district_id'
]
==
$agent_id
)
{
return
0
;
//可查看
return
0
;
//可查看
}
else
{
return
1
;
//不可查看
}
}
else
{
}
else
{
return
1
;
//不可查看
return
1
;
//不可查看
}
}
...
...
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