|
@@ -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");
|