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