zilong 4 年之前
父節點
當前提交
ccb58dc03c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Http/Controllers/Api/V1/VaccineController.php

+ 1 - 1
app/Http/Controllers/Api/V1/VaccineController.php

xqd
@@ -22,7 +22,7 @@ class VaccineController extends AuthController
             'sort_type' => 'in:0,1,2',
         ]);
 
-        $builder = Vaccine::select(['id', 'type', 'price', 'name', 'remark', 'supplier', 'stock'])->where('stock', '>', 0)->where('org_id', $req['organization_id']);
+        $builder = Vaccine::select(['id', 'type', 'price', 'name', 'remark', 'supplier', 'stock'])->where('org_id', $req['organization_id']);
         if (!empty($req['type'])) {
             $builder->where('type', $req['type']);
         }