From 150f8590e37a4da4574423fff86a9a5fcd67509e Mon Sep 17 00:00:00 2001 From: shengchanzhe <179998674@qq.com> Date: Thu, 21 Dec 2023 17:07:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=AF=BC=E5=85=A5=E5=88=97?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/merchant/store/product/Product.php | 10 ++++++++++ route/merchant/product.php | 3 +++ 2 files changed, 13 insertions(+) diff --git a/app/controller/merchant/store/product/Product.php b/app/controller/merchant/store/product/Product.php index e6558a10..a71aba59 100644 --- a/app/controller/merchant/store/product/Product.php +++ b/app/controller/merchant/store/product/Product.php @@ -421,4 +421,14 @@ class Product extends BaseController $this->repository->updates($ids,$data); return app('json')->success('修改成功'); } + + /** + * 导入商品列表管理 + */ + public function xlsx_import_list(){ + [$page, $limit] = $this->getPage(); + $select=Db::name('store_product_import')->where('mer_id',$this->request->merId())->page($page)->limit($limit)->select()->toArray(); + return app('json')->success($select); + + } } diff --git a/route/merchant/product.php b/route/merchant/product.php index 843befb7..b6cf3134 100644 --- a/route/merchant/product.php +++ b/route/merchant/product.php @@ -143,6 +143,9 @@ Route::group(function () { Route::get('lst', '/lst')->name('merchantStoreProductLst')->option([ '_alias' => '列表', ]); + Route::get('xlsx_import_list', '/xlsx_import_list')->option([ + '_alias' => '导入列表', + ]); Route::get('list', '/lst')->option([ '_alias' => '列表', '_auth' => false,