浏览代码

Merge remote-tracking branch 'origin/dev/icss' into dev/icss

zhoutg 6 年之前
父节点
当前提交
3320a0693a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      icssman-service/src/main/java/com/diagbot/facade/DeptInfoFacade.java

+ 1 - 1
icssman-service/src/main/java/com/diagbot/facade/DeptInfoFacade.java

@@ -123,7 +123,7 @@ public class DeptInfoFacade extends DeptInfoServiceImpl {
         }
         //获取用户信息
         RespDTO<Map<String, String>> respDTO = userServiceClient.getUserInfoByIds(ids);
-        if (respDTO == null || !"0".equals(respDTO.code)) {
+        if (respDTO == null || !CommonErrorCode.OK.getCode().equals(respDTO.code)) {
             throw new CommonException(CommonErrorCode.RPC_ERROR,
                     "获取用户信息失败");
         }