diff --git a/renren-admin/src/main/java/io/renren/modules/resource/service/impl/ResourceServiceImpl.java b/renren-admin/src/main/java/io/renren/modules/resource/service/impl/ResourceServiceImpl.java index bd3b1c61..c580cc82 100644 --- a/renren-admin/src/main/java/io/renren/modules/resource/service/impl/ResourceServiceImpl.java +++ b/renren-admin/src/main/java/io/renren/modules/resource/service/impl/ResourceServiceImpl.java @@ -2030,24 +2030,24 @@ public class ResourceServiceImpl extends CrudServiceImpl infrastructureCount = CompletableFuture.runAsync(() -> { //基础设施 - HashMap queryMap = new HashMap<>(); - queryMap.put("cameraName", keyWorld); - Integer countNew = cameraChannelMapper.selectByParentIdCountNew(queryMap, null, ""); - resultList.add(new HashMap() { - { - put("count", countNew + ""); - put("type", "基础设施"); - } - }); + //2022-11-1 去除摄像头查询 + //CompletableFuture infrastructureCount = CompletableFuture.runAsync(() -> { //基础设施 + // HashMap queryMap = new HashMap<>(); + // queryMap.put("cameraName", keyWorld); + // Integer countNew = cameraChannelMapper.selectByParentIdCountNew(queryMap, null, ""); + // resultList.add(new HashMap() { + // { + // put("count", countNew + ""); + // put("type", "基础设施"); + // } + // }); + // + //}, executor); - }, executor); //统计增加会议室搜索结果 - CompletableFuture meetingRoomCount = CompletableFuture.runAsync(() -> { //会议室 - meetCountNew[0] = tMeetingroomMapper.selectByName(keyWorld).size(); - }, executor); + CompletableFuture meetingRoomCount = CompletableFuture.runAsync(() -> meetCountNew[0] = tMeetingroomMapper.selectByName(keyWorld).size(), executor); - CompletableFuture all = CompletableFuture.allOf(DBresourceCount, dataResourceCount, infrastructureCount, meetingRoomCount); + CompletableFuture all = CompletableFuture.allOf(DBresourceCount, dataResourceCount, meetingRoomCount); all.join(); } @@ -2055,6 +2055,7 @@ public class ResourceServiceImpl extends CrudServiceImpl temp = new ArrayList<>(); resultList.forEach(map -> { diff --git a/renren-admin/src/main/resources/mapper/resourceBrowse/ResourceBrowseDao.xml b/renren-admin/src/main/resources/mapper/resourceBrowse/ResourceBrowseDao.xml index 1e63f0eb..7898b0f6 100644 --- a/renren-admin/src/main/resources/mapper/resourceBrowse/ResourceBrowseDao.xml +++ b/renren-admin/src/main/resources/mapper/resourceBrowse/ResourceBrowseDao.xml @@ -54,10 +54,20 @@