Explorar el Código

folder文件数量调整

kely hace 10 meses
padre
commit
451332c294
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      app/Http/Controllers/API/FolderController.php

+ 1 - 0
app/Http/Controllers/API/FolderController.php

@@ -263,6 +263,7 @@ class FolderController extends Controller
         $sonFileCount=File::query()
             ->where($objectWhere)
             ->whereIn('folder_id',$folders->pluck('id'))
+            ->where("is_latest_version", 1)
             ->selectRaw("count(*) as cut, folder_id")
             ->groupBy("folder_id")
             ->pluck("cut", "folder_id");