dingtalk.oapi.rhino.mos.exec.track.entitycondition.list (通过实体查询追踪记录)

通过实体查询追踪记录

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
req ListTrackRecordWithTrackIdsReq 必须 入参
  • └ entity_type
  • String
  • 必须
  • CLOTHES
  • 实体类型
  • page
  • Page
  • 必须
  • 分页
  • └ page_size
  • Number
  • 必须
  • 100
  • 每页大小
  • └ start
  • Number
  • 必须
  • 0
  • 起始位置
  • └ tenant_id
  • String
  • 必须
  • 3841560883
  • 租户ID
  • └ userid
  • String
  • 可选
  • 1
  • 预留参数
  • └ entity_ids
  • Number []
  • 必须
  • [1,2,3]
  • 实体ID列表
  • └ track_types
  • String []
  • 可选
  • ["PLATEN","HANGER"]
  • 追踪类型

响应参数

名称 类型 示例值 描述
errcode Number 0 错误码
errmsg String 服务异常 错误信息
model PageResult 返回结果
  • └ current_start
  • Number
  • 0
  • 当前起始位置
  • └ page_size
  • Number
  • 100
  • 每页大小
  • result
  • TrackRecordDto []
  • 追踪记录
  • └ effect_end_time
  • Date
  • 2020-03-25 12:00:00
  • 生效结束时间
  • └ effect_start_time
  • Date
  • 2020-03-25 12:00:00
  • 生效开始时间
  • └ effect_status
  • String
  • EFFECT
  • 生效状态
  • └ entity_id
  • Number
  • 1
  • 实体ID
  • └ entity_type
  • String
  • CLOTHES
  • 实体类型
  • └ tenant_id
  • String
  • 3841560883
  • 租户ID
  • └ track_id
  • String
  • 1
  • 追踪ID
  • └ track_type
  • String
  • RFID
  • 追踪类型
  • └ effect_start_workstation_code
  • String
  • line1-01
  • 生效工位
  • └ total
  • Number
  • 100
  • 总数
success Boolean true 是否成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
DingTalkClient client = new DefaultDingTalkClient("https://oapi.dingtalk.com/topapi/rhino/mos/exec/track/entitycondition/list");
OapiRhinoMosExecTrackEntityconditionListRequest req = new OapiRhinoMosExecTrackEntityconditionListRequest();
ListTrackRecordWithTrackIdsReq obj1 = new ListTrackRecordWithTrackIdsReq();
obj1.setEntityType("CLOTHES");
Page obj2 = new Page();
obj2.setPageSize(100L);
obj2.setStart(0L);
obj1.setPage(obj2);
obj1.setTenantId("3841560883");
obj1.setUserid("1");
obj1.setEntityIds(new Long[] { 1,2,3 };
);
obj1.setTrackTypes(""PLATEN","HANGER"");
req.setReq(obj1);
OapiRhinoMosExecTrackEntityconditionListResponse rsp = client.execute(req, access_token);
System.out.println(rsp.getBody());

响应示例

  • JSON示例
{
    "errcode":0,
    "errmsg":"服务异常",
    "model":{
        "current_start":0,
        "page_size":100,
        "result":[
            {
                    "effect_end_time":"2020-03-25 12:00:00",
                    "effect_start_time":"2020-03-25 12:00:00",
                    "effect_status":"EFFECT",
                    "entity_id":1,
                    "entity_type":"CLOTHES",
                    "tenant_id":"3841560883",
                    "track_id":"1",
                    "track_type":"RFID",
                    "effect_start_workstation_code":"line1-01"
            }
        ],
        "total":100
    },
    "success":true
}

异常示例

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

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部