dingtalk.oapi.rhino.humanres.employee.productionteam.list (通过租户ID和UICID批量查询生产组)

通过租户ID和UICID批量查询生产组

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
query_employee_production_team_param QueryCorpEmployeeProductionTeamDto 可选 查询参数
  • └ uic_ids
  • Number []
  • 可选
  • [1,2]
  • uicic 列表
  • └ tenant_id
  • String
  • 可选
  • 12345
  • 资产ID
  • └ userid
  • String
  • 可选
  • 123
  • userid
  • └ include_inactive
  • Boolean
  • 可选
  • false
  • 是否包含未激活或者离职状态

响应参数

名称 类型 示例值 描述
status_code Number 200 status_code
success Boolean true 是否成功
errcode Number 0 errcode
corp_employee_info Model [] 员工信息
  • └ work_status
  • Number
  • 1
  • 工作状态
  • └ hire_date
  • Date
  • 1531238400000
  • 入职日期
  • └ corp_id
  • String
  • ding4168da49920dff6c35c2f4657eb6378f
  • 企业ID
  • └ dingtalk_user_id
  • String
  • 02251343-2038815537
  • 企业下钉钉员工ID
  • └ mobile
  • String
  • 1x8x1x0x3x4
  • 手机号
  • └ uic_id
  • Number
  • 3841640893
  • uicId
  • └ dingtalk_no
  • String
  • $:LWCP_v1:$BvnsngUzK4GOLlDL0IrmFA==
  • 全局钉钉员工ID
  • └ work_no
  • String
  • 068262
  • 工号
  • └ buc_id
  • Number
  • 111137967
  • bucId
  • └ img_url
  • String
  • /photo/68262.80x80.jpg
  • 头像地址
  • production_team_list
  • ProductionTeamList []
  • 拥有的生产组
  • └ capacity_type
  • String
  • finite
  • 产能类型
  • └ production_team_name
  • String
  • Inline-01线内组-我是超长小组名称test123456789
  • 生产组名称
  • └ modifier
  • String
  • 162878
  • modifier
  • └ deleted
  • Boolean
  • false
  • 是否删除
  • └ emp_num
  • Number
  • 0
  • 员工数量
  • └ tenant_id
  • String
  • 3841560883
  • 资产ID
  • └ biz_id
  • String
  • 3841560883_Inline-01
  • 生产组业务ID
  • └ production_team_code
  • String
  • Inline-01
  • 生产组code
  • └ group_code
  • String
  • 123
  • 分组code
  • └ name
  • String
  • 金宝ㄟ( ▔, ▔ )ㄏ
  • 姓名
  • └ tenant_id
  • String
  • 3841560883
  • 资产ID
  • └ bu_mail
  • String
  • wb-wb378926@alibaba-inc.com
  • 部门邮箱
  • └ id
  • Number
  • 196
  • 主键ID
  • └ departure_date
  • Date
  • 1531238400000
  • 离职日期
  • └ job
  • String
  • 总经理1
  • 职位
  • └ status
  • Number
  • 1
  • 状态
errmsg String 成功 错误信息
external_msg_info String demo 扩展信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
DingTalkClient client = new DefaultDingTalkClient("https://oapi.dingtalk.com/topapi/rhino/humanres/employee/productionteam/list");
OapiRhinoHumanresEmployeeProductionteamListRequest req = new OapiRhinoHumanresEmployeeProductionteamListRequest();
QueryCorpEmployeeProductionTeamDto obj1 = new QueryCorpEmployeeProductionTeamDto();
obj1.setUicIds(new Long[] { 1,2 };
);
obj1.setTenantId("12345");
obj1.setUserid("123");
obj1.setIncludeInactive(false);
req.setQueryEmployeeProductionTeamParam(obj1);
OapiRhinoHumanresEmployeeProductionteamListResponse rsp = client.execute(req, access_token);
System.out.println(rsp.getBody());

响应示例

  • JSON示例
{
    "status_code":200,
    "success":true,
    "errcode":0,
    "corp_employee_info":[
        {
                "work_status":1,
                "hire_date":"1531238400000",
                "corp_id":"ding4168da49920dff6c35c2f4657eb6378f",
                "dingtalk_user_id":"02251343-2038815537",
                "mobile":"1x8x1x0x3x4",
                "uic_id":3841640893,
                "dingtalk_no":"$:LWCP_v1:$BvnsngUzK4GOLlDL0IrmFA==",
                "work_no":"068262",
                "buc_id":111137967,
                "img_url":"\/photo\/68262.80x80.jpg",
                "production_team_list":[
                    {
                            "capacity_type":"finite",
                            "production_team_name":"Inline-01线内组-我是超长小组名称test123456789",
                            "modifier":"162878",
                            "deleted":false,
                            "emp_num":0,
                            "tenant_id":"3841560883",
                            "biz_id":"3841560883_Inline-01",
                            "production_team_code":"Inline-01",
                            "group_code":"123"
                    }
                ],
                "name":"金宝ㄟ( ▔, ▔ )ㄏ",
                "tenant_id":"3841560883",
                "bu_mail":"wb-wb378926@alibaba-inc.com",
                "id":196,
                "departure_date":"1531238400000",
                "job":"总经理1",
                "status":1
        }
    ],
    "errmsg":"成功",
    "external_msg_info":"demo"
}

异常示例

  • JSON示例
{
	"errcode":88,
	"errmsg":"ding talk error"
}

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部