注意:以下文档只适用于TOP接口,请谨慎使用!

文档中心 > API类目 > MMC物流域项目

alibaba.mmc.logistics.getupdatehumanlabors (MMC物流域劳动力项目-获取变更员工信息)

MMC物流域劳动力项目-获取变更员工信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param0 HumanLaborQuery 可选 入参
  • └ labor_id_i_list
  • Number []
  • 可选
  • 工号列表
  • └ out_trace_id
  • String
  • 可选
  • xxxx
  • 外部traceId
  • └ merchant_code
  • String
  • 可选
  • MMC
  • 商家编码
  • └ min_hr_date
  • Date
  • 可选
  • 2021-08-07 12:00:00
  • 最小查询时间
  • └ max_hr_date
  • Date
  • 可选
  • 2021-08-07 12:00:00
  • 最大查询时间
  • └ page_size
  • Number
  • 可选
  • 20
  • 页面大小
  • └ page
  • Number
  • 可选
  • 1
  • 页数
  • └ source
  • String
  • 可选
  • xxx
  • 调用来源

响应参数

名称 类型 示例值 描述
result ResultDTO 总返回
  • content
  • HumanLaborVO
  • 业务返回
  • └ has_more
  • Boolean
  • true
  • 是否还有更多
  • res
  • HumanLaborInnerVO []
  • 劳动力信息列表
  • └ dept_name
  • String
  • xx
  • 部门名称
  • └ emp_type
  • String
  • xx
  • 员工类型
  • └ ext_info
  • String
  • {}
  • 拓展信息
  • └ hr_date
  • Date
  • 2021-08-07 12:00:00
  • 入职日期
  • └ hr_status
  • String
  • xx
  • 当前在职状态
  • └ labor_id
  • Number
  • xx
  • 工号
  • └ mobile
  • String
  • xx
  • 手机号
  • └ name
  • String
  • xx
  • 劳工名称
  • └ node_code
  • String
  • xx
  • RDC编码
  • └ node_name
  • String
  • xx
  • RDC名称
  • └ operate_name
  • String
  • xx
  • 主管名称
  • └ place_post
  • String
  • xx
  • 岗位
  • └ success
  • Boolean
  • true
  • 是否调用成功
  • └ error_code
  • String
  • xx
  • 错误码
  • └ error_message
  • String
  • xx
  • 错误信息
  • └ success
  • Boolean
  • true
  • 是否调用成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaMmcLogisticsGetupdatehumanlaborsRequest req = new AlibabaMmcLogisticsGetupdatehumanlaborsRequest();
AlibabaMmcLogisticsGetupdatehumanlaborsRequest.HumanLaborQuery obj1 = new AlibabaMmcLogisticsGetupdatehumanlaborsRequest.HumanLaborQuery();
obj1.setLaborIdIList(new Long[] {  };
);
obj1.setOutTraceId("xxxx");
obj1.setMerchantCode("MMC");
obj1.setMinHrDate(StringUtils.parseDateTime("2021-08-07 12:00:00"));
obj1.setMaxHrDate(StringUtils.parseDateTime("2021-08-07 12:00:00"));
obj1.setPageSize(20L);
obj1.setPage(1L);
obj1.setSource("xxx");
req.setParam0(obj1);
AlibabaMmcLogisticsGetupdatehumanlaborsResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_mmc_logistics_getupdatehumanlabors_response>
    <result>
        <content>
            <has_more>true</has_more>
            <res>
                <human_labor_inner_v_o>
                    <dept_name>xx</dept_name>
                    <emp_type>xx</emp_type>
                    <ext_info>{}</ext_info>
                    <hr_date>2021-08-07 12:00:00</hr_date>
                    <hr_status>xx</hr_status>
                    <labor_id>xx</labor_id>
                    <mobile>xx</mobile>
                    <name>xx</name>
                    <node_code>xx</node_code>
                    <node_name>xx</node_name>
                    <operate_name>xx</operate_name>
                    <place_post>xx</place_post>
                </human_labor_inner_v_o>
            </res>
            <success>true</success>
        </content>
        <error_code>xx</error_code>
        <error_message>xx</error_message>
        <success>true</success>
    </result>
</alibaba_mmc_logistics_getupdatehumanlabors_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部