| 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']);
|
|
|
}
|