Ver Fonte

修改 查询

cqp há 3 meses atrás
pai
commit
0e9ebec0dc
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      app/Service/DispatchService.php

+ 2 - 2
app/Service/DispatchService.php

@@ -582,8 +582,8 @@ class DispatchService extends Service
             $model->where('dispatch_time_end','>=',$data['dispatch_time'][1]);
         }
         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(! empty($data['device_id'])) $model->where('device_id',$data['device_id']);
+        if(! empty($data['equipment_id'])) $model->where('device_id',$data['equipment_id']);
         if(isset($data['is_finished'])) {
             if($data['is_finished']){
                 $model->wherecolumn('dispatch_quantity','=','finished_num');