feat: 统一入参和出参变量命名.

pull/161/head
chen.ma 4 years ago
parent d2028e7660
commit 2d88d6bb17

@ -12,7 +12,7 @@ import lombok.Data;
@Data
public class ThreadPoolQueryReqDTO extends Page {
private String tenantId;
private String namespace;
private String itemId;

@ -34,7 +34,7 @@ public class ThreadPoolServiceImpl implements ThreadPoolService {
@Override
public IPage<ThreadPoolRespDTO> queryThreadPoolPage(ThreadPoolQueryReqDTO reqDTO) {
LambdaQueryWrapper<ConfigAllInfo> 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);
}

Loading…
Cancel
Save