Commit af77a6d8 authored by hujun's avatar hujun

time

parent 0361bd5c
......@@ -564,7 +564,7 @@ class CallPhoneService
$start_time = $end_time - 3600;
$save_follow['content'] = '拨打电话,未打跟进。';
$follow_where['call_time'] = $bind_where['create_time'] = [
$follow_where['create_time'] = $bind_where['call_time'] = [
'between', [date('Y-m-d H:i:s', $start_time), date('Y-m-d H:i:s',$end_time)]
];
$bind_where['time'] = ['>', 0];
......
......@@ -63,10 +63,10 @@ class AliYunSecretReport extends BaseModel
}
if (!empty($start_date) && !empty($end_date)) {
$where['create_time'] = ['between time', $start_date. ' 00:00:00', $end_date . ' 23:59:59'];
$where['call_time'] = ['between time', $start_date. ' 00:00:00', $end_date . ' 23:59:59'];
} else {
$date = date('Y-m-d');
$where['create_time'] = ['between time', [$date. ' 00:00:00', $date . ' 23:59:59']];
$where['call_time'] = ['between time', [$date. ' 00:00:00', $date . ' 23:59:59']];
}
$where['time'] = ['>', 0];
......
......@@ -176,8 +176,14 @@ class PrivacyNumber
$where['record_down'] = 1;
}
$fields = 'id,call_id,call_time,voice_file,type,record_down,mp3_url';
if (empty($param['date'])) {
$date = date('Y-m-d');
} else {
$date = date('Y-m-d', strtotime($param['date']));
}
$where['call_time'] = ['BETWEEN', [$date . ' 00:00:00',$date .' 23:59:59']];
$fields = 'id,call_id,call_time,voice_file,type,record_down,mp3_url';
$where['time'] = [ '>', 0 ];
$where['type'] = [ '>', 0 ];
$down_data = $this->m_secret_report->secretReportAll($fields, $where);
......
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