瀏覽代碼

修改上线

cqp 1 月之前
父節點
當前提交
90e6eb9446
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7 0
      app/Service/PurchaseOrderSpecialService.php

+ 7 - 0
app/Service/PurchaseOrderSpecialService.php

@@ -258,6 +258,13 @@ class PurchaseOrderSpecialService extends Service
                 ->select('id')->get()->toArray();
             $model->whereIn('supplier',array_column($id,'id'));
         }
+        if(! empty($data['supplier_man'])) {
+            $id = Depart::where('del_time',0)
+                ->where('parent_id',0)
+                ->where('title', 'LIKE', '%'.$data['supplier_man'].'%')
+                ->select('id')->get()->toArray();
+            $model->whereIn('supplier',array_column($id,'id'));
+        }
 
         return $model;
     }