|
|
@@ -96,6 +96,19 @@ class OrderService extends BaseService
|
|
|
});
|
|
|
}
|
|
|
|
|
|
+ // 时间
|
|
|
+ if (isset($params['date']) && $params['date']) {
|
|
|
+ $date = $params['date'];
|
|
|
+ $start = $date[0] ?? '';
|
|
|
+ $end = $date[1] ?? '';
|
|
|
+ if ($start) {
|
|
|
+ $query->where('a.create_time', '>=', strtotime($start));
|
|
|
+ }
|
|
|
+ if ($end && $start < $end) {
|
|
|
+ $query->where('a.create_time', '<=', strtotime($end));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
// 关键词搜索(订单号、商品名称、收货人手机)
|
|
|
if (isset($params['keyword']) && $params['keyword']) {
|
|
|
$keyword = $params['keyword'];
|