dingtalk.oapi.rhino.mos.exec.clothes.condition.get (按条件查询衣服)

按照条件查询生产执行

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
get_clothes_condition_req GetClothesConditionReq 必须 请求
  • condition
  • EntityCondition
  • 可选
  • 实体条件
  • └ entity_ids
  • Number []
  • 可选
  • [1]
  • 实体id
  • entity_source
  • Source
  • 可选
  • 实体源
  • └ source_id
  • String
  • 可选
  • [1]
  • source_id
  • └ source_type
  • String
  • 可选
  • SAAS-MOS-BED
  • source_type
  • └ entity_type
  • String
  • 可选
  • CLOTHES
  • 实体类型
  • page
  • Page
  • 可选
  • 页信息
  • └ page_size
  • Number
  • 可选
  • 1
  • 默认值:0
  • 页大小
  • └ start
  • Number
  • 可选
  • 0
  • 默认值:0
  • 开始
  • └ size_codes
  • String []
  • 可选
  • [3]
  • 尺码
  • └ status
  • String []
  • 可选
  • [PROCESSING]
  • 状态
  • └ tenant_id
  • String
  • 可选
  • 3841560883
  • 租户id
  • └ userid
  • String
  • 可选
  • 1
  • user_id
  • └ order_id
  • Number
  • 可选
  • 1
  • 订单ID

响应参数

名称 类型 示例值 描述
errmsg String 系统自动生成
external_msg_info String 成功 错误信息
model PageResult 返回值
  • └ current_start
  • Number
  • 0
  • 当前起始
  • └ page_size
  • Number
  • 1
  • 页大小
  • result_list
  • ClothesDto []
  • 页信息
  • └ color_id
  • Number
  • 1001
  • 颜色id
  • └ color_name
  • String
  • RED
  • 颜色名称
  • └ create_type
  • String
  • NEW
  • 创建类型
  • └ id
  • Number
  • 4
  • 实体id
  • └ order_id
  • Number
  • 100
  • 订单id
  • └ size_code
  • String
  • S
  • 尺码code
  • └ size_name
  • String
  • S
  • 尺码名称
  • └ source_id
  • String
  • 1
  • 源id
  • └ source_type
  • String
  • EXAMPLE
  • 源类型
  • └ status
  • String
  • PROCESSING
  • 状态
  • └ tenant_id
  • String
  • B001
  • 租户
  • └ total
  • Number
  • 1
  • 总数
errcode Number 200 错误码

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
DingTalkClient client = new DefaultDingTalkClient("https://oapi.dingtalk.com/topapi/rhino/mos/exec/clothes/condition/get");
OapiRhinoMosExecClothesConditionGetRequest req = new OapiRhinoMosExecClothesConditionGetRequest();
GetClothesConditionReq obj1 = new GetClothesConditionReq();
EntityCondition obj2 = new EntityCondition();
obj2.setEntityIds(new Long[] { 1 };
);
Source obj3 = new Source();
obj3.setSourceId("[1]");
obj3.setSourceType("SAAS-MOS-BED");
obj2.setEntitySource(obj3);
obj2.setEntityType("CLOTHES");
obj1.setCondition(obj2);
Page obj4 = new Page();
obj4.setPageSize(1L);
obj4.setStart(0L);
obj1.setPage(obj4);
obj1.setSizeCodes("3");
obj1.setStatus("PROCESSING");
obj1.setTenantId("3841560883");
obj1.setUserid("1");
obj1.setOrderId(1L);
req.setGetClothesConditionReq(obj1);
OapiRhinoMosExecClothesConditionGetResponse rsp = client.execute(req, access_token);
System.out.println(rsp.getBody());

响应示例

  • JSON示例
{
    "errmsg":"",
    "external_msg_info":"成功",
    "model":{
        "current_start":0,
        "page_size":1,
        "result_list":[
            {
                    "color_id":1001,
                    "color_name":"RED",
                    "create_type":"NEW",
                    "id":4,
                    "order_id":100,
                    "size_code":"S",
                    "size_name":"S",
                    "source_id":"1",
                    "source_type":"EXAMPLE",
                    "status":"PROCESSING",
                    "tenant_id":"B001"
            }
        ],
        "total":1
    },
    "errcode":200
}

异常示例

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

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部