1.URL

http://124.223.60.234:8080/system/asset/command/queryDownlinkCommandList

2.请求参数

2.1请求头

在Headers里面增加token:对应登录验证成功后,data里面对应的tokenId

2.2.参数示例

{
    "ids":["1957EE0C69614AB3B3AF2755103B0AB6"],
    "startTime":"2023-02-02 00:00:00",
    "endTime":"2023-02-03 00:00:00",
    "pageNum":1,
    "pageSize":20
}

2.3.参数说明

字段 类型 说明 是否必须
ids List 终端唯一标识集合 Y
startTime String 开始时间(UTC) Y
endTime String 结束时间(UTC) Y
pageNum int 第几页 Y
pageSize int 每页显示条数 Y

3.接口应答

3.1.返回示例

{
    "code": 200,
    "message": "Operation succeeded",
    "data": {
        "total": 7,
        "size": 1,
        "data": [
            {
                "terminalId": "1957EE0C69614AB3B3AF2755103B0AB6",
                "terminalNum": "344050190425",
                "strMsgId": "0x8105",
                "msgFlowId": 6,
                "encryptType": 0,
                "params": "{\"36\":\"xxxxxxxxxxxxx\"}",
                "offline": 0,
                "sendTime": "2023-02-02T09:20:39.591680Z",
                "commandContent": "7e8105000e34405019042500062478787878787878787878787878cc7e",
                "status": 0,
                "replyMessageIdStr": null,
                "replyMsgFlowId": null,
                "replyContent": null,
                "replyDateTime": null
            },
            {
                "terminalId": "1957EE0C69614AB3B3AF2755103B0AB6",
                "terminalNum": "344050190425",
                "strMsgId": "0x8105",
                "msgFlowId": 5,
                "encryptType": 0,
                "params": "{\"35\":{\"CHANNEL\":\"1\",\"MODE\":\"0\"}}",
                "offline": 0,
                "sendTime": "2023-02-02T09:17:07.014446Z",
                "commandContent": "7e81050004344050190425000523312c30977e",
                "status": 0,
                "replyMessageIdStr": null,
                "replyMsgFlowId": null,
                "replyContent": null,
                "replyDateTime": null
            },
            {
                "terminalId": "1957EE0C69614AB3B3AF2755103B0AB6",
                "terminalNum": "344050190425",
                "strMsgId": "0x8105",
                "msgFlowId": 4,
                "encryptType": 0,
                "params": "{\"33\":1}",
                "offline": 0,
                "sendTime": "2023-02-02T09:11:19.095638Z",
                "commandContent": "7e81050002344050190425000421318e7e",
                "status": 0,
                "replyMessageIdStr": null,
                "replyMsgFlowId": null,
                "replyContent": null,
                "replyDateTime": null
            },
            {
                "terminalId": "1957EE0C69614AB3B3AF2755103B0AB6",
                "terminalNum": "344050190425",
                "strMsgId": "0x8105",
                "msgFlowId": 3,
                "encryptType": 0,
                "params": "{\"32\":{\"PROTOCOL\":\"0\",\"VERSION\":\"xxxxxxxxxxxxx\",\"MODE\":\"0\",\"TYPE\":\"0\",\"URL\":\"http://47.112.122.222:8080/xxxxx.bin\"}}",
                "offline": 0,
                "sendTime": "2023-02-02T09:04:30.218242Z",
                "commandContent": "7e81050040344050190425000320303b303b787878787878787878787878783b303b687474703a2f2f34372e3131322e3132322e3232323a383038302f78787878782e62696e3b313233343536977e",
                "status": 0,
                "replyMessageIdStr": null,
                "replyMsgFlowId": null,
                "replyContent": null,
                "replyDateTime": null
            },
            {
                "terminalId": "1957EE0C69614AB3B3AF2755103B0AB6",
                "terminalNum": "344050190425",
                "strMsgId": "0x8105",
                "msgFlowId": 2,
                "encryptType": 0,
                "params": "{\"32\":{\"PROTOCOL\":\"0\",\"VERSION\":\"xxxxxxxxxxxxx\",\"MODE\":\"0\",\"TYPE\":\"0\",\"URL\":\"http://47.112.122.222:8080/xxxxx.bin\"}}",
                "offline": 0,
                "sendTime": "2023-02-02T09:04:14.462575Z",
                "commandContent": "7e81050040344050190425000220303b303b787878787878787878787878783b303b687474703a2f2f34372e3131322e3132322e3232323a383038302f78787878782e62696e3b313233343536967e",
                "status": 0,
                "replyMessageIdStr": null,
                "replyMsgFlowId": null,
                "replyContent": null,
                "replyDateTime": null
            },
            {
                "terminalId": "1957EE0C69614AB3B3AF2755103B0AB6",
                "terminalNum": "344050190425",
                "strMsgId": "0x8103",
                "msgFlowId": 1,
                "encryptType": 0,
                "params": "{\"16\":\"test\",\"17\":\"test\",\"18\":\"123456\",\"19\":\"47.112.122.222\",\"24\":\"6608\"}",
                "offline": 0,
                "sendTime": "2023-02-02T08:54:54.477690Z",
                "commandContent": "7e8103003a3440501904250001050000001004746573740000001104746573740000001206313233343536000000130e34372e3131322e3132322e3232320000001804000019d0667e",
                "status": 0,
                "replyMessageIdStr": null,
                "replyMsgFlowId": null,
                "replyContent": null,
                "replyDateTime": null
            },
            {
                "terminalId": "1957EE0C69614AB3B3AF2755103B0AB6",
                "terminalNum": "344050190425",
                "strMsgId": "0x8103",
                "msgFlowId": 1,
                "encryptType": 0,
                "params": "{\"1\":\"10\"}",
                "offline": 0,
                "sendTime": "2023-02-02T08:34:14.344Z",
                "commandContent": "7e8103000a34405019042500010100000001040000000a9b7e",
                "status": 0,
                "replyMessageIdStr": null,
                "replyMsgFlowId": null,
                "replyContent": null,
                "replyDateTime": null
            }
        ]
    }
}

3.2.返回结果说明

字段 类型 说明
code int 返回状态
message String 返回结果描述
data object 返回结果体

data 详情

字段 类型 说明
total String 总条数
size String 多少页
data object 每页的结果集合

data 详情

字段 类型 说明
terminalId String 终端系统唯一标识
terminalNum String 终端编号
strMsgId String 指令消息ID
msgFlowId String 指令流水号
encryptType Integer 是否加密(0:未加密;1:已加密)
params String 平台下发参数
offline Integer 是否离线发送(0:实时发送;1:离线发送)
sendTime String 发送时间(UTC)
commandContent String 发送指令内容
status Integer 指令应答状态(0:未应答;1:已应答)
replyMessageIdStr String 应答消息ID
replyMsgFlowId Integer 应答流水号
replyContent String 应答内容
replyDateTime String 应答时间

4.请求示例

作者:admin  创建时间:2023-04-16 21:05
最后编辑:admin  更新时间:2025-04-23 17:26