From e18df5eff13c09304a0d37cccd0058de6bcc3fb9 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Wed, 15 May 2024 14:45:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/operation/OpurchaseclassController.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/admin/controller/operation/OpurchaseclassController.php b/app/admin/controller/operation/OpurchaseclassController.php index fac5883..0ee1e21 100644 --- a/app/admin/controller/operation/OpurchaseclassController.php +++ b/app/admin/controller/operation/OpurchaseclassController.php @@ -116,7 +116,12 @@ class OpurchaseclassController extends BaseAdminController { $id = $this->request->get('id'); $page_no = $this->request->get('page_no', 1); - $res = Opurchaseinfo::where('pid', $id)->page($page_no, 25)->select()->each(function ($item) { + $is_push = $this->request->get('is_push'); + $where=['pid'=> $id]; + if($is_push){ + $where['is_push'] = $is_push; + } + $res = Opurchaseinfo::where()->page($page_no, 25)->select()->each(function ($item) { $find = Goods::where('id', $item['goods'])->with('unitName')->find(); $item['goods_name'] = $find['name']; $item['unit_name'] = $find['unit_name'];