dingtalk.oapi.rhino.humanres.productionteam.query (查询生产组)

查询生产组

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
query_production_team_param QueryProductionTeamDto 可选 查询生产组入参
  • └ workshop_section_code
  • String
  • 可选
  • F
  • 工段CODE
  • └ tenant_id
  • String
  • 可选
  • 123
  • 资产ID
  • └ start_time
  • Date
  • 可选
  • 2020-01-01 00:00:00
  • 开始时间
  • └ end_time
  • Date
  • 可选
  • 2020-01-01 00:00:00
  • 结束时间
  • └ userid
  • String
  • 可选
  • 123
  • 预业务参数[这里先预留],这里是用户ID,比如钉钉用户ID

响应参数

名称 类型 示例值 描述
status_code Number 200 status_code
success Boolean true 是否成功
errcode Number 0 errcode
model Model [] model
  • └ workshop_section_code_list
  • String []
  • 工段列表
  • empList
  • EmpList []
  • 员工列表
  • └ work_status
  • Number
  • 1
  • 在岗状态
  • └ hire_date
  • Date
  • 1535472000000
  • 入职日期
  • └ dingtalk_user_id
  • String
  • 123456789
  • 企业下员工id
  • └ uic_id
  • Number
  • 1111111111
  • uicId
  • └ dingtalk_no
  • String
  • dingtalkNo
  • 钉钉全局员工ID
  • └ work_no
  • String
  • WB450038
  • 工号
  • └ buc_id
  • Number
  • 1
  • BUC员工ID
  • └ img_url
  • String
  • /photo/WB450038.80x80.jpg
  • 头像地址
  • └ name
  • String
  • 杨敬国
  • 姓名
  • └ bu_mail
  • String
  • 123@alibaba-inc.com
  • 部门邮箱
  • └ departure_date
  • Date
  • 1535472000000
  • 离职日期
  • └ job
  • String
  • 工人
  • 职位
  • └ status
  • Number
  • 1
  • 状态
  • └ emp_num
  • Number
  • 25
  • 拥有的员工数量
  • weekday_config_list
  • WeekdayConfigList []
  • 工作日配置
  • └ week_day
  • String
  • 周一
  • 工作日
  • └ start_time
  • Date
  • 0
  • 开始时间
  • └ end_time
  • Date
  • 14400000
  • 结束时间
  • └ type
  • Number
  • 0
  • 类型
  • └ production_team_code
  • String
  • Inline-01
  • 生产组code
  • └ day
  • Number
  • 0
  • 星期
  • └ capacity_type
  • String
  • finite
  • 产能类型
  • └ production_team_name
  • String
  • Inline-01线内组-我是超长小组名称test123456789
  • 生产组名称
  • └ tenant_id
  • String
  • 3841560883
  • 资产ID
  • └ biz_id
  • String
  • 3841560883_Inline-01
  • 业务ID
  • └ id
  • Number
  • 90
  • 系统自动生成
  • └ production_team_code
  • String
  • Inline-01
  • 生产组code
  • └ group_code
  • String
  • demo
  • 分组code
errmsg String 成功 message
external_msg_info String demo 扩展信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
DingTalkClient client = new DefaultDingTalkClient("https://oapi.dingtalk.com/topapi/rhino/humanres/productionteam/query");
OapiRhinoHumanresProductionteamQueryRequest req = new OapiRhinoHumanresProductionteamQueryRequest();
QueryProductionTeamDto obj1 = new QueryProductionTeamDto();
obj1.setWorkshopSectionCode("F");
obj1.setTenantId("123");
obj1.setStartTime(StringUtils.parseDateTime("2020-01-01 00:00:00"));
obj1.setEndTime(StringUtils.parseDateTime("2020-01-01 00:00:00"));
obj1.setUserid("123");
req.setQueryProductionTeamParam(obj1);
OapiRhinoHumanresProductionteamQueryResponse rsp = client.execute(req, access_token);
System.out.println(rsp.getBody());

响应示例

  • JSON示例
{
    "status_code":200,
    "success":true,
    "errcode":0,
    "model":[
        {
                "workshop_section_code_list":{
                    "string":[
                        ""
                    ]
                },
                "empList":[
                    {
                            "work_status":1,
                            "hire_date":"1535472000000",
                            "dingtalk_user_id":"123456789",
                            "uic_id":1111111111,
                            "dingtalk_no":"dingtalkNo",
                            "work_no":"WB450038",
                            "buc_id":1,
                            "img_url":"\/photo\/WB450038.80x80.jpg",
                            "name":"杨敬国",
                            "bu_mail":"123@alibaba-inc.com",
                            "departure_date":"1535472000000",
                            "job":"工人",
                            "status":1
                    }
                ],
                "emp_num":25,
                "weekday_config_list":[
                    {
                            "week_day":"周一",
                            "start_time":"0",
                            "end_time":"14400000",
                            "type":0,
                            "production_team_code":"Inline-01",
                            "day":0
                    }
                ],
                "capacity_type":"finite",
                "production_team_name":"Inline-01线内组-我是超长小组名称test123456789",
                "tenant_id":"3841560883",
                "biz_id":"3841560883_Inline-01",
                "id":90,
                "production_team_code":"Inline-01",
                "group_code":"demo"
        }
    ],
    "errmsg":"成功",
    "external_msg_info":"demo"
}

异常示例

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

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部