ajun 4 лет назад
Родитель
Сommit
cef09c2af0
1 измененных файлов с 7 добавлено и 0 удалено
  1. 7 0
      app/Services/OwnerService.php

+ 7 - 0
app/Services/OwnerService.php

@@ -255,10 +255,17 @@ class OwnerService
             if ($column == 'customers'){
                 if (is_array($param))$builder->whereIn('customer_id',$param);
                 else $builder->where('customer_id',$param);
+                continue;
             }
             if ($column == 'ids'){
                 if (is_array($param))$builder->whereIn('id',$param);
                 else $builder->where('id',$param);
+                continue;
+            }
+            if ($column == 'owners'){
+                if (is_array($param))$builder->whereIn('owner_id',$param);
+                else $builder->where('owner_id',$param);
+                continue;
             }
 
             if (is_array($param))$builder->whereIn($column,$param);