瀏覽代碼

出入库记录

afa 5 月之前
父節點
當前提交
b698b4f5da
共有 1 個文件被更改,包括 1 次插入1 次删除
  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')