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
f4e67f95
Commit
f4e67f95
authored
Feb 02, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
总监列表搜索
parent
9e6ad70c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
8 deletions
+6
-8
Broker.php
application/index/controller/Broker.php
+5
-8
AAgents.php
application/model/AAgents.php
+1
-0
No files found.
application/index/controller/Broker.php
View file @
f4e67f95
...
...
@@ -184,17 +184,14 @@ class Broker extends Basic
$data
[
'msg'
]
=
''
;
$pageNo
=
empty
(
$this
->
params
[
'pageNo'
])
?
1
:
$this
->
params
[
'pageNo'
];
$pageSize
=
empty
(
$this
->
params
[
'pageSize'
])
?
10
:
$this
->
params
[
'pageSize'
];
$search
=
$this
->
params
[
'search'
];
$agents
=
new
AAgents
();
$field
=
'id,name,create_time,phone,district_id'
;
$where
[
'level'
]
=
40
;
$where
[
'status'
]
=
0
;
$where
=
''
;
$where
.=
'level=40 AND status=0'
;
if
(
isset
(
$this
->
params
[
'name'
]))
{
$where
[
'name'
]
=
[
'LIKE'
,
$this
->
params
[
'name'
]
.
'%'
];
}
if
(
isset
(
$this
->
params
[
'phone'
]))
{
$where
[
'phone'
]
=
[
'LIKE'
,
$this
->
params
[
'phone'
]
.
'%'
];
if
(
$search
!=
NULL
)
{
$where
.=
" AND (phone like '
{
$search
}
%' or name like '
{
$search
}
%')"
;
}
$data
[
'list'
]
=
$agents
->
getListDistrict
(
$pageNo
,
$pageSize
,
'id DESC'
,
$field
,
$where
);
...
...
application/model/AAgents.php
View file @
f4e67f95
...
...
@@ -142,6 +142,7 @@ public function saveList(){
$district_where
[
'status'
]
=
0
;
$store_where
[
'status'
]
=
0
;
$result
=
array
();
foreach
(
$data
as
$k
=>
$v
){
$result
[
$k
]
=
$v
;
if
(
isset
(
$v
->
district_id
))
{
...
...
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