求援应急平台
[TOC]
[危险作业]
1.危险作业 统计接口
-
获取危险作业 统计数据
http://192.168.110.65:9999/plan/mgDangerousOperation/queryDanger
- get 请求方式
- 入参:无
- 出参:
{ "success": true, "message": "操作成功!", "code": 200, "result": [ { "num": 1, "type": "动火作业" } ], "timestamp": 1658807750224 }
- 返回参数说明
参数名 | 类型 | 说明 |
---|---|---|
num | int | 数量 |
type | string | 类型 |
2.危险作业 对应作业类型数据
-
危险作业 对应类型数据
- `http://
:9999/plan/mgDangerousOperation/queryDangerByType `
- get 请求方式
- 入参: *type: 作业类型
- 出参:
{ "success": true, "message": "操作成功!", "code": 200, "result": [ { area: "新区作业" createBy: null, createTime: "2022-07-26 11:36:52", groupTeam: null, guarder: null, id: "1551773516393705473", manager: null, memo: null, place: "2222", sysOrgCode: null, type: "动火作业", updateBy: null, updateTime: null } ], "timestamp": 1658807998904 }
- 返回参数说明
[现场上报]
1.现场上报接口
http://192.168.110.65:9999/terminal/mgAppAlarmReport/list
- get 请求方式
- 入参: MgAppAlarmReport 实体类 pageNo 分页参数 pageSize 分页参数 HttpServletRequest req 请求
- 出参:
{ "success": true, "message": "操作成功!", "code": 200, "result": { "records": [ { "img": "2_1658715380770.png", "address": "11", "sure": 0, "latitude": null, "urgentStatus": "重要", "updateTime": null, "content": "11", "reportType": "其他", "createBy": "e9ca23d68d884d4ebb19d07889727dae", "createTime": "2022-07-25", "updateBy": null, "sysOrgCode": null, "id": "4028648182331d1e01823324236e0006", "longitude": null }, { "img": "temp/1658318782-compressed-IMG_0133_1658806417218.PNG", "address": "陕西省,西安市,雁塔区,天谷七路", "sure": 0, "latitude": 34.21303624087163, "urgentStatus": "重要", "updateTime": null, "content": "123", "reportType": "故障", "createBy": "e9ca23d68d884d4ebb19d07889727dae", "createTime": "2022-07-26", "updateBy": null, "sysOrgCode": null, "id": "40286481823873c30182389155e00050", "longitude": 108.8280394322586 } ], "total": 17, "size": 10, "current": 2, "orders": [], "searchCount": true, "pages": 2 }, "timestamp": 1658822416206 }
- 返回参数说明
2.现场上报查看更多 参考:监控--上报历史
http://192.168.110.65:9999/terminal/mgAppAlarmReport/list
[报警信息]
1.获取当前事件列表
http://192.168.110.65:9999/node/mgNodeElementDetails/getEvents
- get 请求方式
- 入参:无
- 出参:
{ "success": true, "message": "操作成功!", "code": 200, "result": [ { "nodeName": "国家数字出版基地--YSC-测试数据", "address": "862299058271904", "smokeFlag": "2", "isShield": "0", "dealProcessId": "processKey1643421197826:1:1273634", "alarmTypeName": "报警", "yangan": "报警", "alarmName": "烟感父类事件", "type": "", "deviceId": "4028648181b2bd730181b32aeda30003", "deviceName": "烟感测试1", "content": "报警", "timeStamp": 1658840645729, "policeArea": "", "alarmType": "1", "alarmStatus": "1", "orgCode": "A01", "opcvalue": "", "parentAddress": "", "id": "40286481823a9b1f01823a9b80ca0001", "tenant": "A01" }, { "nodeName": "国家数字出版基地--YSC-测试数据", "markId": "", "huojing": "报警", "dealProcessId": "processKey1643421197826:1:1273634", "alarmTypeName": "报警", "isOnline": "0", "deviceId": "4028648181b2bd730181b32ba5b80004", "deviceName": "烟感报警设备", "content": "报警", "productName": "烟感222", "policeArea": "1", "orgCode": "A01", "property": "{\"toolId\":\"btnid\",\"data\":[{\"nodeName\":\"YSC-测试数据\",\"systemId\":\"1540151920277143553\",\"address\":\"烟感测试12\",\"productId\":\"4028648181ae6e030181af9c51910009\",\"dataName\":\"huojing\",\"alarmStatus\":0,\"alarmType\":15,\"propertyName\":\"huojing\",\"name\":\"模拟数据\",\"value\":\"\",\"propertyId\":\"4028648181b2bd730181b2bd73900000\",\"nodeId\":\"4028648181936f6d01819379d9800002\",\"channelId\":1,\"mark\":1}],\"display\":{\"color\":\"#e21818\",\"values\":\"报警\",\"stopStatus\":\"down.png\",\"content\":\"模拟\",\"runStatus\":\"up.png\"},\"icon\":\"../../graphjs/toolimg/ic_btn.png\",\"geometry\":{\"x\":\"\",\"width\":80,\"y\":\"\",\"angle\":\"\",\"height\":30},\"id\":\"16565080019828c6e\",\"type\":4,\"event\":{\"gorp\":\"get\",\"ipaddr\":\"\",\"params\":\"\",\"isclick\":false},\"tooltype\":\"btntool\",\"nodeId\":\"1392764723165446145\",\"toolName\":\"模拟数据\"}", "parentAddress": "862299058271904", "id": "40286481823aa58a01823aaced820003", "simulate": 1, "propertyId": "", "tenant": "A01", "address": "烟感测试12", "addressAll": "862299058271904||烟感测试12", "isShield": "0", "alarmName": "火警", "sysTypeName": "ysc测试系统", "parentId": "1285866564586942466", "timeStamp": 1658841787356, "emergencyId": "", "alarmType": "1", "alarmStatus": "1", "opcvalue": "报警", "sysExampleName": "ysc测试系统", "nodeId": "1392764723165446145", "mark": "0" }, { "nodeName": "国家数字出版基地--YSC-测试数据", "address": "862299058271904", "smokeFlag": "3", "isShield": "0", "dealProcessId": "processKey1643421197826:1:1273634", "alarmTypeName": "故障", "yangan": "故障", "alarmName": "烟感故障", "type": "", "deviceId": "4028648181b2bd730181b32aeda30003", "deviceName": "烟感测试1", "content": "故障", "timeStamp": 1658840768574, "policeArea": "", "alarmType": "4", "alarmStatus": "1", "orgCode": "A01", "opcvalue": "", "parentAddress": "", "id": "40286481823a9b1f01823a9d60b30002", "tenant": "A01" } ], "timestamp": 1658842213512 }
- 返回参数说明 略
[mqtt 连接状态]
-
获取mqtt 报警处理客户端连接状态:1已连接0断开
-
http://192.168.110.65:9999/terminal/deviceAlarm/getMonitorMqttStatus
-
get 入参: 无
- 返回示例
{
"success": true,
"message": "操作成功!",
"code": 200,
"result": 1,
"timestamp": 1658298904988
}
返回参数说明
参数名 | 类型 | 说明 |
---|---|---|
result | int | 1已连接,0断开 |
[重要设备信息]
1. 天气、系统管网压力、稳压泵、消防储水罐、消防水泵、环境参数等模拟数据接口
http://192.168.110.65:9999/terminal/deviceAlarm/getMonitorData/weatherData
天气http://192.168.110.65:9999/terminal/deviceAlarm/getMonitorData/pressureData
系统管网压力http://192.168.110.65:9999/terminal/deviceAlarm/getMonitorData/pumpData
稳压泵http://192.168.110.65:9999/terminal/deviceAlarm/getMonitorData/potData
消防储水罐、消防水泵http://192.168.110.65:9999/terminal/deviceAlarm/getMonitorData/environmentParam
环境参数- get 请求方式
- 入参:无
-
出参:
### ### #天气 { "success": true, "message": "操作成功!", "code": 200, "result": { "speedNorth": 4.2, "speedSouth": 5.5, "directionNorth": 28, "temperatureNorth": 8, "directionSouth": 349, "temperatureSouth": 12, "humidityNorth": 34, "humiditySouth": 30 }, "timestamp": 1658302278240 } ### ### #系统管网压力 { "success": true, "message": "操作成功!", "code": 200, "result": { "unit": "MPa", "address": "PT_108A", "value": "0.8" }, "timestamp": 1658302859550 } ### ### #稳压泵 { "success": true, "message": "操作成功!", "code": 200, "result": [ { "address": "P3507A", "status": "0" }, { "address": "P3507B", "status": "1" } ], "timestamp": 1658302943936 } ### ### #消防储水罐、消防水泵 { "success": true, "message": "操作成功!", "code": 200, "result": [ { "pot": [ { "total": "5000m³", "address": "V201A", "value": "90%" }, { "total": "5000m³", "address": "V201B", "value": "95%" } ], "name": "北厂区", "pump": [ { "address": "P101", "status": "0" }, { "address": "P102", "status": "1" }, { "address": "P105", "status": "0" } ] }, { "pot": [ { "total": "5000m³", "address": "V8825A", "value": "85%" }, { "total": "5000m³", "address": "V8825B", "value": "98%" } ], "name": "南厂区", "pump": [ { "address": "P3506A", "status": "0" }, { "address": "P3506B", "status": "1" }, { "address": "P3506C", "status": "0" } ] } ], "timestamp": 1658302996232 } ### ### #环境参数 { "success": true, "message": "操作成功!", "code": 200, "result": { "TVOC": 0.69, "PM25": 283, "CO2": 405, "temperature": 35, "humidity": 24, "CH2O": 29 }, "timestamp": 1658303021896 }
- 返回参数说明 | 略
[重要区域监控]
1设置重点区域视频(页面 视频轮巡配置,勾选多条) flag=1;取消重点区域视频 flag=0
http://192.168.110.65:9999/terminal/deviceInfo/saveCameraFlag
- post 请求方式
- 入参: ja: "[{\"id\":\"4028648181fc1c6c0181fc6709580002\",\"flag\":1}]"
- 出参:
{"success":true,"message":"保存成功!","code":200,"result":null,"timestamp":1659326362091}
- 返回参数说明 略
2.获取视频监控接口
http://192.168.110.65:9999/terminal/deviceInfo/getCameraSum
- get 请求方式
- 入参:无
- 出参:
{ "success": true, "message": "操作成功!", "code": 200, "result": { "flag": 1, "flag1": 0, "flag1Data": [], "flagData": [ { "id": "40286481821155b90182117f17ad0001", "deviceId": "4028648181fc1c6c0181fc6709580002", "brand": "海康", "username": "root", "password": "root", "ip": "192.168.110.112", "videoCode": "http://192.168.110.112:8080/live/34020000001320000002@34020000001320000002.flv", "videotype": "2", "flag": "1", "flag1": null } ] }, "timestamp": 1659326365633 }
- 返回参数说明 flag 为重点视频,首页展示(统计数量) flagData :数据集合(使用这个即可) flag1:固定流标记 flag1Data :固定流标记集合
[今日值班]
1.今日值班
http://192.168.110.65:9999/plan/mgDutyPlan/queryDay
- get 请求方式
- 入参: date: 今日日期2022-7-28
- 出参:
{ "success": true, "message": "操作成功!", "code": 200, "result": [ { "id": "1552134978253389825", "createBy": "ysc", "createTime": "2022-07-27 11:33:11", "updateBy": null, "updateTime": null, "sysOrgCode": "A01", "dutyDate": "2022-07-28", "user": "ysc", "ruleId": "1549958297497411586", "startTime": "09:00", "endTime": "18:00", "memo": "222", "area": null } ], "timestamp": 1658892578703 }
- 返回参数说明
参数名 | 类型 | 说明 |
---|---|---|
area | String | 值班区域 |
[地图相关]
1.获取所有地图元素
http://192.168.110.65:9999/node/mgElementInfo/list
- get 请求方式
- 入参: MgElementInfo 实体类用于过滤 pageNo 分页参数 pageSize 分页参数
- 出参:
{ "success": true, "message": "操作成功!", "code": 200, "result": { "records": [ { "address": "测试烟感15gis", "data": "地\",\"productId\":\"4028648181ae6e030181af9c51910009\",\"systemId\":\"1540151920277143553\",\"propertyId\":\"4028648181b2bd730181b2bd73900000\",\"propertyName\":\"huojing\",\"dataName\":\"huojing\",\"mark\":1}]", "latitude": 34.350199, "display": "{}", "typeName": "烟感", "imgObj": "{\"icon\":\"../../graphjs/toolimg/sdbjimg/normalImg.png\",\"normal\":\"toolimg/sdbjimg/normalImg.png\",\"fireImg\":\"toolimg/sdbjimg/fireImg.png\",\"faultImg\":\"toolimg/sdbjimg/faultImg.png\",\"shieldImg\":\"toolimg/sdbjimg/shieldImg.png\",\"runImg\":\"toolimg/sdbjimg/runImg.png\",\"watchImg\":\"toolimg/sdbjimg/watchImg.png\",\"backImg\":\"toolimg/sdbjimg/backImg.png\",\"fireGif\":\"toolimg/sdbjimg/fireGif.gif\",\"faultGif\":\"toolimg/sdbjimg/faultGif.gif\",\"shieldGif\":\"toolimg/sdbjimg/shieldGif.gif\",\"runGif\":\"toolimg/sdbjimg/runGif.gif\",\"watchGif\":\"toolimg/sdbjimg/watchGif.gif\",\"backGif\":\"toolimg/sdbjimg/backGif.gif\"}", "scale": 0.3, "updateTime": null, "type": 3, "createBy": null, "createTime": null, "updateBy": null, "id": "165709790702061b1", "opacity": 1.0, "longitude": 108.9836812 } ], "total": 1, "size": 10, "current": 1, "orders": [], "searchCount": true, "pages": 1 }, "timestamp": 1658906946377 }
- 返回参数说明 略
2.地图新增元素
http://192.168.110.65:9999/node/mgElementInfo/addEle
- post 请求方式
- 入参:MgElementInfo 实体类
{ "address": "", "createBy": "", "createTime": "", "data": "", "display": "", "id": "ddddd", "imgObj": "", "latitude": 0, "longitude": 0, "opacity": 0, "scale": 0, "type": 0, "typeName": "wwwww", "updateBy": "", "updateTime": "" }
- 出参:
{ "success": true, "message": "操作成功!", "code": 200, "result": "添加成功!", "timestamp": 1658907590029 }
- 返回参数说明
3.地图编辑、删除(批量)
-PUT,POST请求,MgElementInfo http://192.168.110.65:9999/node/mgElementInfo/edit
-PUT请求,MgElementInfo集合 http://192.168.110.65:9999/node/mgElementInfo/editBatch
-Delete请求,MgElementInfo http://192.168.110.65:9999/node/mgElementInfo/delete
-Delete请求,ids 多个逗号隔开 http://192.168.110.65:9999/node/mgElementInfo/deleteBatch
[应急物资]
1.获取应急物资
http://192.168.110.65:9999/node/mgElementMaterial/list
- get 请求方式
- 入参: MgElementMaterial 实体类用于过滤 pageNo 分页参数 pageSize 分页参数
- 出参:
{ "success": true, "message": "操作成功!", "code": 200, "result": { "records": [ { "createBy": "admin", "createTime": "2022-07-27", "updateBy": "", "name": "测试应急物资", "sysOrgCode": "", "updateTime": "2022-07-27", "id": "1653392023313f330", "type": "探测设备" } ], "total": 1, "size": 10, "current": 1, "orders": [], "searchCount": true, "pages": 1 }, "timestamp": 1658908359870 }
- 返回参数说明 略
3.应急物资编辑、删除(批量)
-POST请求,MgElementMaterial http://192.168.110.65:9999/node/mgElementMaterial/add
-PUT,POST请求,MgElementMaterial http://192.168.110.65:9999/node/mgElementMaterial/edit
-Delete请求,MgElementMaterial集合 http://192.168.110.65:9999/node/mgElementMaterial/delete
-Delete请求,ids 多个逗号隔开 http://192.168.110.65:9999/node/mgElementMaterial/deleteBatch
-get请求,id http://192.168.110.65:9999/node/mgElementMaterial/queryById
[获取地图组态树下第一条数据]
1.获取地图组态树下第一条数据
http://192.168.110.65:9999/node/mgNodeInfo/queryTreeFirstNodeInfo
- get 请求方式
- 入参:无
- 出参:
{ "success": true, "message": "操作成功!", "code": 200, "result": { "nodeName": "未命名", "otherParamJson": "[{\"filedType\":\"text\",\"filedName\":\"经度\",\"value\":\"\",\"required\":0},{\"filedType\":\"text\",\"filedName\":\"纬度\",\"value\":\"\",\"required\":0},{\"filedType\":\"date\",\"filedName\":\"3D\",\"index\":2,\"value\":\"\",\"required\":0},{\"filedType\":\"text\",\"filedName\":\"最大缩放\",\"value\":\"\",\"required\":0},{\"filedType\":\"text\",\"filedName\":\"最小缩放\",\"value\":\"\",\"required\":0}]", "typeName": "GIS", "fkNodeType": "1473585568158511106", "memo": null, "typeNum": null, "leaderPhone": null, "sort": null, "parentId": "gis00000", "nodeIcon": null, "pollTime": "5", "planImgHigh": 0, "leaderName": null, "planImg": null, "typeIcon": "area_1642574099938.png", "planImgWide": 0, "id": "1557178643363401730", "hotImg": null }, "timestamp": 1660095477286 }
- 返回参数说明
如果节点树下无数据 返回值时result:null 注意空值判断
{
"success": true,
"message": "操作成功!",
"code": 200,
"result": null,
"timestamp": 1660095666573
}