wesmiler 4 месяцев назад
Родитель
Сommit
9a114426d1
1 измененных файлов с 5 добавлено и 1 удалено
  1. 5 1
      app/Services/Api/OrderService.php

+ 5 - 1
app/Services/Api/OrderService.php

@@ -68,8 +68,12 @@ class OrderService extends BaseService
         $list = $model->where(function ($query) use ($params) {
             $status = isset($params['status']) ? $params['status'] : 0;
             // 进行中
-            if ($status > 0 && is_array($status)) {
+            if ($status == 9) {
+                $query->where('a.refund_status', '>', 0);
+            }elseif ($status > 0 && is_array($status)) {
                 $query->whereIn('a.status', $status);
+            } else if ($status == 4) {
+                $query->where('a.status', $status)->where('a.refund_status', 0);
             } else if ($status > 0) {
                 $query->where('a.status', $status);
             }