Browse Source

出入库记录

afa 5 months ago
parent
commit
b698b4f5da
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/api/controller/Inventory.php

+ 1 - 1
app/api/controller/Inventory.php

@@ -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')