diff --git a/app/admin/lists/beforehand_order/BeforehandOrderLists.php b/app/admin/lists/beforehand_order/BeforehandOrderLists.php index fa2d82b05..8a29d67b2 100644 --- a/app/admin/lists/beforehand_order/BeforehandOrderLists.php +++ b/app/admin/lists/beforehand_order/BeforehandOrderLists.php @@ -28,7 +28,7 @@ class BeforehandOrderLists extends BaseAdminDataLists implements ListsSearchInte public function setSearch(): array { return [ - '=' => ['store_id', 'order_id', 'uid','paid','status','order_type'], + '=' => ['store_id', 'order_id', 'uid','paid','status','order_type','order_sn'], ]; } diff --git a/app/admin/logic/beforehand_order/BeforehandOrderLogic.php b/app/admin/logic/beforehand_order/BeforehandOrderLogic.php index cbae51f2f..33b1908c7 100644 --- a/app/admin/logic/beforehand_order/BeforehandOrderLogic.php +++ b/app/admin/logic/beforehand_order/BeforehandOrderLogic.php @@ -16,6 +16,7 @@ use app\common\model\store_order\StoreOrder; use app\common\model\store_order_cart_info\StoreOrderCartInfo; use app\common\model\store_product\StoreProduct; use app\common\model\store_product_unit\StoreProductUnit; +use app\common\model\system_store\SystemStore; use app\common\model\user\User; use app\common\model\user\UserAddress; use app\common\model\warehouse_order\WarehouseOrder; @@ -436,6 +437,7 @@ class BeforehandOrderLogic extends BaseLogic $arr = StoreCategory::where('id', 'in', $top_cate_list)->field('name,id')->select(); $res['top_cate'] = $arr?->toArray(); } + $res['system_store']=SystemStore::where('id',$res['store_id'])->value('name'); return $res; } }