Commit 8eb5589a authored by hujun's avatar hujun

通过记录时间搜索

parent caff8dee
......@@ -156,11 +156,15 @@ class CellPhone extends Basic
$where = [];
if (!empty($this->params['start_date'])) {
$where['create_time'] = ['> time', $this->params['start_date']];
$where['a.call_time'] = ['> time', $this->params['start_date'] . ' 00:00:00'];
}
if (!empty($this->params['end_date'])) {
$where['create_time'] = ['< time', $this->params['end_date']];
$where['a.call_time'] = ['< time', $this->params['end_date']. ' 23:59:59'];
}
if (!empty($this->params['start_date']) && !empty($this->params['end_date'])) {
$where['a.call_time'] = ['between', [$this->params['start_date'] . ' 00:00:00',$this->params['end_date'] . ' 23:59:59']];
}
if (!empty($this->params['call_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