求援指挥平台

求援指挥平台


求援应急平台

<p>[TOC]</p> <h1>[危险作业]</h1> <h5>1.危险作业 统计接口</h5> <ul> <li> <p>获取危险作业 统计数据</p> </li> <li><code>http://192.168.110.65:9999/plan/mgDangerousOperation/queryDanger</code></li> <li>get 请求方式</li> <li>入参:无</li> <li>出参: <pre><code>{     "success": true,     "message": "操作成功!",     "code": 200,     "result": [         {             "num": 1,             "type": "动火作业"         }     ],     "timestamp": 1658807750224 }</code></pre></li> <li>返回参数说明 </li> </ul> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">num</td> <td style="text-align: left;">int</td> <td>数量</td> </tr> <tr> <td style="text-align: left;">type</td> <td style="text-align: left;">string</td> <td>类型</td> </tr> </tbody> </table> <h5>2.危险作业 对应作业类型数据</h5> <ul> <li> <p>危险作业 对应类型数据</p> </li> <li>`http://</li> </ul> <p>:9999/plan/mgDangerousOperation/queryDangerByType `</p> <ul> <li>get 请求方式</li> <li>入参: &#42;type: 作业类型</li> <li>出参: <pre><code>{     "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 }</code></pre></li> <li>返回参数说明 <img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=e3e5ec31a7acdea584a19257868cf89b&amp;file=file.png" alt="" /></li> </ul> <h1>[现场上报]</h1> <h5>1.现场上报接口</h5> <ul> <li><code>http://192.168.110.65:9999/terminal/mgAppAlarmReport/list</code></li> <li>get 请求方式</li> <li>入参: MgAppAlarmReport 实体类 pageNo 分页参数 pageSize 分页参数 HttpServletRequest req 请求</li> <li>出参: <pre><code>{     "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 }</code></pre></li> <li>返回参数说明 <img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=1237f5383828ccd2cf75d5e698b0e9c2&amp;file=file.png" alt="" /></li> </ul> <h5>2.现场上报查看更多 参考:监控--上报历史</h5> <ul> <li><code>http://192.168.110.65:9999/terminal/mgAppAlarmReport/list</code></li> </ul> <h1>[报警信息]</h1> <h5>1.获取当前事件列表</h5> <ul> <li> </li> <li><code>http://192.168.110.65:9999/node/mgNodeElementDetails/getEvents</code></li> <li>get 请求方式</li> <li>入参:无</li> <li>出参: <pre><code>{     "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 }</code></pre></li> <li>返回参数说明 略</li> </ul> <h1>[mqtt 连接状态]</h1> <ul> <li> <p>获取mqtt 报警处理客户端连接状态:1已连接0断开</p> </li> <li> <p><code>http://192.168.110.65:9999/terminal/deviceAlarm/getMonitorMqttStatus</code></p> </li> <li> <p>get 入参: 无</p> </li> <li>返回示例 </li> </ul> <pre><code> {     "success": true,     "message": "操作成功!",     "code": 200,     "result": 1,     "timestamp": 1658298904988 }</code></pre> <h5>返回参数说明</h5> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">result</td> <td style="text-align: left;">int</td> <td>1已连接,0断开</td> </tr> </tbody> </table> <h1>[重要设备信息]</h1> <h5>1. 天气、系统管网压力、稳压泵、消防储水罐、消防水泵、环境参数等模拟数据接口</h5> <ul> <li><code>http://192.168.110.65:9999/terminal/deviceAlarm/getMonitorData/weatherData</code> 天气</li> <li><code>http://192.168.110.65:9999/terminal/deviceAlarm/getMonitorData/pressureData</code> 系统管网压力</li> <li><code>http://192.168.110.65:9999/terminal/deviceAlarm/getMonitorData/pumpData</code> 稳压泵</li> <li><code>http://192.168.110.65:9999/terminal/deviceAlarm/getMonitorData/potData</code> 消防储水罐、消防水泵</li> <li><code>http://192.168.110.65:9999/terminal/deviceAlarm/getMonitorData/environmentParam</code> 环境参数</li> <li>get 请求方式</li> <li>入参:无</li> <li> <p>出参:</p> <pre><code>### ### #天气 {     "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 }</code></pre> </li> <li>返回参数说明 | 略</li> </ul> <h1>[重要区域监控]</h1> <h5>1设置重点区域视频(页面 视频轮巡配置,勾选多条) flag=1;取消重点区域视频 flag=0</h5> <ul> <li><code>http://192.168.110.65:9999/terminal/deviceInfo/saveCameraFlag</code></li> <li>post 请求方式</li> <li>入参: ja: &quot;[{\&quot;id\&quot;:\&quot;4028648181fc1c6c0181fc6709580002\&quot;,\&quot;flag\&quot;:1}]&quot;</li> <li>出参: <pre><code>{"success":true,"message":"保存成功!","code":200,"result":null,"timestamp":1659326362091}</code></pre></li> <li>返回参数说明 略</li> </ul> <h5>2.获取视频监控接口</h5> <ul> <li><code>http://192.168.110.65:9999/terminal/deviceInfo/getCameraSum</code></li> <li>get 请求方式</li> <li>入参:无</li> <li>出参: <pre><code>{     "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 }</code></pre></li> <li>返回参数说明 flag 为重点视频,首页展示(统计数量) flagData :数据集合(使用这个即可) flag1:固定流标记 flag1Data :固定流标记集合</li> </ul> <h1>[今日值班]</h1> <h5>1.今日值班</h5> <ul> <li><code>http://192.168.110.65:9999/plan/mgDutyPlan/queryDay</code></li> <li>get 请求方式</li> <li>入参: date: 今日日期2022-7-28</li> <li>出参: <pre><code>{     "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 }</code></pre></li> <li>返回参数说明 </li> </ul> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">area</td> <td style="text-align: left;">String</td> <td>值班区域</td> </tr> </tbody> </table> <h1>[地图相关]</h1> <h5>1.获取所有地图元素</h5> <ul> <li><code>http://192.168.110.65:9999/node/mgElementInfo/list</code></li> <li>get 请求方式</li> <li>入参: MgElementInfo 实体类用于过滤 pageNo 分页参数 pageSize 分页参数</li> <li>出参: <pre><code>{     "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 }</code></pre></li> <li>返回参数说明 略</li> </ul> <h5>2.地图新增元素</h5> <ul> <li><code>http://192.168.110.65:9999/node/mgElementInfo/addEle</code></li> <li>post 请求方式</li> <li>入参:MgElementInfo 实体类 <pre><code>{     "address": "",     "createBy": "",     "createTime": "",     "data": "",     "display": "",     "id": "ddddd",     "imgObj": "",     "latitude": 0,     "longitude": 0,     "opacity": 0,     "scale": 0,     "type": 0,     "typeName": "wwwww",     "updateBy": "",     "updateTime": "" }</code></pre></li> <li>出参: <pre><code>{     "success": true,     "message": "操作成功!",     "code": 200,     "result": "添加成功!",     "timestamp": 1658907590029 }</code></pre></li> <li>返回参数说明 </li> </ul> <h5>3.地图编辑、删除(批量)</h5> <p>-PUT,POST请求,MgElementInfo <code>http://192.168.110.65:9999/node/mgElementInfo/edit</code> -PUT请求,MgElementInfo集合 <code>http://192.168.110.65:9999/node/mgElementInfo/editBatch</code> -Delete请求,MgElementInfo <code>http://192.168.110.65:9999/node/mgElementInfo/delete</code> -Delete请求,ids 多个逗号隔开 <code>http://192.168.110.65:9999/node/mgElementInfo/deleteBatch</code></p> <h1>[应急物资]</h1> <h5>1.获取应急物资</h5> <ul> <li><code>http://192.168.110.65:9999/node/mgElementMaterial/list</code></li> <li>get 请求方式</li> <li>入参: MgElementMaterial 实体类用于过滤 pageNo 分页参数 pageSize 分页参数</li> <li>出参: <pre><code>{     "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 }</code></pre></li> <li>返回参数说明 略</li> </ul> <h5>3.应急物资编辑、删除(批量)</h5> <p>-POST请求,MgElementMaterial <code>http://192.168.110.65:9999/node/mgElementMaterial/add</code> -PUT,POST请求,MgElementMaterial <code>http://192.168.110.65:9999/node/mgElementMaterial/edit</code> -Delete请求,MgElementMaterial集合 <code>http://192.168.110.65:9999/node/mgElementMaterial/delete</code> -Delete请求,ids 多个逗号隔开 <code>http://192.168.110.65:9999/node/mgElementMaterial/deleteBatch</code> -get请求,id <code>http://192.168.110.65:9999/node/mgElementMaterial/queryById</code></p> <h1>[获取地图组态树下第一条数据]</h1> <h5>1.获取地图组态树下第一条数据</h5> <ul> <li><code>http://192.168.110.65:9999/node/mgNodeInfo/queryTreeFirstNodeInfo</code></li> <li>get 请求方式</li> <li>入参:无</li> <li>出参: <pre><code>{     "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 }</code></pre></li> <li>返回参数说明 </li> </ul> <p>如果节点树下无数据 返回值时result:null 注意空值判断</p> <pre><code>{     "success": true,     "message": "操作成功!",     "code": 200,     "result": null,     "timestamp": 1660095666573 }</code></pre>

页面列表

ITEM_HTML