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
6935e89f
Commit
6935e89f
authored
Aug 20, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户手机号和id去除时间
parent
b44f62ae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
31 deletions
+17
-31
Member.php
application/index/controller/Member.php
+17
-31
No files found.
application/index/controller/Member.php
View file @
6935e89f
...
@@ -62,13 +62,6 @@ class Member extends Basic{
...
@@ -62,13 +62,6 @@ class Member extends Basic{
$where
[
'a.status'
]
=
[
'<>'
,
1
];
$where
[
'a.status'
]
=
[
'<>'
,
1
];
}
}
//客户手机号
if
(
!
empty
(
$params
[
'phone'
]))
{
$if_search_user
=
true
;
//$where[0] = ['EXP','a.user_phone LIKE "%'.$this->params['phone'].'%" or a.user_nick LIKE "%'.$this->params['phone'].'%"'];
$where
[
'a.user_phone'
]
=
[
'LIKE'
,
'%'
.
$params
[
'phone'
]
.
'%'
];
}
if
(
!
empty
(
$params
[
'user_nick'
]))
{
if
(
!
empty
(
$params
[
'user_nick'
]))
{
$if_search_user
=
true
;
$if_search_user
=
true
;
//$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'].'%"'];
...
@@ -107,30 +100,6 @@ class Member extends Basic{
...
@@ -107,30 +100,6 @@ class Member extends Basic{
}
}
}
}
// //跟进结束时间
// if (!empty($params['follow_start']) && empty($params['follow_end'])) {
// $where['b.create_time'] = ['> time',$params['follow_start']. ' 00:00:00'];
// $type = 2;
// }
// //跟进时间
// if (!empty($params['follow_end']) && empty($params['follow_start'])) {
// $where['b.create_time'] = ['< time',$params['follow_end']. ' 23:59:59'];
// $type = 2;
// }
//
// //跟进时间
// if (!empty($params['follow_start']) && !empty($params['follow_end'])) {
// $where['b.create_time'] = ['between time', [$params['follow_start']. ' 00:00:00', $params['follow_end'] . ' 23:59:59']];
// $type = 2;
// }
//客户编号
if
(
!
empty
(
$params
[
'id'
]))
{
$if_search_user
=
true
;
$where
[
'a.id'
]
=
$params
[
'id'
];
}
//是否登录过
//是否登录过
if
(
!
empty
(
$params
[
'login_status'
])
&&
$params
[
'login_status'
]
!=
-
1
)
{
if
(
!
empty
(
$params
[
'login_status'
])
&&
$params
[
'login_status'
]
!=
-
1
)
{
if
(
$params
[
'login_status'
]
==
1
)
{
if
(
$params
[
'login_status'
]
==
1
)
{
...
@@ -274,6 +243,23 @@ class Member extends Basic{
...
@@ -274,6 +243,23 @@ class Member extends Basic{
$where
[
'a.disc'
]
=
$params
[
'disc'
];
$where
[
'a.disc'
]
=
$params
[
'disc'
];
}
}
//客户编号
if
(
!
empty
(
$params
[
'id'
]))
{
$if_search_user
=
true
;
$where
[
'a.id'
]
=
$params
[
'id'
];
unset
(
$where
[
'a.create_time'
]);
}
//客户手机号
if
(
!
empty
(
$params
[
'phone'
]))
{
$if_search_user
=
true
;
$where
[
'a.user_phone'
]
=
[
'LIKE'
,
'%'
.
$params
[
'phone'
]
.
'%'
];
if
(
strlen
(
$params
[
'phone'
])
==
11
)
{
unset
(
$where
[
'a.create_time'
]);
}
}
$fields
=
'a.id,a.user_nick,a.create_time,a.user_name,a.user_phone,a.user_pic,a.create_time,a.user_pswd,a.referrer_id,a.user_label,
$fields
=
'a.id,a.user_nick,a.create_time,a.user_name,a.user_phone,a.user_pic,a.create_time,a.user_pswd,a.referrer_id,a.user_label,
a.user_name,a.status,a.first_login_time,a.last_login_time,a.agent_id,a.vip,a.price_demand,a.industry_type,a.area_demand,a.user_status,a.source'
;
a.user_name,a.status,a.first_login_time,a.last_login_time,a.agent_id,a.vip,a.price_demand,a.industry_type,a.area_demand,a.user_status,a.source'
;
...
...
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