dingtalk.oapi.rhino.mos.exec.perform.conditional.start (条件开始工序)

条件开始执行工序

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
tenant_id String 必须 1 租户ID
device_ids Number [] 可选 1,2
  • 最大列表长度:20
  • 执行设备ID列表
    work_nos String [] 可选 WB01
  • 最大列表长度:20
  • 执行员工列表
    userid String 可选 1 系统参数
    entity_condition EntityCondition 必须 实体条件
    • └ entity_ids
    • Number []
    • 可选
    • 1,2
    • 实体ID列表
    • entity_source
    • Source
    • 可选
    • 实体来源
    • └ source_id
    • String
    • 可选
    • 1
    • 实体来源ID
    • └ source_type
    • String
    • 可选
    • MOS_BED
    • 实体来源类型
    • └ entity_type
    • String
    • 可选
    • CLOTHES
    • 实体类型
    operation_uids Number [] 可选 1,2
  • 最大列表长度:500
  • 工序ID列表
    order_id Number 可选 1 订单ID

    响应参数

    名称 类型 示例值 描述
    errmsg String 工序不存在 错误信息
    model Boolean true 操作结果
    success Boolean true 是否成功
    errcode Number 0 错误码

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    DingTalkClient client = new DefaultDingTalkClient("https://oapi.dingtalk.com/topapi/rhino/mos/exec/perform/conditional/start");
    OapiRhinoMosExecPerformConditionalStartRequest req = new OapiRhinoMosExecPerformConditionalStartRequest();
    req.setTenantId("1");
    req.setDeviceIds("1,2");
    req.setWorkNos("WB01");
    req.setUserid("1");
    EntityCondition obj1 = new EntityCondition();
    obj1.setEntityIds(new Long[] { 1,2 };
    );
    Source obj2 = new Source();
    obj2.setSourceId("1");
    obj2.setSourceType("MOS_BED");
    obj1.setEntitySource(obj2);
    obj1.setEntityType("CLOTHES");
    req.setEntityCondition(obj1);
    req.setOperationUids("1,2");
    req.setOrderId(1L);
    OapiRhinoMosExecPerformConditionalStartResponse rsp = client.execute(req, access_token);
    System.out.println(rsp.getBody());

    响应示例

    • JSON示例
    {
        "errmsg":"工序不存在",
        "model":true,
        "success":true,
        "errcode":0
    }

    异常示例

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

    错误码解释

    错误码 错误描述 解决方案

    API工具

    如何获得此API

    FAQ

    返回
    顶部