...
|
...
|
@@ -25,11 +25,11 @@ class SalesmangoodsController extends AdminBaseController{ |
|
|
$keyword = $_POST['keyword'];
|
|
|
$where['book_name'] = ['like',"%$keyword%"];
|
|
|
}
|
|
|
$data = Db::name('goods') -> group('book_name') -> where($where) -> paginate(1000000);
|
|
|
$data = Db::name('goods') -> where($where) -> paginate(1000000);
|
|
|
$this -> assign('data',$data);
|
|
|
return $this -> fetch();
|
|
|
}else{
|
|
|
$data = Db::name('goods') -> group('book_name') -> where('type',2) -> paginate(12);
|
|
|
$data = Db::name('goods') -> where('type',2) -> paginate(12);
|
|
|
$this -> assign('data',$data);
|
|
|
return $this -> fetch();
|
|
|
}
|
...
|
...
|
|