浏览代码

项目管理修改 查询

ajun 4 年之前
父节点
当前提交
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 ($column == 'customers'){
                 if (is_array($param))$builder->whereIn('customer_id',$param);
                 if (is_array($param))$builder->whereIn('customer_id',$param);
                 else $builder->where('customer_id',$param);
                 else $builder->where('customer_id',$param);
+                continue;
             }
             }
             if ($column == 'ids'){
             if ($column == 'ids'){
                 if (is_array($param))$builder->whereIn('id',$param);
                 if (is_array($param))$builder->whereIn('id',$param);
                 else $builder->where('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);
             if (is_array($param))$builder->whereIn($column,$param);