|
@@ -583,6 +583,7 @@ class DispatchService extends Service
|
|
|
}
|
|
|
if(! empty($data['team_id'])) $model->where('team_id',$data['team_id']);
|
|
|
if(! empty($data['device_id'])) $model->whereIn('device_id',$data['device_id']);
|
|
|
+ if(! empty($data['equipment_id'])) $model->whereIn('device_id',$data['equipment_id']);
|
|
|
if(isset($data['is_finished'])) {
|
|
|
if($data['is_finished']){
|
|
|
$model->wherecolumn('dispatch_quantity','=','finished_num');
|