From 26f1174134d931de5a8b0e2058ba5aa28e6e9cad Mon Sep 17 00:00:00 2001 From: guyuliang Date: Sat, 24 Aug 2024 19:31:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E5=AE=9E=E4=BE=8B=E6=80=BB?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/bocloud/ams/service/internal/CmpInternalService.java | 2 -- .../com/bocloud/ams/service/module/impl/ModuleServiceImpl.java | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/bocloud.ams.service/src/main/java/com/bocloud/ams/service/internal/CmpInternalService.java b/bocloud.ams.service/src/main/java/com/bocloud/ams/service/internal/CmpInternalService.java index 4333921..a1854db 100644 --- a/bocloud.ams.service/src/main/java/com/bocloud/ams/service/internal/CmpInternalService.java +++ b/bocloud.ams.service/src/main/java/com/bocloud/ams/service/internal/CmpInternalService.java @@ -35,10 +35,8 @@ public class CmpInternalService implements InitializingBean { public GeneralResult list(Map params) { String url = "/v1/vms"; - log.info("params:{}", JSON.toJSONString(params)); RemoteService remoteService = serviceFactory.build(SERVICE, url, HttpMethod.GET, headers, params); GeneralResult result = remoteService.invoke(); - log.info("result:{}",JSON.toJSONString(result)); if (result.isFailed()) { return new GeneralResult<>(false, result.getMessage()); } 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 40ef085..ec073b8 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 @@ -493,7 +493,7 @@ public class ModuleServiceImpl implements ModuleService { Param param = new Param(); param.setParam(MapTools.simpleMap("moduleId", model.getId())); boolean adminRole = instanceService.checkAdminRole(userId); - int count = instanceRepository.count((List) param, table, valueTable, userId, adminRole); + int count = instanceRepository.count(paramList, table, valueTable, userId, adminRole); total+=count; } resultMap.put(rootGroup.getCode(), total);