---
title: "4.2 根据人员Ids人员信息（getEmployeeByIds）"
docId: "415725352535457792"
source: "https://weapp.eteams.cn/build/techdoc/wdoc/index.html#/public/repository/91f5067f-775e-48f4-93a2-ce84ca0b9c2e/doc/415725352535457792"
---
- 1. 拦截返回内容
  
    - 标识: HRM_INTER_HRMINFO_001
    - 入参
      
      | 参数 | 类型 | 说明 |
      | --- | --- | --- |
      | userList | List<EMUser> | 返回人员列表 |
      |  |  |  |
      
          - EMUser参数说明
            
            | 参数 | 类型 | 说明 |
            | --- | --- | --- |
            | id | Long | 人员id |
            | name | string | 人员名称 |
            | departmentId | Long | 部门id |
            | subCompany | string | 分部id |
            | mobile | string | 手机 |
            | telephone | string | 电话 |
            | tenantKey | string | 租户 |
            | jobNum | string | 工号 |
    - 示例
      
      ```java
      //入参，修改入参并不会影响到埋点的原始数据
              Map<String, Object> params = request.getParams();
      
              ObjectMapper objectMapper = new ObjectMapper();
              Map<String, Object> dataMap = objectMapper.convertValue(
                      params.get("result"), new TypeReference<Map<String, Object>>() {
                      }
              );
              if (dataMap == null) {
                  response.setResult(params);
                  return response;
              }
              List<Map<String, Object>> userList = (List<Map<String, Object>>) dataMap.get("userList");// 数据
              if (CollectionUtils.isEmpty(userList)) {
                  response.setResult(params);
                  return response;
              }
              for (Map<String, Object> user : userList) {
                  if (user.get("mobile") != null && user.get("mobile").toString().contains("**")) {
                      user.put("send", 0);
                  }
              }
      
              response.setResult(ImmutableMapUtil.of("result", userList));
              return response;
      ```
