|
|
@@ -59,7 +59,7 @@ class Inventory extends Base
|
|
|
$spec_id = $this->request->post('spec/s', '');
|
|
|
if(!empty($type)) $where['a.type'] = $type;
|
|
|
if(!empty($type_id)) $where['a.type_id'] = $type_id;
|
|
|
- if(!empty($spec_id)) $where['b.title'] = ['like', '%'.$spec_id.'%'];
|
|
|
+ if(!empty($spec_id)) $where['a.variety_id'] = $spec_id;
|
|
|
|
|
|
$list = $stockLog::alias('a')
|
|
|
->leftjoin('stock_config b', 'a.variety_id = b.id')
|