From 71730e9bd98d80252822b4c975a2c6fc2b980c29 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Fri, 11 Oct 2024 11:39:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=E8=B4=AD=E4=B9=B0=E4=BA=A7=E5=93=81?= =?UTF-8?q?=E4=BC=98=E6=83=A0=E5=88=97=E8=A1=A8=E4=B8=AD=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E6=A0=87=E8=AE=B0=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在PurchaseProductOfferLists类的search方法中,增加了从PurchaseProductOffer模型中检索'mark'字段。这样可以为管理员或其他相关用户在管理或查询购买产品优惠时提供更多上下文信息。 --- .../lists/purchase_product_offer/PurchaseProductOfferLists.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/lists/purchase_product_offer/PurchaseProductOfferLists.php b/app/api/lists/purchase_product_offer/PurchaseProductOfferLists.php index ecaa78410..3470eb21f 100644 --- a/app/api/lists/purchase_product_offer/PurchaseProductOfferLists.php +++ b/app/api/lists/purchase_product_offer/PurchaseProductOfferLists.php @@ -49,7 +49,7 @@ class PurchaseProductOfferLists extends BaseApiDataLists implements ListsSearchI return []; } return PurchaseProductOffer::where($this->searchWhere) - ->field(['id', 'order_id', 'product_id', 'price', 'buyer_nums', 'unit', 'is_buyer', 'buyer_confirm','need_num', 'buyer_id', 'status', ]) + ->field(['id', 'order_id', 'product_id', 'price', 'buyer_nums', 'unit', 'is_buyer', 'buyer_confirm','need_num', 'buyer_id', 'status', 'mark']) ->limit($this->limitOffset, $this->limitLength) ->order(['id' => 'desc']) ->select()->each(function($item){