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
8a94d02a
Commit
8a94d02a
authored
Feb 12, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
经纪人列表
parent
b9a83daa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
17 deletions
+7
-17
Broker.php
application/index/controller/Broker.php
+7
-17
No files found.
application/index/controller/Broker.php
View file @
8a94d02a
...
...
@@ -102,30 +102,20 @@ class Broker extends Basic
$data
[
'msg'
]
=
''
;
$pageNo
=
empty
(
$this
->
params
[
'pageNo'
])
?
1
:
$this
->
params
[
'pageNo'
];
$pageSize
=
empty
(
$this
->
params
[
'pageSize'
])
?
10
:
$this
->
params
[
'pageSize'
];
$where
=
'status <> 2'
;
if
(
$this
->
params
[
'phone'
])
{
$where
=
' AND (phone like "'
.
$this
->
params
[
'phone'
]
.
'%" or name like "'
.
$this
->
params
[
'phone'
]
.
'%")'
;
}
if
(
$this
->
params
[
'level'
])
{
$where
.=
' AND level in ('
.
$this
->
params
[
'level'
]
.
')'
;
}
$pageSize
=
empty
(
$this
->
params
[
'pageSize'
])
?
100
:
$this
->
params
[
'pageSize'
];
$where
[
'status'
]
=
[
'<>'
,
2
];
$where
[
'level'
]
=
10
;
$where
[
'store_id'
]
=
$this
->
params
[
'store_id'
];
if
(
$this
->
params
[
'store_id'
])
{
$where
.=
' AND store_id='
.
$this
->
params
[
'store_id'
];
}
if
(
$where
)
{
$agent
=
new
AAgents
();
$field
=
'id,name,phone,level,create_time'
;
$list
=
$agent
->
getList
(
$pageNo
,
$pageSize
,
'id DESC'
,
$field
,
$where
);
$total
=
$agent
->
getTotal
(
$where
);
$data
[
'data'
]
=
$agent
->
getList
(
$pageNo
,
$pageSize
,
'id DESC'
,
$field
,
$where
);
}
else
{
$data
[
'msg'
]
=
'
没有经纪人信息
'
;
$data
[
'msg'
]
=
'
store_id is null
'
;
}
return
$this
->
response
(
$data
[
'status'
],
$data
[
'msg'
],
[
'list'
=>
$list
,
'total'
=>
$total
]);
return
$this
->
response
(
$data
[
'status'
],
$data
[
'msg'
],
$data
[
'data'
]);
}
/**
...
...
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