From be417a93318ce2ccef0153832319d985f75560cb Mon Sep 17 00:00:00 2001 From: chenhhongzhen Date: Fri, 6 Sep 2019 09:20:18 +0800 Subject: [PATCH] =?UTF-8?q?[FIX]=20=E5=8D=95=E8=AF=8D=E6=8B=BC=E5=86=99?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../manager/app/service/impl/ConfigServiceImpl.java | 6 +++--- .../manager/app/service/impl/RouteServiceImpl.java | 4 ++-- .../choerodon/manager/infra/asserts/RouteAssertHelper.java | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main/java/io/choerodon/manager/app/service/impl/ConfigServiceImpl.java b/src/main/java/io/choerodon/manager/app/service/impl/ConfigServiceImpl.java index f6a08b2..d5b85f8 100644 --- a/src/main/java/io/choerodon/manager/app/service/impl/ConfigServiceImpl.java +++ b/src/main/java/io/choerodon/manager/app/service/impl/ConfigServiceImpl.java @@ -6,7 +6,7 @@ import com.github.pagehelper.PageInfo; import io.choerodon.base.domain.PageRequest; import io.choerodon.core.exception.CommonException; import io.choerodon.core.exception.ext.NotExistedException; -import io.choerodon.core.exception.ext.UpdateExcetion; +import io.choerodon.core.exception.ext.UpdateException; import io.choerodon.manager.api.dto.*; import io.choerodon.manager.app.service.ConfigService; import io.choerodon.manager.infra.asserts.ConfigAssertHelper; @@ -94,12 +94,12 @@ public class ConfigServiceImpl implements ConfigService { if (defaultDto != null) { defaultDto.setIsDefault(false); if (configMapper.updateByPrimaryKeySelective(defaultDto) != 1) { - throw new UpdateExcetion("error.config.update"); + throw new UpdateException("error.config.update"); } } dto.setIsDefault(true); if (configMapper.updateByPrimaryKeySelective(dto) != 1) { - throw new UpdateExcetion("error.config.update"); + throw new UpdateException("error.config.update"); } } return ConfigConverter.dto2Vo(dto); diff --git a/src/main/java/io/choerodon/manager/app/service/impl/RouteServiceImpl.java b/src/main/java/io/choerodon/manager/app/service/impl/RouteServiceImpl.java index 0f3c484..91f3925 100644 --- a/src/main/java/io/choerodon/manager/app/service/impl/RouteServiceImpl.java +++ b/src/main/java/io/choerodon/manager/app/service/impl/RouteServiceImpl.java @@ -6,7 +6,7 @@ import com.github.pagehelper.PageInfo; import io.choerodon.base.domain.PageRequest; import io.choerodon.core.exception.CommonException; import io.choerodon.core.exception.ext.InsertException; -import io.choerodon.core.exception.ext.UpdateExcetion; +import io.choerodon.core.exception.ext.UpdateException; import io.choerodon.core.swagger.ChoerodonRouteData; import io.choerodon.manager.app.service.RouteService; import io.choerodon.manager.infra.asserts.RouteAssertHelper; @@ -122,7 +122,7 @@ public class RouteServiceImpl implements RouteService { } route.setBuiltIn(null); if (routeMapper.updateByPrimaryKeySelective(routeDTO) != 1) { - throw new UpdateExcetion("error.route.update"); + throw new UpdateException("error.route.update"); } modifyRouteFromGoRegister(routeDTO, ADD_ZUUL_ROOT_URL, "error to update route to register server"); return routeMapper.selectByPrimaryKey(id); diff --git a/src/main/java/io/choerodon/manager/infra/asserts/RouteAssertHelper.java b/src/main/java/io/choerodon/manager/infra/asserts/RouteAssertHelper.java index 5979f5d..4b6aa73 100644 --- a/src/main/java/io/choerodon/manager/infra/asserts/RouteAssertHelper.java +++ b/src/main/java/io/choerodon/manager/infra/asserts/RouteAssertHelper.java @@ -1,6 +1,6 @@ package io.choerodon.manager.infra.asserts; -import io.choerodon.core.exception.ext.AlreadyExsitedException; +import io.choerodon.core.exception.ext.AlreadyExistedException; import io.choerodon.core.exception.ext.IllegalArgumentException; import io.choerodon.core.exception.ext.NotExistedException; import io.choerodon.manager.infra.dto.RouteDTO; @@ -58,7 +58,7 @@ public class RouteAssertHelper extends AssertHelper { RouteDTO dto = new RouteDTO(); dto.setName(name); if (routeMapper.selectOne(dto) != null) { - throw new AlreadyExsitedException("error.route.name.existed"); + throw new AlreadyExistedException("error.route.name.existed"); } } @@ -66,7 +66,7 @@ public class RouteAssertHelper extends AssertHelper { RouteDTO dto = new RouteDTO(); dto.setPath(path); if (routeMapper.selectOne(dto) != null) { - throw new AlreadyExsitedException("error.route.path.existed"); + throw new AlreadyExistedException("error.route.path.existed"); } } -- Gitee