Commit a664be67 by LiuJunYi

报错BUG

parent 6c734d81
......@@ -45,12 +45,12 @@ class Order extends AuthBase
$condition['type'] = $type;
}
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'];
}
}
if (input('get.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