Quellcode durchsuchen

processing collection bug

LD vor 5 Jahren
Ursprung
Commit
efc889f2a4
1 geänderte Dateien mit 1 neuen und 3 gelöschten Zeilen
  1. 1 3
      app/Services/StationTaskMaterialBoxService.php

+ 1 - 3
app/Services/StationTaskMaterialBoxService.php

@@ -152,7 +152,7 @@ class StationTaskMaterialBoxService
         })();
         ($按时间从前往后排出顺序=function ()use(&$stationTaskMaterialBoxes){
             $stationTaskMaterialBoxes=$stationTaskMaterialBoxes
-                ->orderBy('id','asc')
+                ->sortBy('id')
                 ->groupBy('station_task_batch_id')
                 ->get();
         })();
@@ -184,7 +184,6 @@ class StationTaskMaterialBoxService
             ->where('station_task_batch_id',$stationTaskBatch_id)
             ->where('status','处理中')
             ->first();
-
     }
 
     function excepted($stationTaskMaterialBoxes_orBox){
@@ -219,6 +218,5 @@ class StationTaskMaterialBoxService
 //            return '入库';
 //        }
         throw new ErrorException('当前类型找不到');
-
     }
 }