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
2affb6c4
Commit
2affb6c4
authored
Feb 09, 2018
by
zfc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
经纪人查询条件添加
parent
d7b7f0a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
Agent.php
application/index/controller/Agent.php
+14
-3
No files found.
application/index/controller/Agent.php
View file @
2affb6c4
...
@@ -76,12 +76,23 @@ class Agent extends Basic
...
@@ -76,12 +76,23 @@ class Agent extends Basic
$data
[
'search'
]
=
$search
;
$data
[
'search'
]
=
$search
;
}
}
$field
=
"a.id,a.store_id,a.district_id,a.`level`,a.`name`,a.phone,a.sex,a.img,a.`status`,a.inviter_id,a.create_time,
if
(
!
empty
(
$params
[
'groupname'
])){
ifnull(s.store_name,'')store_name,ifnull(d.district_name,'')district_name"
;
$where
.=
" and g.title like '%
{
$params
[
'groupname'
]
}
%' "
;
$data
[
'groupname'
]
=
$params
[
'groupname'
];
}
if
(
!
empty
(
$params
[
'store_name'
])){
$where
.=
" and s.store_name like '%
{
$params
[
'store_name'
]
}
%' "
;
$data
[
'store_name'
]
=
$params
[
'store_name'
];
}
$field
=
"a.id,a.store_id,a.district_id,a.`level`,a.`name`,a.phone,a.`status`,a.inviter_id,a.create_time,
ifnull(s.store_name,'')store_name,ifnull(d.district_name,'')district_name,ifnull(g.title,'无')groupname"
;
$order
=
'a.id asc'
;
$order
=
'a.id asc'
;
$join
=
[
$join
=
[
[
'a_store s'
,
' a.store_id=s.id'
,
'left'
],
[
'a_store s'
,
' a.store_id=s.id'
,
'left'
],
[
'a_district d'
,
'a.district_id=d.id'
,
'left'
]
[
'a_district d'
,
'a.district_id=d.id'
,
'left'
],
[
'auth_group g'
,
'a.auth_group_id=g.id'
,
'left'
]
];
];
$data
[
'list'
]
=
$table
->
getListJoin
(
$pageNo
,
$pageSize
,
$order
,
$field
,
$join
,
$where
);
$data
[
'list'
]
=
$table
->
getListJoin
(
$pageNo
,
$pageSize
,
$order
,
$field
,
$join
,
$where
);
$data
[
'total'
]
=
$table
->
getTotal2
(
$where
);
$data
[
'total'
]
=
$table
->
getTotal2
(
$where
);
...
...
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