This commit is contained in:
mkm 2023-11-01 18:37:12 +08:00
parent fc15732888
commit 0ea34aeb82

View File

@ -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]);
}