Commit 0acf368d by LiuJunYi

报错BUG

parent a664be67
......@@ -87,12 +87,12 @@ class Order extends AuthBase
$condition['title'] = ['like','%'.$title.'%'];
}
if ($start_time && $end_time) {
$condition['created_at'] = ['between', [$start_time . ' 00:00:00', $end_time . ' 00:00:00']];
$condition['mr_user_orders.created_at'] = ['between', [$start_time . ' 00:00:00', $end_time . ' 00:00:00']];
} else {
if ($start_time) {
$condition['created_at'] = ['>', $start_time . ' 00:00:00'];
$condition['mr_user_orders.created_at'] = ['>', $start_time . ' 00:00:00'];
} elseif ($end_time) {
$condition['created_at'] = ['<', $end_time . ' 00:00:00'];
$condition['mr_user_orders.created_at'] = ['<', $end_time . ' 00:00:00'];
}
}
$order_list = $this->order_model->hasWhere('userinfo',['phone'=>['like','%'.input('phone').'%']])->where($condition)->order('created_at desc')->select();
......
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