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
20ef8d61
Commit
20ef8d61
authored
Apr 11, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
监督执行
parent
ce03be06
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
15 deletions
+3
-15
Supervise.php
application/api_broker/controller/Supervise.php
+3
-15
No files found.
application/api_broker/controller/Supervise.php
View file @
20ef8d61
...
...
@@ -154,27 +154,15 @@ class Supervise extends Basic
if
(
$this
->
params
[
'level'
])
{
$where
.=
' AND level in ('
.
$this
->
params
[
'level'
]
.
')'
;
}
else
{
$where
.=
' AND level in (20,30,40)'
;
}
if
(
$where
)
{
$agent
=
new
AAgents
();
$field
=
'a.id,a.
name,a.phone,a.level
,b.store_name,b.province,b.city,b.district,b.address,b.longitude,b.latitude,a.store_id'
;
$field
=
'a.id,a.
leader_name,a.leader_phone
,b.store_name,b.province,b.city,b.district,b.address,b.longitude,b.latitude,a.store_id'
;
$data
[
'data'
]
=
$agent
->
searchAgentShop
(
$pageNo
,
$pageSize
,
'id DESC'
,
$field
,
$where
);
foreach
(
$data
[
'data'
]
as
$k
=>
$v
)
{
switch
(
$v
[
'level'
])
{
case
10
:
$data
[
'data'
][
$k
][
'level_name'
]
=
'业务员'
;
break
;
case
20
:
$data
[
'data'
][
$k
][
'level_name'
]
=
'店长'
;
break
;
case
30
:
$data
[
'data'
][
$k
][
'level_name'
]
=
'总监'
;
break
;
case
40
:
$data
[
'data'
][
$k
][
'level_name'
]
=
'总监'
;
break
;
default
:
$data
[
'data'
][
$k
][
'level_name'
]
=
""
;
}
}
}
else
{
$data
[
'msg'
]
=
'没有经纪人信息'
;
}
...
...
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