Commit 520f7511 authored by hujun's avatar hujun

统计时间

parent 68311121
......@@ -221,7 +221,7 @@ class CellPhone extends Basic
$pageNo = empty($this->params['pageNo']) ? 1 : $this->params['pageNo'];
$pageSize = empty($this->params['pageSize']) ? 10 : $this->params['pageSize'];
$field = 'id,time,name,money,phone';
$field = 'id,time,name,money,phone,total_time';
$where['time'] = ['>', 0];
if (!empty($this->params['start_date']) && empty($this->params['end_date'])) {
......
......@@ -32,6 +32,7 @@
</td>
</tr>
<tr>
<th class="text-center">统计时间</th>
<th class="text-center">姓名</th>
<th class="text-center">手机号</th>
<th class="text-center">通话时长(分钟)</th>
......
......@@ -2,6 +2,7 @@
[% if(it[0]) { %]
[% for(var item in it){ %]
<tr class="text-center">
<td>[%= it[item]['total_time'] %]</td>
<td>[%= it[item]['name'] %]</td>
<td>[%= it[item]['phone'] %]</td>
<td>[%= Math.round(it[item]['time']/60) %]</td>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment