From 9e59df5338144a67ccfe1f6b8a6b430bf5ec1412 Mon Sep 17 00:00:00 2001 From: dinggang <2498628697@qq.com> Date: Tue, 1 Nov 2022 17:12:28 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=B8=AA=E4=BA=BA=E4=B8=AD=E5=BF=83-?= =?UTF-8?q?=E6=B5=8F=E8=A7=88=E8=AE=B0=E5=BD=95=E6=9F=A5=E8=AF=A2=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6=E6=8C=89=E7=BB=84=E4=BB=B6=E7=B1=BB=E5=9E=8B=E7=BB=86?= =?UTF-8?q?=E5=88=86=202.=E5=85=A8=E5=B1=80=E6=90=9C=E7=B4=A2=E5=8E=BB?= =?UTF-8?q?=E9=99=A4=E8=A7=86=E9=A2=91=E8=B5=84=E6=BA=90=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E7=BB=93=E6=9E=9C=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/ResourceServiceImpl.java | 31 ++++++++++--------- .../resourceBrowse/ResourceBrowseDao.xml | 14 +++++++-- 2 files changed, 28 insertions(+), 17 deletions(-) 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 @@