Browse Source

优化代码

gaodm 6 years ago
parent
commit
9d034b8760

+ 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,
                     "获取用户信息失败");
         }