浏览代码

Merge remote-tracking branch 'origin/dev/mapping_20210824' into test

zhaops 3 年之前
父节点
当前提交
ac1b8fbed2
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      cdssman-service/src/main/java/com/diagbot/facade/MappingConfigFacade.java

+ 2 - 2
cdssman-service/src/main/java/com/diagbot/facade/MappingConfigFacade.java

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