1.URL
http://124.223.60.234:8080/system/asset/hj212/queryHj212TerminalInfo
2.请求参数
2.1请求头
在Headers里面增加token:对应登录验证成功后,data里面对应的tokenId

2.2.参数示例
{
"id":"104FB727AD854E24B12F412E7431203B"
}
2.3.参数说明
字段 |
类型 |
说明 |
是否必须 |
id |
String |
设备唯一标识 |
Y |
3.接口应答
3.1.返回示例
{
"code": 200,
"message": "Operation succeeded",
"data": {
"id": "84FF761BE52846888EC35B63E3B8B062",
"terminalNum": "AQI2411132600332",
"customNum": "AQI-332",
"orgId": "E86CB5248B36484E924AA0A97783B767",
"orgName": "TEST",
"typeId": 520,
"typeName": "HJ212",
"protocolType": 520,
"securityNum": "",
"imageUrl": "[\"https://apollo.aovx.com:2443/other/2096E8063335487EA6635C0FA9E6F244.png\"]",
"simNum": "",
"iccid": "",
"imei": "",
"status": 1,
"descInfo": "Suppliers provide",
"address": "广东省深圳市宝安区宝石东路76号 中国石化加油站(宝石站)内",
"lat": 22.68681,
"lon": 113.960739,
"positionTime": "2024-11-19 17:47:56",
"positionUser": "wuxx",
"positionImage": "[\"https://apollo.aovx.com:2443/other/2785286BFB2D4A4FAA2BEB459258C90F.jpg\"]",
"positionDesc": "试安装",
"expireTime": "2024-12-31 00:00:00",
"createTime": "2024-11-15 02:13:27",
"creatorId": "F940B79790004404AAC277418FC71C5D",
"creator": "LEAVE",
"terminalStatus": {
"onlineStatus": 0,
"aqiValue": {
"factor": "a21026",
"iaqiValue": 64.5,
"indexRange": {
"factor": {
"o31104": {
"1": "160,200",
"8": "100,160"
},
"a21005": {
"1": "5,10",
"24": "2,4"
},
"a21026": {
"1": "150,500",
"24": "50,150"
},
"a21004": {
"1": "100,200",
"24": "40,80"
},
"a34002": {
"24": "50,150"
},
"a34004": {
"24": "35,75"
}
},
"index": 2,
"sort": "{\"0\":\"Good\",\"1\":\"良\",\"2\":\"Good\"}",
"color": "\t#FFFF00",
"healthImpact": "{\"0\":\"The air quality is acceptable, but certain pollutants may have a relatively weak impact on the monitoring of a very small number of people who are extremely sensitive.\",\"1\":\"空气质量可接受,但某些污染物可能对极少数异常敏感人群监控有较弱影响。\",\"2\":\"La calidad del aire es aceptable, pero ciertos contaminantes pueden tener un impacto relativamente débil en el monitoreo de un número muy reducido de personas extremadamente sensibles.\"}",
"suggest": "{\"0\":\"A very small number of people who are extremely sensitive should reduce their outdoor activities.\",\"1\":\"极少数异常敏感人群应减少户外活动。\",\"2\":\"Un número muy reducido de personas extremadamente sensibles deben reducir sus actividades al aire libre.\"}",
"iaqi": "50,100"
}
},
"hj212IAQIValueMap": {
"o31104": {
"factor": "o31104",
"iaqiValue": 14.0,
"indexRange": {
"factor": {
"o31104": {
"1": "0,160",
"8": "0,100"
},
"a21005": {
"1": "0,5",
"24": "0,2"
},
"a21026": {
"1": "0,150",
"24": "0,50"
},
"a21004": {
"1": "0,100",
"24": "0,40"
},
"a34002": {
"24": "0,50"
},
"a34004": {
"24": "0,35"
}
},
"index": 1,
"sort": "{\"0\":\"First-rate\",\"1\":\"优\",\"2\":\"First-rate\"}",
"color": "\t#008000",
"healthImpact": "{\"0\":\"The air quality is satisfactory and there is basically no air pollution.\",\"1\":\"空气质量令人满意,基本无空气污染。\",\"2\":\"La calidad del aire es satisfactoria y básicamente no hay contaminación del aire.\"}",
"suggest": "{\"0\":\"People of all kinds can carry out normal activities.\",\"1\":\"各类人群可正常活动。\",\"2\":\"Todas las personas pueden realizar actividades normales.\"}",
"iaqi": "0,50"
}
},
"a21005": {
"factor": "a21005",
"iaqiValue": 0.0,
"indexRange": {
"factor": {
"o31104": {
"1": "0,160",
"8": "0,100"
},
"a21005": {
"1": "0,5",
"24": "0,2"
},
"a21026": {
"1": "0,150",
"24": "0,50"
},
"a21004": {
"1": "0,100",
"24": "0,40"
},
"a34002": {
"24": "0,50"
},
"a34004": {
"24": "0,35"
}
},
"index": 1,
"sort": "{\"0\":\"First-rate\",\"1\":\"优\",\"2\":\"First-rate\"}",
"color": "\t#008000",
"healthImpact": "{\"0\":\"The air quality is satisfactory and there is basically no air pollution.\",\"1\":\"空气质量令人满意,基本无空气污染。\",\"2\":\"La calidad del aire es satisfactoria y básicamente no hay contaminación del aire.\"}",
"suggest": "{\"0\":\"People of all kinds can carry out normal activities.\",\"1\":\"各类人群可正常活动。\",\"2\":\"Todas las personas pueden realizar actividades normales.\"}",
"iaqi": "0,50"
}
},
"a21026": {
"factor": "a21026",
"iaqiValue": 64.5,
"indexRange": {
"factor": {
"o31104": {
"1": "160,200",
"8": "100,160"
},
"a21005": {
"1": "5,10",
"24": "2,4"
},
"a21026": {
"1": "150,500",
"24": "50,150"
},
"a21004": {
"1": "100,200",
"24": "40,80"
},
"a34002": {
"24": "50,150"
},
"a34004": {
"24": "35,75"
}
},
"index": 2,
"sort": "{\"0\":\"Good\",\"1\":\"良\",\"2\":\"Good\"}",
"color": "\t#FFFF00",
"healthImpact": "{\"0\":\"The air quality is acceptable, but certain pollutants may have a relatively weak impact on the monitoring of a very small number of people who are extremely sensitive.\",\"1\":\"空气质量可接受,但某些污染物可能对极少数异常敏感人群监控有较弱影响。\",\"2\":\"La calidad del aire es aceptable, pero ciertos contaminantes pueden tener un impacto relativamente débil en el monitoreo de un número muy reducido de personas extremadamente sensibles.\"}",
"suggest": "{\"0\":\"A very small number of people who are extremely sensitive should reduce their outdoor activities.\",\"1\":\"极少数异常敏感人群应减少户外活动。\",\"2\":\"Un número muy reducido de personas extremadamente sensibles deben reducir sus actividades al aire libre.\"}",
"iaqi": "50,100"
}
},
"a21004": {
"factor": "a21004",
"iaqiValue": 8.75,
"indexRange": {
"factor": {
"o31104": {
"1": "0,160",
"8": "0,100"
},
"a21005": {
"1": "0,5",
"24": "0,2"
},
"a21026": {
"1": "0,150",
"24": "0,50"
},
"a21004": {
"1": "0,100",
"24": "0,40"
},
"a34002": {
"24": "0,50"
},
"a34004": {
"24": "0,35"
}
},
"index": 1,
"sort": "{\"0\":\"First-rate\",\"1\":\"优\",\"2\":\"First-rate\"}",
"color": "\t#008000",
"healthImpact": "{\"0\":\"The air quality is satisfactory and there is basically no air pollution.\",\"1\":\"空气质量令人满意,基本无空气污染。\",\"2\":\"La calidad del aire es satisfactoria y básicamente no hay contaminación del aire.\"}",
"suggest": "{\"0\":\"People of all kinds can carry out normal activities.\",\"1\":\"各类人群可正常活动。\",\"2\":\"Todas las personas pueden realizar actividades normales.\"}",
"iaqi": "0,50"
}
},
"a34002": {
"factor": "a34002",
"iaqiValue": 38.0,
"indexRange": {
"factor": {
"o31104": {
"1": "0,160",
"8": "0,100"
},
"a21005": {
"1": "0,5",
"24": "0,2"
},
"a21026": {
"1": "0,150",
"24": "0,50"
},
"a21004": {
"1": "0,100",
"24": "0,40"
},
"a34002": {
"24": "0,50"
},
"a34004": {
"24": "0,35"
}
},
"index": 1,
"sort": "{\"0\":\"First-rate\",\"1\":\"优\",\"2\":\"First-rate\"}",
"color": "\t#008000",
"healthImpact": "{\"0\":\"The air quality is satisfactory and there is basically no air pollution.\",\"1\":\"空气质量令人满意,基本无空气污染。\",\"2\":\"La calidad del aire es satisfactoria y básicamente no hay contaminación del aire.\"}",
"suggest": "{\"0\":\"People of all kinds can carry out normal activities.\",\"1\":\"各类人群可正常活动。\",\"2\":\"Todas las personas pueden realizar actividades normales.\"}",
"iaqi": "0,50"
}
},
"a34004": {
"factor": "a34004",
"iaqiValue": 50.0,
"indexRange": {
"factor": {
"o31104": {
"1": "160,200",
"8": "100,160"
},
"a21005": {
"1": "5,10",
"24": "2,4"
},
"a21026": {
"1": "150,500",
"24": "50,150"
},
"a21004": {
"1": "100,200",
"24": "40,80"
},
"a34002": {
"24": "50,150"
},
"a34004": {
"24": "35,75"
}
},
"index": 2,
"sort": "{\"0\":\"Good\",\"1\":\"良\",\"2\":\"Good\"}",
"color": "\t#FFFF00",
"healthImpact": "{\"0\":\"The air quality is acceptable, but certain pollutants may have a relatively weak impact on the monitoring of a very small number of people who are extremely sensitive.\",\"1\":\"空气质量可接受,但某些污染物可能对极少数异常敏感人群监控有较弱影响。\",\"2\":\"La calidad del aire es aceptable, pero ciertos contaminantes pueden tener un impacto relativamente débil en el monitoreo de un número muy reducido de personas extremadamente sensibles.\"}",
"suggest": "{\"0\":\"A very small number of people who are extremely sensitive should reduce their outdoor activities.\",\"1\":\"极少数异常敏感人群应减少户外活动。\",\"2\":\"Un número muy reducido de personas extremadamente sensibles deben reducir sus actividades al aire libre.\"}",
"iaqi": "50,100"
}
}
}
},
"sampleDataProto": {
"terminalId": "84FF761BE52846888EC35B63E3B8B062",
"terminalNum": "AQI2411132600332",
"dateTime": "2024-11-16T01:40:04Z",
"recvTime": "2024-11-16T01:40:13.623930Z",
"dateTimestamp": 1731721204000,
"recvTimestamp": 1731721213623,
"realTime": 1,
"messageId": "2011",
"dataMapJson": "{\"a34001\":{\"factor\":\"a34001\",\"rtd\":\"40\"},\"o31104\":{\"factor\":\"o31104\",\"rtd\":\"28\"},\"a21005\":{\"factor\":\"a21005\",\"rtd\":\"0.00\"},\"a21026\":{\"factor\":\"a21026\",\"rtd\":\"79\"},\"a21004\":{\"factor\":\"a21004\",\"rtd\":\"7\"},\"a06001\":{\"factor\":\"a06001\",\"rtd\":\"0.0\"},\"a04003\":{\"factor\":\"a04003\",\"rtd\":\"1\"},\"a01001\":{\"factor\":\"a01001\",\"rtd\":\"26.1\"},\"a01002\":{\"factor\":\"a01002\",\"rtd\":\"64\"},\"LA\":{\"factor\":\"LA\",\"rtd\":\"58\"},\"a01006\":{\"factor\":\"a01006\",\"rtd\":\"1006\"},\"a01008\":{\"factor\":\"a01008\",\"rtd\":\"308\"},\"a34002\":{\"factor\":\"a34002\",\"rtd\":\"38\"},\"a34004\":{\"factor\":\"a34004\",\"rtd\":\"35\"}}"
}
}
}
3.2.返回结果说明
字段 |
类型 |
说明 |
code |
int |
返回状态 |
message |
String |
返回结果描述 |
data |
object |
返回结果体 |
data说明
字段 |
类型 |
说明 |
total |
String |
总条数 |
size |
String |
多少页 |
data |
object |
每页的结果集合 |
data说明
字段 |
类型 |
说明 |
id |
String |
终端系统唯一标识 |
terminalNum |
String |
终端SID |
customNum |
String |
客户自定义名称,必填,界面呈现的时候以这个名称为主 |
orgId |
String |
公司唯一标识 |
orgName |
String |
公司名称 |
typeId |
Integer |
终端类型ID |
typeName |
String |
终端类型名称 |
simNum |
String |
SIM卡号 |
iccid |
String |
ICCID |
imei |
String |
IMEI |
descInfo |
String |
终端描述 |
address |
String |
最新安装位置 |
lat |
Double |
纬度(WGS-84) |
lon |
Double |
经度(WGS-84) |
positionTime |
String |
最近的安装时间 |
positionUser |
String |
安装人 |
positionImage |
String |
安装图片,返回的是一个JSON数组 |
positionDesc |
String |
安装描述 |
expireTime |
String |
终端服务到期时间 |
createTime |
String |
终端注册时间 |
creatorId |
String |
终端注册人唯一标识 |
creator |
String |
终端注册人 |
terminalStatus |
object |
终端实时状态 |
sampleDataProto |
object |
终端最新采样数据 |
terminalStatus说明
字段 |
类型 |
说明 |
onlineStatus |
int |
0:未联网;1:联网中 |
aqiValue |
Object |
AQI信息 |
hj212IAQIValueMap |
List |
采样因子IAQI的详情 |
aqiValue说明
字段 |
类型 |
说明 |
factor |
String |
采用因子 |
iaqiValue |
double |
AQI值 |
index |
int |
环境质量等级 |
sort |
String |
环境质量等级描述 |
color |
String |
环境质量等级对应的颜色,颜色16进制 |
healthImpact |
String |
对健康影响情况说明 |
suggest |
String |
建议采取的措施说明 |
hj212IAQIValueMap说明
字段 |
类型 |
说明 |
factor |
String |
采用因子 |
iaqiValue |
double |
采样因子对应的IAQI数值 |
sampleDataProto说明
字段 |
类型 |
说明 |
terminalId |
String |
终端系统唯一标识 |
terminalNum |
String |
终端SID |
dateTime |
String |
数据上报时间 |
recvTime |
String |
系统接收时间 |
dateTimestamp |
String |
数据上报时间戳 |
recvTimestamp |
String |
系统接收时间戳 |
dataMapJson |
String |
设备最新的采样信息JSON |
dataMapJson说明
对应的是一个Map,其中key是采样因子,value采用因子对应的信息
{
"w00000": {
"factor": "w00000",
"flag": "N",
"rtd": "181.682"
},
"w21011": {
"factor": "w21011",
"flag": "N",
"rtd": "1.970",
"time": "2021-03-20T01:35Z",
"timestamp": 1616204100000
},
"w21001": {
"factor": "w21001",
"flag": "N",
"rtd": "45.160",
"time": "2021-03-20T00:54Z",
"timestamp": 1616201640000
},
"w01018": {
"factor": "w01018",
"flag": "N",
"rtd": "194.200",
"time": "2021-03-20T01:35Z",
"timestamp": 1616204100000
},
"w21003": {
"factor": "w21003",
"flag": "N",
"rtd": "53.131",
"time": "2021-03-20T01:35Z",
"timestamp": 1616204100000
},
"w01001": {
"factor": "w01001",
"flag": "N",
"rtd": "7.500",
"time": "2021-03-20T01:35:06Z",
"timestamp": 1616204106000
}
}
其中factor为采样因子
rtd:对应的采样数值
time:采样时间
timestamp:采样时间戳
flag:采样传感器状态

作者:admin 创建时间:2024-11-10 20:23
最后编辑:admin 更新时间:2025-04-23 17:26