在购买产品优惠列表中添加标记字段

在PurchaseProductOfferLists类的search方法中,增加了从PurchaseProductOffer模型中检索'mark'字段。这样可以为管理员或其他相关用户在管理或查询购买产品优惠时提供更多上下文信息。
This commit is contained in:
mkm 2024-10-11 11:39:44 +08:00
parent c970b79178
commit 71730e9bd9

View File

@ -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){