| xqd
@@ -37,7 +37,7 @@ class Vaccine extends BaseModel
|
|
|
$id = $this->attributes['id'];
|
|
|
if(empty($id)) return 0;
|
|
|
return OrderVaccine::where(['vaccine_id'=>$id])->whereHas('orders',function($query){
|
|
|
- $query->where('order_status',3);
|
|
|
+ $query->whereIn('order_status',[3,7]);
|
|
|
})->count();
|
|
|
}
|
|
|
public function organizationvaccines(){
|