From 2d88d6bb17f7dddedfb21875876265c68debc316 Mon Sep 17 00:00:00 2001 From: "chen.ma" Date: Tue, 6 Jul 2021 15:35:48 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=BB=9F=E4=B8=80=E5=85=A5=E5=8F=82?= =?UTF-8?q?=E5=92=8C=E5=87=BA=E5=8F=82=E5=8F=98=E9=87=8F=E5=91=BD=E5=90=8D?= =?UTF-8?q?.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../config/model/biz/threadpool/ThreadPoolQueryReqDTO.java | 2 +- .../threadpool/config/service/biz/ThreadPoolServiceImpl.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/src/main/java/io/dynamic/threadpool/config/model/biz/threadpool/ThreadPoolQueryReqDTO.java b/config/src/main/java/io/dynamic/threadpool/config/model/biz/threadpool/ThreadPoolQueryReqDTO.java index 5cfb8287..c6e8a5f4 100644 --- a/config/src/main/java/io/dynamic/threadpool/config/model/biz/threadpool/ThreadPoolQueryReqDTO.java +++ b/config/src/main/java/io/dynamic/threadpool/config/model/biz/threadpool/ThreadPoolQueryReqDTO.java @@ -12,7 +12,7 @@ import lombok.Data; @Data public class ThreadPoolQueryReqDTO extends Page { - private String tenantId; + private String namespace; private String itemId; diff --git a/config/src/main/java/io/dynamic/threadpool/config/service/biz/ThreadPoolServiceImpl.java b/config/src/main/java/io/dynamic/threadpool/config/service/biz/ThreadPoolServiceImpl.java index 5c719a1e..958674ea 100644 --- a/config/src/main/java/io/dynamic/threadpool/config/service/biz/ThreadPoolServiceImpl.java +++ b/config/src/main/java/io/dynamic/threadpool/config/service/biz/ThreadPoolServiceImpl.java @@ -34,7 +34,7 @@ public class ThreadPoolServiceImpl implements ThreadPoolService { @Override public IPage queryThreadPoolPage(ThreadPoolQueryReqDTO reqDTO) { LambdaQueryWrapper wrapper = Wrappers.lambdaQuery(ConfigAllInfo.class) - .eq(!StringUtils.isBlank(reqDTO.getTenantId()), ConfigAllInfo::getNamespace, reqDTO.getTenantId()) + .eq(!StringUtils.isBlank(reqDTO.getNamespace()), ConfigAllInfo::getNamespace, reqDTO.getNamespace()) .eq(!StringUtils.isBlank(reqDTO.getItemId()), ConfigAllInfo::getItemId, reqDTO.getItemId()) .eq(!StringUtils.isBlank(reqDTO.getTpId()), ConfigAllInfo::getTpId, reqDTO.getTpId()); return configInfoMapper.selectPage(reqDTO, wrapper).convert(each -> BeanUtil.convert(each, ThreadPoolRespDTO.class)); @@ -42,7 +42,7 @@ public class ThreadPoolServiceImpl implements ThreadPoolService { @Override public ThreadPoolRespDTO getThreadPool(ThreadPoolQueryReqDTO reqDTO) { - ConfigAllInfo configAllInfo = configService.findConfigAllInfo(reqDTO.getTpId(), reqDTO.getItemId(), reqDTO.getTenantId()); + ConfigAllInfo configAllInfo = configService.findConfigAllInfo(reqDTO.getTpId(), reqDTO.getItemId(), reqDTO.getNamespace()); return BeanUtil.convert(configAllInfo, ThreadPoolRespDTO.class); }