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
8dc30fb7
Commit
8dc30fb7
authored
Sep 30, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
通话汇总修改搜索条件
parent
12f5f767
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
CellPhone.php
application/index/controller/CellPhone.php
+8
-4
agentIndex_template_tpl.html
public/resource/template/agentIndex_template_tpl.html
+1
-1
No files found.
application/index/controller/CellPhone.php
View file @
8dc30fb7
...
...
@@ -112,12 +112,16 @@ class CellPhone extends Basic
$field
=
'a.id,b.phone,sum(time) as time,agents_id,call_type,release_time,start_time'
;
$where
=
[];
if
(
!
empty
(
$this
->
params
[
'start_date'
]))
{
$where
[
'create_time'
]
=
[
'> time'
,
$this
->
params
[
'start_date'
]
];
if
(
!
empty
(
$this
->
params
[
'start_date'
])
&&
empty
(
$this
->
params
[
'end_date'
])
)
{
$where
[
'
a.
create_time'
]
=
[
'> time'
,
$this
->
params
[
'start_date'
]
];
}
if
(
!
empty
(
$this
->
params
[
'end_date'
]))
{
$where
[
'create_time'
]
=
[
'< time'
,
$this
->
params
[
'end_date'
]
];
if
(
!
empty
(
$this
->
params
[
'end_date'
])
&&
empty
(
$this
->
params
[
'start_date'
]))
{
$where
[
'a.create_time'
]
=
[
'< time'
,
$this
->
params
[
'end_date'
]
];
}
if
(
!
empty
(
$this
->
params
[
'end_date'
])
&&
!
empty
(
$this
->
params
[
'start_date'
]))
{
$where
[
'a.create_time'
]
=
[
'between'
,
[
$this
->
params
[
'start_date'
],
$this
->
params
[
'end_date'
]]];
}
if
(
!
empty
(
$this
->
params
[
'agents_name'
]))
{
...
...
public/resource/template/agentIndex_template_tpl.html
View file @
8dc30fb7
<script
id=
"agentIndex_list_tpl"
type=
"text/template"
>
[
%
if
(
it
)
{
%
]
[
%
if
(
it
[
0
]
)
{
%
]
[
%
for
(
var
item
in
it
){
%
]
<
tr
class
=
"text-center"
>
<
td
>
[
%=
it
[
item
][
'agents_name'
]
%
]
<
/td
>
...
...
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