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
dd71bf6a
Commit
dd71bf6a
authored
Mar 05, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
通话记录搜索条件
parent
ee500d76
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
CellPhone.php
application/index/controller/CellPhone.php
+3
-3
SecretReport.php
application/model/SecretReport.php
+3
-2
No files found.
application/index/controller/CellPhone.php
View file @
dd71bf6a
...
...
@@ -168,7 +168,7 @@ class CellPhone extends Basic
$pageSize
=
empty
(
$this
->
params
[
'pageSize'
])
?
10
:
$this
->
params
[
'pageSize'
];
$report
=
new
SecretReport
();
$field
=
'agents_id,users_id,release_time,start_time,call_type,call_time,time,voice_file
,create_time
'
;
$field
=
'agents_id,users_id,release_time,start_time,call_type,call_time,time,voice_file'
;
$where
=
[];
if
(
$this
->
params
[
'start_time'
])
{
...
...
@@ -184,11 +184,11 @@ class CellPhone extends Basic
}
if
(
$this
->
params
[
'call_phone'
])
{
$where
[
'phone_
a'
]
=
[
$this
->
params
[
'call_phone'
]
];
$where
[
'phone_
no'
]
=
[
'LIKE'
,
$this
->
params
[
'call_phone'
]
.
'%'
];
}
if
(
$this
->
params
[
'client_phone'
])
{
$where
[
'p
hone_b'
]
=
[
$this
->
params
[
'client_phone'
]
];
$where
[
'p
eer_no'
]
=
[
'LIKE'
,
$this
->
params
[
'client_phone'
]
.
'%'
];
}
if
(
$this
->
params
[
'client_name'
])
{
...
...
application/model/SecretReport.php
View file @
dd71bf6a
...
...
@@ -2,6 +2,7 @@
namespace
app\model
;
use
Symfony\Component\Yaml\Tests\DumperTest
;
use
think\Db
;
use
think\Model
;
...
...
@@ -26,7 +27,7 @@ class SecretReport extends Model
public
function
getCallList
(
$pageNo
=
1
,
$pageSize
=
15
,
$order_
=
'id desc'
,
$field
=
''
,
$params
=
''
)
{
if
(
$params
[
'realName'
]
||
$params
[
'user_nick'
])
{
$field
.=
',a.id'
;
$field
.=
',a.id
,a.create_time
'
;
$data
=
$this
->
field
(
$field
)
->
alias
(
'a'
)
->
join
(
'agents b'
,
'a.agents_id=b.id'
,
'left'
)
->
join
(
'u_users c'
,
'a.users_id=c.id'
,
'left'
)
->
where
(
$params
)
...
...
@@ -35,7 +36,7 @@ class SecretReport extends Model
->
page
(
$pageNo
)
->
select
();
}
else
{
$field
.=
',id'
;
$field
.=
',id
,create_time
'
;
$data
=
$this
->
field
(
$field
)
->
where
(
$params
)
->
order
(
$order_
)
...
...
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