Commit c8e2cf81 authored by hujun's avatar hujun

通话记录开始和结束时间字段修改

parent 66ce6fc2
......@@ -171,12 +171,12 @@ class CellPhone extends Basic
$field = 'agents_id,users_id,call_type,call_time,time,voice_file';
$where = [];
if (!empty($this->params['start_time'])) {
$where['create_time'] = ['> time', $this->params['start_time']];
if (!empty($this->params['start_date'])) {
$where['create_time'] = ['> time', $this->params['start_date']];
}
if (!empty($this->params['end_time'])) {
$where['create_time'] = ['< time', $this->params['end_time']];
if (!empty($this->params['end_date'])) {
$where['create_time'] = ['< time', $this->params['end_date']];
}
if (!empty($this->params['call_name'])) {
......@@ -218,12 +218,12 @@ 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_time'])) {
$where['create_time'] = ['> time', $this->params['start_time']];
if (!empty($this->params['start_date'])) {
$where['create_time'] = ['> time', $this->params['start_date']];
}
if (!empty($this->params['end_time'])) {
$where['create_time'] = ['< time', $this->params['end_time']];
if (!empty($this->params['end_date'])) {
$where['create_time'] = ['< time', $this->params['end_date']];
}
if (!empty($this->params['agents_name'])) {
......
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