Commit 3e23c6c2 authored by hujun's avatar hujun

收佣日期

parent 6987e88f
......@@ -47,6 +47,20 @@ class Collection extends Basic
]];
}
if (!empty($this->params['income_start_time']) && empty($this->params['income_end_time'])) {
$where['a.create_time'] = ['> time',$this->params['income_start_time'] . ' 00:00:00'];
}
if (!empty($this->params['income_end_time']) && empty($this->params['income_start_time'])) {
$where['a.create_time'] = ['< time',$this->params['end_time'] . ' 23:59:59'];
}
if (!empty($this->params['income_end_time']) && !empty($this->params['income_start_time'])) {
$where['a.create_time'] = ['between time', [
$this->params['income_start_time']. ' 00:00:00',$this->params['income_end_time']. ' 23:59:59'
]];
}
if (!empty($this->params['internal_title'])) {
$where['d.internal_title'] = ['like', '%'.$this->params['internal_title'].'%'];
}
......
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