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
1f8fb406
Commit
1f8fb406
authored
Aug 17, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户列表搜索去除跟进内容搜索
parent
9ef73aa7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
26 deletions
+20
-26
Member.php
application/index/controller/Member.php
+17
-21
Users.php
application/model/Users.php
+3
-5
No files found.
application/index/controller/Member.php
View file @
1f8fb406
...
@@ -106,23 +106,23 @@ class Member extends Basic{
...
@@ -106,23 +106,23 @@ class Member extends Basic{
}
}
}
}
//跟进结束时间
//
//跟进结束时间
if
(
!
empty
(
$params
[
'follow_start'
])
&&
empty
(
$params
[
'follow_end'
]))
{
//
if (!empty($params['follow_start']) && empty($params['follow_end'])) {
$where
[
'b.create_time'
]
=
[
'> time'
,
$params
[
'follow_start'
]
.
' 00:00:00'
];
//
$where['b.create_time'] = ['> time',$params['follow_start']. ' 00:00:00'];
$type
=
2
;
//
$type = 2;
}
//
}
//跟进时间
//
//跟进时间
if
(
!
empty
(
$params
[
'follow_end'
])
&&
empty
(
$params
[
'follow_start'
]))
{
//
if (!empty($params['follow_end']) && empty($params['follow_start'])) {
$where
[
'b.create_time'
]
=
[
'< time'
,
$params
[
'follow_end'
]
.
' 23:59:59'
];
//
$where['b.create_time'] = ['< time',$params['follow_end']. ' 23:59:59'];
$type
=
2
;
//
$type = 2;
}
//
}
//
//跟进时间
//
//跟进时间
if
(
!
empty
(
$params
[
'follow_start'
])
&&
!
empty
(
$params
[
'follow_end'
]))
{
//
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'
]];
//
$where['b.create_time'] = ['between time', [$params['follow_start']. ' 00:00:00', $params['follow_end'] . ' 23:59:59']];
$type
=
2
;
//
$type = 2;
}
//
}
//客户编号
//客户编号
if
(
!
empty
(
$params
[
'id'
]))
{
if
(
!
empty
(
$params
[
'id'
]))
{
...
@@ -157,7 +157,6 @@ class Member extends Basic{
...
@@ -157,7 +157,6 @@ class Member extends Basic{
//注册时间
//注册时间
if
(
!
empty
(
$params
[
'registration_start'
])
&&
!
empty
(
$params
[
'registration_end'
]))
{
if
(
!
empty
(
$params
[
'registration_start'
])
&&
!
empty
(
$params
[
'registration_end'
]))
{
$where
[
'a.registration_time'
]
=
[
'between time'
,
[
$params
[
'registration_start'
]
.
' 00:00:00'
,
$params
[
'registration_end'
]
.
' 23:59:59'
]];
$where
[
'a.registration_time'
]
=
[
'between time'
,
[
$params
[
'registration_start'
]
.
' 00:00:00'
,
$params
[
'registration_end'
]
.
' 23:59:59'
]];
$type
=
2
;
}
}
//业态
//业态
...
@@ -307,9 +306,6 @@ class Member extends Basic{
...
@@ -307,9 +306,6 @@ class Member extends Basic{
if
(
$is_show
)
{
if
(
$is_show
)
{
array_push
(
$list
,
$data_list
[
$k
]);
array_push
(
$list
,
$data_list
[
$k
]);
}
}
}
}
$data
[
'list'
]
=
$list
;
$data
[
'list'
]
=
$list
;
$data
[
'total'
]
=
$this
->
user
->
getUserAgentTotal
(
$where
,
$type
);
$data
[
'total'
]
=
$this
->
user
->
getUserAgentTotal
(
$where
,
$type
);
...
...
application/model/Users.php
View file @
1f8fb406
...
@@ -161,9 +161,6 @@ class Users extends Model
...
@@ -161,9 +161,6 @@ class Users extends Model
* @param $params
* @param $params
* @param int $type
* @param int $type
* @return int|string
* @return int|string
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
*/
public
function
getUserAgentTotal
(
$params
,
$type
=
0
)
public
function
getUserAgentTotal
(
$params
,
$type
=
0
)
{
{
...
@@ -171,12 +168,13 @@ class Users extends Model
...
@@ -171,12 +168,13 @@ class Users extends Model
$result
=
$this
->
alias
(
'a'
)
$result
=
$this
->
alias
(
'a'
)
->
where
(
$params
)
->
where
(
$params
)
->
count
();
->
count
();
}
elseif
(
$type
==
2
)
{
}
/*
elseif ($type == 2) {
$result = $this->alias('a')
$result = $this->alias('a')
->join('u_phone_follow_up b', 'a.id = b.user_id', 'left')
->join('u_phone_follow_up b', 'a.id = b.user_id', 'left')
->where($params)
->where($params)
->count();
->count();
}
elseif
(
$type
==
3
)
{
} */
elseif
(
$type
==
3
)
{
$result
=
$this
->
alias
(
'a'
)
$result
=
$this
->
alias
(
'a'
)
->
join
(
'a_agents b'
,
'a.agent_id = b.id'
,
'left'
)
->
join
(
'a_agents b'
,
'a.agent_id = b.id'
,
'left'
)
->
where
(
$params
)
->
where
(
$params
)
...
...
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