diff --git a/app/controller/admin/ProductLibrary.php b/app/controller/admin/ProductLibrary.php index aad4d8c6..efa7bc5a 100644 --- a/app/controller/admin/ProductLibrary.php +++ b/app/controller/admin/ProductLibrary.php @@ -13,7 +13,8 @@ class ProductLibrary extends BaseController { [$page, $limit] = $this->getPage(); $param = $this->request->param(); - $list = Db::name('product_library')->page($page)->limit($limit)->order('id desc')->select(); + $where=['is_del'=>0]; + $list = Db::name('product_library')->where($where)->page($page)->limit($limit)->order('id desc')->select(); $count = Db::name('product_library')->count(); return app('json')->success(['list' => $list, 'count' => $count]); }