文档中心 > API类目 > 天猫精灵供应链数字工厂

aliyun.gsc.production.laboreffect.report (人效数据上报)

人效数据上报

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
human_effect_param HumanEffectParam [] 必须
  • 最大列表长度:1000
  • 人效看板入参
    • └ workshop_name
    • String
    • 必须
    • 车间A
    • 车间名称
    • └ pdt_line_work_hour
    • String
    • 必须
    • 10.05
    • 生产线工时
    • └ vendor_name
    • String
    • 可选
    • 供应商名称A
    • 供应商名称
    • └ pdt_line_code
    • String
    • 必须
    • PDT001
    • 生产线编码
    • └ product_name
    • String
    • 可选
    • 产品A
    • 产品名称
    • └ pdt_line_name
    • String
    • 必须
    • 生产线A
    • 生产线名称
    • └ vendor_code
    • String
    • 可选
    • vendor001
    • 供应商编码
    • └ product_code
    • String
    • 必须
    • 1ACXXXXX
    • 产品编码
    • └ workers_num
    • Number
    • 必须
    • 10
    • 人数
    • └ data_time
    • Date
    • 必须
    • 2020-10-27 17:58:51
    • 日期
    • └ actual_output
    • Number
    • 必须
    • 10
    • 实际产出数量
    • └ workshop_code
    • String
    • 必须
    • WS001
    • 车间编码

    响应参数

    名称 类型 示例值 描述
    response_code String 200 返回状态码
    error_message String no 错误信息
    message String 成功 消息

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
    AliyunGscProductionLaboreffectReportRequest req = new AliyunGscProductionLaboreffectReportRequest();
    List<AliyunGscProductionLaboreffectReportRequest.HumanEffectParam> list2 = new ArrayList<AliyunGscProductionLaboreffectReportRequest.HumanEffectParam>();
    AliyunGscProductionLaboreffectReportRequest.HumanEffectParam obj3 = new AliyunGscProductionLaboreffectReportRequest.HumanEffectParam();
    list2.add(obj3);
    obj3.setWorkshopName("车间A");
    obj3.setPdtLineWorkHour("10.05");
    obj3.setVendorName("供应商名称A");
    obj3.setPdtLineCode("PDT001");
    obj3.setProductName("产品A");
    obj3.setPdtLineName("生产线A");
    obj3.setVendorCode("vendor001");
    obj3.setProductCode("1ACXXXXX");
    obj3.setWorkersNum(10L);
    obj3.setDataTime(StringUtils.parseDateTime("2020-10-27 17:58:51"));
    obj3.setActualOutput(10L);
    obj3.setWorkshopCode("WS001");
    req.setHumanEffectParam(list2);
    AliyunGscProductionLaboreffectReportResponse rsp = client.execute(req);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <aliyun_gsc_production_laboreffect_report_response>
        <response_code>200</response_code>
        <error_message>no</error_message>
        <message>成功</message>
    </aliyun_gsc_production_laboreffect_report_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

    返回
    顶部