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
7cce8e3b
Commit
7cce8e3b
authored
Jul 19, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户列表搜索
parent
957955cb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
3 deletions
+1
-3
Member.php
application/index/controller/Member.php
+1
-1
Users.php
application/model/Users.php
+0
-2
No files found.
application/index/controller/Member.php
View file @
7cce8e3b
...
@@ -66,7 +66,7 @@ class Member extends Basic{
...
@@ -66,7 +66,7 @@ class Member extends Basic{
if
(
!
empty
(
$params
[
'user_nick'
]))
{
if
(
!
empty
(
$params
[
'user_nick'
]))
{
//$where[0] = ['EXP','a.user_phone LIKE "%'.$this->params['phone'].'%" or a.user_nick LIKE "%'.$this->params['phone'].'%"'];
//$where[0] = ['EXP','a.user_phone LIKE "%'.$this->params['phone'].'%" or a.user_nick LIKE "%'.$this->params['phone'].'%"'];
$where
[
'a.user_n
ick
'
]
=
[
'LIKE'
,
'%'
.
$params
[
'user_nick'
]
.
'%'
];
$where
[
'a.user_n
ame
'
]
=
[
'LIKE'
,
'%'
.
$params
[
'user_nick'
]
.
'%'
];
}
}
//是否公客
//是否公客
...
...
application/model/Users.php
View file @
7cce8e3b
...
@@ -168,10 +168,8 @@ class Users extends Model
...
@@ -168,10 +168,8 @@ class Users extends Model
public
function
getUserAgentTotal
(
$params
,
$type
=
0
)
public
function
getUserAgentTotal
(
$params
,
$type
=
0
)
{
{
if
(
$type
==
1
)
{
if
(
$type
==
1
)
{
$id
=
$this
->
field
(
'id'
)
->
where
(
'user_phone'
,
'LIKE'
,
$params
[
'user_phone'
][
'1'
]
.
'%'
)
->
find
();
$result
=
$this
->
alias
(
'a'
)
$result
=
$this
->
alias
(
'a'
)
->
where
(
$params
)
->
where
(
$params
)
->
where
(
'referrer_id'
,
'='
,
$id
->
id
)
->
count
();
->
count
();
}
elseif
(
$type
==
2
)
{
}
elseif
(
$type
==
2
)
{
$result
=
$this
->
alias
(
'a'
)
$result
=
$this
->
alias
(
'a'
)
...
...
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