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
eda299fc
Commit
eda299fc
authored
Mar 05, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
通话记录修改
parent
d24049dc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
25 deletions
+34
-25
CellPhone.php
application/index/controller/CellPhone.php
+1
-1
navigation.html
application/index/view/global/navigation.html
+6
-6
SecretReport.php
application/model/SecretReport.php
+27
-18
No files found.
application/index/controller/CellPhone.php
View file @
eda299fc
...
...
@@ -215,7 +215,7 @@ class CellPhone extends Basic
$pageSize
=
empty
(
$this
->
params
[
'pageSize'
])
?
10
:
$this
->
params
[
'pageSize'
];
$report
=
new
SecretReport
();
$field
=
'a.id,b.phone,sum(time) as time,agents_id,call_type'
;
$field
=
'a.id,b.phone,sum(time) as time,agents_id,call_type
,release_time,start_time
'
;
$where
=
[];
if
(
$this
->
params
[
'start_time'
])
{
...
...
application/index/view/global/navigation.html
View file @
eda299fc
...
...
@@ -70,18 +70,18 @@
<li
role=
"presentation"
>
<a
href=
"/admin.php/index/BusinessDistrict.html"
>
商圈列表
</a>
</li>
<li
role=
"presentation"
>
<!--
<li role="presentation">
<a href="/admin.php/index/CellPhoneIndex.html">总记录列表</a>
</li>
</li>
-->
<li
role=
"presentation"
>
<a
href=
"/admin.php/index/CellPhoneAgentIndex.html"
>
经纪人通话列表
</a>
</li>
<li
role=
"presentation"
>
<!--
<li role="presentation">
<a href="/admin.php/index/phoneList.html">号码池列表</a>
</li>
<li
role=
"presentation"
>
</li>
-->
<!--
<li role="presentation">
<a href="/admin.php/index/bindPhoneListIndex.html">号码绑定列表</a>
</li>
</li>
-->
<li
role=
"presentation"
>
<a
href=
"/admin.php/index/CellPhoneIndex.html"
>
通话记录
</a>
</li>
...
...
application/model/SecretReport.php
View file @
eda299fc
...
...
@@ -75,17 +75,21 @@ class SecretReport extends Model
$result
[
$k
][
'time'
]
=
$v
->
time
;
//主叫收费
if
(
$v
->
call_type
==
0
)
{
if
(
$v
->
time
<=
60
)
{
$time
=
1
;
//不足一分钟按一分钟
}
else
{
$remainder
=
$v
->
time
%
60
;
$time
=
0
;
if
(
$remainder
!=
0
)
{
$time
+=
1
;
if
(
strtotime
(
$v
->
release_time
)
-
strtotime
(
$v
->
start_time
)
>
0
)
{
if
(
$v
->
time
<=
60
)
{
$time
=
1
;
//不足一分钟按一分钟
}
else
{
$remainder
=
$v
->
time
%
60
;
$time
=
0
;
if
(
$remainder
!=
0
)
{
$time
+=
1
;
}
$time
+=
floor
(
$v
->
time
/
60
);
}
$time
+=
floor
(
$v
->
time
/
60
);
$result
[
$k
][
'price'
]
=
$time
*
0.06
+
$time
*
0.05
;
//通话 0.06元/分,录音 0.05元/分
}
else
{
$result
[
$k
][
'price'
]
=
0
;
}
$result
[
$k
][
'price'
]
=
$time
*
0.06
+
$time
*
0.05
;
//通话 0.06元/分,录音 0.05元/分
}
}
...
...
@@ -151,17 +155,22 @@ class SecretReport extends Model
$result
[
$k
][
'time'
]
=
$v
->
time
;
//主叫收费
if
(
$v
->
call_type
==
0
)
{
if
(
$v
->
time
<=
60
)
{
$time
=
1
;
//不足一分钟按一分钟
}
else
{
$remainder
=
$v
->
time
%
60
;
$time
=
0
;
if
(
$remainder
!=
0
)
{
$time
+=
1
;
if
(
strtotime
(
$v
->
release_time
)
-
strtotime
(
$v
->
start_time
)
>
0
)
{
if
(
$v
->
time
<=
60
)
{
$time
=
1
;
//不足一分钟按一分钟
}
else
{
$remainder
=
$v
->
time
%
60
;
$time
=
0
;
if
(
$remainder
!=
0
)
{
$time
+=
1
;
}
$time
+=
floor
(
$v
->
time
/
60
);
}
$time
+=
floor
(
$v
->
time
/
60
);
$result
[
$k
][
'price'
]
=
$time
*
0.06
+
$time
*
0.05
;
//通话 0.06元/分,录音 0.05元/分
}
else
{
$result
[
$k
][
'price'
]
=
0
;
}
$result
[
$k
][
'price'
]
=
$time
*
0.06
+
$time
*
0.05
;
//通话 0.06元/分,录音 0.05元/分
}
}
...
...
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