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
164f1df0
Commit
164f1df0
authored
Oct 16, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
业务员不允许点击查看全部成交报告
parent
1fe9e235
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
Bargain.php
application/api_broker/controller/Bargain.php
+16
-0
No files found.
application/api_broker/controller/Bargain.php
View file @
164f1df0
...
...
@@ -4,6 +4,7 @@ namespace app\api_broker\controller;
use
app\api_broker\extend\Basic
;
use
app\api_broker\service\BargainService
;
use
app\model\AAgents
;
use
think\Request
;
/**
...
...
@@ -16,11 +17,15 @@ use think\Request;
class
Bargain
extends
Basic
{
private
$service_
;
private
$agentModel
;
public
function
__construct
(
$request
=
null
)
{
parent
::
__construct
(
$request
);
$this
->
service_
=
new
BargainService
();
$this
->
agentModel
=
new
AAgents
();
}
public
function
bargainList
()
...
...
@@ -45,6 +50,17 @@ class Bargain extends Basic
$status
=
$params
[
"status"
];
$is_my_correlation
=
$params
[
"is_my_correlation"
];
$keyword
=
empty
(
$params
[
"keyword"
])
?
""
:
$params
[
"keyword"
];
/*业务员不允许点击查看全部成交报告 start*/
$agent_field
=
"a.level"
;
$agent_res
=
$this
->
agentModel
->
getAgentsInfoByAgentId
(
$agent_field
,
[
"agent_id"
=>
$submit_agent_id
]);
if
((
$agent_res
[
0
][
'level'
]
==
10
)
&&
(
$is_my_correlation
==
0
)){
return
$this
->
response
(
"200"
,
"暂无权限!"
);
}
/*业务员不允许点击查看全部成交报告 end*/
if
(
$is_my_correlation
==
0
)
{
//返回空
return
$this
->
response
(
"200"
,
"success"
);
}
...
...
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