...
|
...
|
@@ -17,10 +17,9 @@ class ProductController extends AdminBaseController |
|
|
*/
|
|
|
public function getList() {
|
|
|
$request = input('request.');
|
|
|
$where ='';
|
|
|
$type = '';
|
|
|
if (!empty($request['type'])) {
|
|
|
$where['p.type'] = $request['type'];
|
|
|
$where['p.type'] = intval($request['type']);
|
|
|
$type =$request['type'];
|
|
|
}
|
|
|
$keywordComplex = [];
|
...
|
...
|
@@ -30,7 +29,9 @@ class ProductController extends AdminBaseController |
|
|
$keywordComplex['p.name|c.name'] = ['like', "%$keyword%"];
|
|
|
}
|
|
|
$usersQuery = Db::name('product');
|
|
|
|
|
|
if (!$where) {
|
|
|
$where ='';
|
|
|
}
|
|
|
$list = $usersQuery
|
|
|
->alias('p')
|
|
|
->join('user u','p.user_id = u.id','left')
|
...
|
...
|
|