增加资源无分类查询

This commit is contained in:
none
2023-03-15 11:41:37 +08:00
parent b95cd7fbab
commit 06bc8c639c
8 changed files with 24 additions and 4 deletions

View File

@@ -78,7 +78,6 @@ public class ResourceController {
HashMap<String, Object> data = new HashMap<>();
data.put("result", result);
data.put("category_count", resourceService.getCategoryCount(type));
data.put("pure_total", resourceService.total(type));
if (type.equals(BackendConstant.RESOURCE_TYPE_VIDEO)) {
List<ResourceVideo> resourceVideos = resourceVideoService.chunksByRids(result.getData().stream().map(Resource::getId).toList());