|
@@ -253,7 +253,11 @@ public class MappingConfigFacade extends MappingConfigServiceImpl {
|
|
|
if (RespDTOUtil.respIsOK(respDTO)) {
|
|
|
return respDTO.data;
|
|
|
} else {
|
|
|
- throw new CommonException(CommonErrorCode.codeOf(respDTO.code), respDTO.msg);
|
|
|
+ if (respDTO.code.equals(CommonErrorCode.NOT_EXISTS.getCode())) {
|
|
|
+ throw new CommonException(CommonErrorCode.NOT_EXISTS, respDTO.msg);
|
|
|
+ } else {
|
|
|
+ throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, respDTO.msg);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -272,7 +276,11 @@ public class MappingConfigFacade extends MappingConfigServiceImpl {
|
|
|
if (RespDTOUtil.respIsOK(respDTO)) {
|
|
|
return respDTO.data;
|
|
|
} else {
|
|
|
- throw new CommonException(CommonErrorCode.codeOf(respDTO.code), respDTO.msg);
|
|
|
+ if (respDTO.code.equals(CommonErrorCode.NOT_EXISTS.getCode())) {
|
|
|
+ throw new CommonException(CommonErrorCode.NOT_EXISTS, respDTO.msg);
|
|
|
+ } else {
|
|
|
+ throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, respDTO.msg);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|