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

aliyun.gsc.production.qualitydescspc.report (质检结果SPC详情上报)

质检结果SPC详情上报

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
quality_inspection_detail_spc_param QualityInspectionDetailSpcParam [] 可选
  • 最大列表长度:1000
  • 质检结果详情SPC入参
    • └ spec_max
    • String
    • 可选
    • 10
    • 上规范线
    • └ check_station
    • String
    • 可选
    • 工位A
    • 测试工位
    • └ low_limit
    • String
    • 可选
    • 1
    • 下控制线
    • └ standard_value
    • String
    • 可选
    • 1
    • 标准值
    • └ vendor_name
    • String
    • 可选
    • 供应商名称A
    • 供应商名称
    • └ check_point
    • String
    • 可选
    • 声音
    • 检测项目
    • └ pdt_line_code
    • String
    • 可选
    • PDT001
    • 生产线编码
    • └ product_name
    • String
    • 可选
    • 天猫精灵123-简化
    • 物料名称
    • └ pdt_line_name
    • String
    • 可选
    • 生产线A
    • 生产线编码
    • └ vendor_code
    • String
    • 可选
    • vendor001
    • 供应商编码
    • └ product_code
    • String
    • 可选
    • 1ACXXXXX
    • 物料编码
    • └ check_time
    • Date
    • 可选
    • 2020-10-27 12:00:00
    • 检测时间
    • └ statistical_date
    • Date
    • 可选
    • 2020-10-27 12:00:00
    • 2020-10-27 17:58:00
    • └ check_device
    • String
    • 可选
    • A10001
    • 测试设备
    • └ check_value
    • String
    • 可选
    • 15
    • 检测值
    • └ upper_limit
    • String
    • 可选
    • 10
    • 上控制限
    • └ id
    • String
    • 可选
    • 953b5dc2ddc0418982f9453e174877d0
    • 唯一ID
    • └ sn
    • String
    • 可选
    • 0001
    • SN
    • └ spec_min
    • String
    • 可选
    • 1
    • 下规范线

    响应参数

    名称 类型 示例值 描述
    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);
    AliyunGscProductionQualitydescspcReportRequest req = new AliyunGscProductionQualitydescspcReportRequest();
    List<AliyunGscProductionQualitydescspcReportRequest.QualityInspectionDetailSpcParam> list2 = new ArrayList<AliyunGscProductionQualitydescspcReportRequest.QualityInspectionDetailSpcParam>();
    AliyunGscProductionQualitydescspcReportRequest.QualityInspectionDetailSpcParam obj3 = new AliyunGscProductionQualitydescspcReportRequest.QualityInspectionDetailSpcParam();
    list2.add(obj3);
    obj3.setSpecMax("10");
    obj3.setCheckStation("工位A");
    obj3.setLowLimit("1");
    obj3.setStandardValue("1");
    obj3.setVendorName("供应商名称A");
    obj3.setCheckPoint("声音");
    obj3.setPdtLineCode("PDT001");
    obj3.setProductName("天猫精灵123-简化");
    obj3.setPdtLineName("生产线A");
    obj3.setVendorCode("vendor001");
    obj3.setProductCode("1ACXXXXX");
    obj3.setCheckTime(StringUtils.parseDateTime("2020-10-27 12:00:00"));
    obj3.setStatisticalDate(StringUtils.parseDateTime("2020-10-27 12:00:00"));
    obj3.setCheckDevice("A10001");
    obj3.setCheckValue("15");
    obj3.setUpperLimit("10");
    obj3.setId("953b5dc2ddc0418982f9453e174877d0");
    obj3.setSn("0001");
    obj3.setSpecMin("1");
    req.setQualityInspectionDetailSpcParam(list2);
    AliyunGscProductionQualitydescspcReportResponse rsp = client.execute(req);
    System.out.println(rsp.getBody());

    响应示例

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

    返回
    顶部