From a7e3d37ae5225b2cd305cb6286f1ee952677830f Mon Sep 17 00:00:00 2001 From: Jing Li Date: Sun, 6 Aug 2023 14:06:48 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E7=AD=9B=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/ModelFilters/DeviceFilter.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/ModelFilters/DeviceFilter.php b/app/ModelFilters/DeviceFilter.php index a72996b..f371a1a 100644 --- a/app/ModelFilters/DeviceFilter.php +++ b/app/ModelFilters/DeviceFilter.php @@ -26,6 +26,16 @@ class DeviceFilter extends ModelFilter return $this->where('status', $status); } + public function supplierKey($supplierKey) + { + return $this->where('supplier_key', $supplierKey); + } + + public function projectKey($projectKey) + { + return $this->where('project_key', $projectKey); + } + public function isRecommend($isRecommend){ return $this->where('is_recommend', $isRecommend); }