From 70803db54c31500420b6bff58d250a5b2b8459ea Mon Sep 17 00:00:00 2001 From: guyuliang Date: Sat, 24 Aug 2024 20:36:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ams/service/instance/impl/InstanceServiceImpl.java | 5 ----- .../bocloud/ams/service/module/impl/ModuleServiceImpl.java | 4 ---- 2 files changed, 9 deletions(-) diff --git a/bocloud.ams.service/src/main/java/com/bocloud/ams/service/instance/impl/InstanceServiceImpl.java b/bocloud.ams.service/src/main/java/com/bocloud/ams/service/instance/impl/InstanceServiceImpl.java index 7d46a8a..502aaf8 100644 --- a/bocloud.ams.service/src/main/java/com/bocloud/ams/service/instance/impl/InstanceServiceImpl.java +++ b/bocloud.ams.service/src/main/java/com/bocloud/ams/service/instance/impl/InstanceServiceImpl.java @@ -207,11 +207,6 @@ public class InstanceServiceImpl implements InstanceService { String table = CmdbUtils.CMDB_INSTANCE + moduleCode.toLowerCase(); String valueTable = CmdbUtils.CMDB_INSTANCE_VALUE + moduleCode.toLowerCase(); boolean hasAdminRole = checkAdminRole(userId); - log.info("pager:{}",JSON.toJSONString(pager)); - log.info("table:{}",JSON.toJSONString(table)); - log.info("valueTable:{}",JSON.toJSONString(valueTable)); - log.info("userId:{}",JSON.toJSONString(userId)); - log.info("hasAdminRole:{}",JSON.toJSONString(hasAdminRole)); int total = instanceRepository.count(pager.getParams(), table, valueTable, userId, hasAdminRole); list = this.instanceRepository.list(pager, table, valueTable, userId, hasAdminRole); convertInstanceValue(list, moduleId, userId, hasAdminRole); diff --git a/bocloud.ams.service/src/main/java/com/bocloud/ams/service/module/impl/ModuleServiceImpl.java b/bocloud.ams.service/src/main/java/com/bocloud/ams/service/module/impl/ModuleServiceImpl.java index ebc7631..73cc5bf 100644 --- a/bocloud.ams.service/src/main/java/com/bocloud/ams/service/module/impl/ModuleServiceImpl.java +++ b/bocloud.ams.service/src/main/java/com/bocloud/ams/service/module/impl/ModuleServiceImpl.java @@ -432,8 +432,6 @@ public class ModuleServiceImpl implements ModuleService { List nameList = Arrays.asList("网络设备", "物理服务器", "安全设备"); //查询根节点 List rootGroups = moduleGroupRepository.queryRootInName(nameList); - log.info("rootGroups:{}", JSON.toJSONString(rootGroups)); - log.info("context:{}", JSON.toJSONString(context)); Map resultMap = new HashMap<>(); @@ -468,7 +466,6 @@ public class ModuleServiceImpl implements ModuleService { } private void getInstaceCount(ModuleGroup rootGroup, Map resultMap, Long userId) throws Exception { - log.info("rootGroup:{}", JSON.toJSONString(rootGroup)); //获取当前ModuleGroup下所有的modle Pager pager = new Pager(); List modelParamList = new ArrayList<>(); @@ -498,7 +495,6 @@ public class ModuleServiceImpl implements ModuleService { paramList.add(param); boolean adminRole = instanceService.checkAdminRole(userId); int count = instanceRepository.count(paramList, table, valueTable, userId, adminRole); - log.info("count:{}", count); total += count; } resultMap.put(rootGroup.getCode(), total);