ソースを参照

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

zhoutg 6 年 前
コミット
3320a0693a

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