APP对接接口
<h1>[ APP-- 首页]</h1>
<h5>1. 各个系统下设备事件数量总数</h5>
<ul>
<li><code>http://192.168.110.65:9999/terminal/deviceInfo/getRepairRate</code></li>
<li>get 请求方式</li>
<li>入参:
<code>systemId</code> : 系统id (目前该参数后台未使用)</li>
<li>出参:
<pre><code>{
"success": true,
"message": "操作成功!",
"code": 200,
"result": {
"反馈": 0,
"启动": 0,
"屏蔽": 0,
"总数": 1,
"故障": 0,
"报警": 1,
"监管": 0
},
"timestamp": 1658301224982
}</code></pre></li>
<li>返回参数说明 |
略</li>
</ul>
<h5>2. 每个类型下面事件详情</h5>
<ul>
<li><code>http://192.168.110.65:9999/terminal/deviceInfo/getAlarmInfosByType</code></li>
<li>get 请求方式</li>
<li>入参:
<code>type</code> : 类型 (报警、故障、启动、反馈、监管、屏蔽等)</li>
<li>出参:
<pre><code>{
"success": true,
"message": "操作成功!",
"code": 200,
"result": [
{
"nodeName": "国家数字出版基地--YSC-测试数据",
"policeArea": "1",
"address": "烟感测试12",
"gatewayName": null,
"alarmTime": "2022-07-19 21:00:26",
"alarmTypeName": "报警",
"alarmName": "火警(模拟)",
"deviceName": "烟感报警设备"
}
],
"timestamp": 1658301659398
}</code></pre></li>
<li>返回参数说明 |
略</li>
</ul>
<h5>3. 获取所有系统下设备数量及完好率</h5>
<ul>
<li><code>http://192.168.110.65:9999/terminal/deviceInfo/getAllSystemRepairRate</code></li>
<li>get 请求方式</li>
<li>入参:无</li>
<li>出参:
<pre><code>{
"success": true,
"message": "操作成功!",
"code": 200,
"result": [
{
"rate": "1.00",
"count": 9,
"name": "ysc测试系统",
"id": "1540151920277143553"
},
{
"rate": "1.00",
"count": 2,
"name": "煤矿某子系统",
"id": "1544602461612294145"
}
],
"timestamp": 1658301976933
}</code></pre></li>
<li>返回参数说明 |
略</li>
</ul>
<h5>4. 报警、故障统计(一个月或半年的)</h5>
<ul>
<li><code>http://192.168.110.65:9999/terminal/deviceAlarm/getLastMonthAlarm</code></li>
<li>
<p><code>http://192.168.110.65:9999/terminal/deviceAlarm/getSixMonthAlarm</code></p>
</li>
<li>get 请求方式</li>
<li>入参:无</li>
<li>出参:
<pre><code>{
"success": true,
"message": "操作成功!",
"code": 200,
"result": [
{
"alarmType": "1",
"count": 50
},
{
"alarmType": "4",
"count": 3
}
],
"timestamp": 1658302137537
}</code></pre></li>
<li>返回参数说明 |
略</li>
</ul>
<h5>4. 天气、系统管网压力、稳压泵、消防储水罐、消防水泵、环境参数等模拟数据接口</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>[APP-- 视频联动]</h1>
<h5>1.获取视频设备</h5>
<ul>
<li><code>http://192.168.110.65:9999/terminal/deviceInfo/getCameraList</code></li>
<li>get 请求方式</li>
<li>入参:
*pageNo: 分页参数
*pageSize: 分页参数
deviceName :设备 模糊查询名称 (非必填)</li>
<li>出参:
<pre><code>{
"result": {
"total": 1,
"records": [
{
"address": "192.168.110.112",
"videoCode": "http://192.168.110.112:8080/live/34020000001320000002@34020000001320000002.flv",
"flag": null,
"productId": "4028648181fc1c6c0181fc63409c0001",
"system_id": "1540151920277143553",
"ip": "192.168.110.112",
"flag1": null,
"deviceName": "摄像头A1",
"password": "root",
"systemName": "ysc测试系统",
"videotype": "2",
"location": "ddddd",
"brand": "海康",
"username": "root"
}
]
},
"recordsFiltered": 1,
"code": 200,
"success": true
}</code></pre></li>
<li>返回参数说明
略</li>
</ul>
<h1>[APP-- 设备统计]</h1>
<h5>1.设备统计查询搜索</h5>
<ul>
<li><code>http://192.168.110.65:9999/terminal/deviceInfo/totalList</code></li>
<li>get 请求方式</li>
<li>入参:
productName: 设备类型名称用于模糊查询 (非必填)</li>
<li>出参:
<pre><code>{
"success": true,
"message": "操作成功!",
"code": 200,
"result": [
{
"productId": "4028648181936f6d0181936f6d720000",
"productCount": "ysc 报警网关设备(1)"
},
{
"productId": "4028648181936f6d018193705ade0001",
"productCount": "ysc 报警网关子设备(1)"
},
{
"productId": "4028648181ae6e030181af984a060007",
"productCount": "烟感系统网关设备(1)"
},
{
"productId": "4028648181ae6e030181af9c51910009",
"productCount": "烟感222(2)"
},
{
"productId": "4028648181b2bd730181b8ffd343000a",
"productCount": "OPC设备(1)"
},
{
"productId": "4028648181ed6c970181ed6c97040000",
"productCount": "采煤机(1)"
},
{
"productId": "4028648181fc1c6c0181fc63409c0001",
"productCount": "摄像头(1)"
},
{
"productId": "4028ee6581d2ac7f0181d2ac7f000000",
"productCount": "液压站类(1)"
}
],
"timestamp": 1658304271401
}</code></pre></li>
<li>返回参数说明
略
<h5>2.设备统计查询搜索</h5></li>
<li><code>http://192.168.110.65:9999/terminal/deviceInfo/list</code></li>
<li>get 请求方式</li>
<li>入参:
DeviceInfoEntity: 设备信息实体 可用于过滤(非必填)
*pageNo: 分页参数
*pageSize: 分页参数
nodeIds:选择区域过滤必填
node_id:节点id
nodeIdChild:区域子节点
productId: 可过滤对应设备类型数据</li>
<li>出参:
<pre><code>{
"success": true,
"message": "操作成功!",
"code": 200,
"result": {
"records": [
{
"nodeName": null,
"flag": null,
"creatorId": "e9ca23d68d884d4ebb19d07889727dae",
"creatorName": null,
"description": null,
"isOnline": "0",
"propertyConversion": null,
"flag1": null,
"gatewayDeviceId": null,
"delFlag": "0",
"deviceName": "摄像头A1",
"productName": "摄像头",
"deviceStatus": "0",
"isEnable": "0",
"password": "root",
"policeArea": "1",
"systemName": "ysc测试系统",
"qrCode": null,
"orgCode": "A01",
"id": "4028648181fc1c6c0181fc6709580002",
"deviceStatusName": "未激活",
"brand": "海康",
"productType": "0",
"systemId": "1540151920277143553",
"videoCode": "http://192.168.110.112:8080/live/34020000001320000002@34020000001320000002.flv",
"address": "192.168.110.112",
"productId": "4028648181fc1c6c0181fc63409c0001",
"releaseDate": "2022-07-16",
"gatewayName": null,
"storeRule": "0",
"isShield": "0",
"ip": "192.168.110.112",
"childCount": null,
"propertyMap": null,
"deviceInfoProperty": null,
"dataTransportAgreement": "其他",
"nodeTypeName": "直连设备",
"videotype": "2",
"createTime": "2022-07-14 19:10",
"nextMaintainDate": null,
"nodeId": "4028828a79e54a630179e5560eae0001",
"username": "root",
"deviceLocation": "ddddd"
},
{
"nodeName": null,
"flag": null,
"creatorId": "e9ca23d68d884d4ebb19d07889727dae",
"creatorName": null,
"description": null,
"isOnline": null,
"propertyConversion": null,
"flag1": null,
"gatewayDeviceId": null,
"delFlag": "0",
"deviceName": "采煤机HM101",
"productName": "采煤机",
"deviceStatus": "0",
"isEnable": "0",
"password": null,
"policeArea": "1",
"systemName": "煤矿某子系统",
"qrCode": null,
"orgCode": "A01",
"id": "4028648181ed6c970181ed7022fe0001",
"deviceStatusName": "未激活",
"brand": null,
"productType": "1",
"systemId": "1544602461612294145",
"videoCode": null,
"address": "采煤机HM101",
"productId": "4028648181ed6c970181ed6c97040000",
"releaseDate": "2021-06-15",
"gatewayName": null,
"storeRule": "0",
"isShield": "0",
"ip": null,
"childCount": null,
"propertyMap": null,
"deviceInfoProperty": null,
"dataTransportAgreement": null,
"nodeTypeName": null,
"videotype": null,
"createTime": "2022-07-11 21:25",
"nextMaintainDate": null,
"nodeId": "1",
"username": null,
"deviceLocation": null
}
],
"total": 9,
"size": 10,
"current": 1,
"orders": [],
"searchCount": true,
"pages": 1
},
"timestamp": 1658304424490
}</code></pre></li>
<li>返回参数说明
略</li>
</ul>
<h1>[APP-- 资产管理]</h1>
<h5>1.区域 (设备树)</h5>
<ul>
<li><code>http://192.168.110.65:9999/terminal/location/list</code></li>
<li>get 请求方式</li>
<li>入参:
MgTermLocationNodeEntity 区域节点实体类</li>
<li>出参:
<pre><code>{
"success": true,
"message": "操作成功!",
"code": 200,
"result": [
{
"id": "1",
"parentId": null,
"child": [
{
"id": "4028828a78f8e8d10178f8f0a8460001",
"parentId": "1",
"child": null,
"nodeName": "1F",
"orderNum": null,
"principalId": null,
"principalPhone": null,
"ancestor": "001001",
"description": null,
"orgCode": "A01",
"creatorId": "9c7d2654a018423990b2296275d202b2",
"createTime": "2021-04-22",
"delFlag": null,
"deviceNum": 1
},
{
"id": "4028828a796526e40179687728b400dd",
"parentId": "1",
"child": null,
"nodeName": "2F",
"orderNum": null,
"principalId": null,
"principalPhone": null,
"ancestor": "001003",
"description": null,
"orgCode": "A01",
"creatorId": "d9404ff1592d4935a2562666f29b2ee2",
"createTime": "2021-05-14",
"delFlag": null,
"deviceNum": 0
},
{
"id": "4028828a796526e401796877401600de",
"parentId": "1",
"child": null,
"nodeName": "3F",
"orderNum": null,
"principalId": null,
"principalPhone": null,
"ancestor": "001004",
"description": null,
"orgCode": "A01",
"creatorId": "d9404ff1592d4935a2562666f29b2ee2",
"createTime": "2021-05-14",
"delFlag": null,
"deviceNum": 0
},
{
"id": "4028648181936f6d01819379d9800002",
"parentId": "1",
"child": null,
"nodeName": "YSC-测试数据",
"orderNum": null,
"principalId": null,
"principalPhone": null,
"ancestor": "001009",
"description": null,
"orgCode": "A01",
"creatorId": "e9ca23d68d884d4ebb19d07889727dae",
"createTime": "2022-06-24",
"delFlag": null,
"deviceNum": 5
},
{
"id": "4028828a79e54a630179e5560eae0001",
"parentId": "1",
"child": null,
"nodeName": "视频测试",
"orderNum": null,
"principalId": null,
"principalPhone": null,
"ancestor": "001011",
"description": null,
"orgCode": "A01",
"creatorId": "7f3181c9e526489f85ac49a134e6b12a",
"createTime": "2021-06-07",
"delFlag": null,
"deviceNum": 1
}
],
"nodeName": "国家数字出版基地",
"orderNum": 1,
"principalId": null,
"principalPhone": null,
"ancestor": "001",
"description": "这是根节点",
"orgCode": "A01A05",
"creatorId": "1285420224769806337",
"createTime": "2020-08-10",
"delFlag": "0",
"deviceNum": 2
}
],
"timestamp": 1658305392449
}</code></pre></li>
<li>返回参数说明 </li>
</ul>
<h5>2.获取产品信息, 根据不同的参数获取不分页的设备类型实体集合</h5>
<ul>
<li><code>http://192.168.110.65:9999/terminal/productInfo/listAll</code></li>
<li>get 请求方式</li>
<li>入参:
system_id 系统id
nodeType 节点类型
gatewayProductId 网关产品id</li>
<li>出参:
<pre><code>{
"success": true,
"message": "操作成功!",
"code": 200,
"result": [
{
"id": "4028648181fc1c6c0181fc63409c0001",
"productType": "0",
"systemId": "1540151920277143553",
"systemName": "ysc测试系统",
"productName": "摄像头",
"productFirm": null,
"productModel": null,
"serviceLife": null,
"nodeType": "1",
"nodeTypeName": "直连设备",
"gatewayProductId": null,
"gatewayProductName": null,
"networkingType": "其他",
"dataTransportAgreement": "其他",
"drivePath": null,
"description": "摄像头专用设备类型",
"creatorId": "e9ca23d68d884d4ebb19d07889727dae",
"createTime": "2022-07-14 19:06",
"orgCode": "A01",
"delFlag": "0",
"deviceNum": null,
"childProductNum": null
},
{
"id": "4028648181ed6c970181ed6c97040000",
"productType": "1",
"systemId": "1544602461612294145",
"systemName": "煤矿某子系统",
"productName": "采煤机",
"productFirm": null,
"productModel": null,
"serviceLife": null,
"nodeType": null,
"nodeTypeName": null,
"gatewayProductId": null,
"gatewayProductName": null,
"networkingType": null,
"dataTransportAgreement": null,
"drivePath": null,
"description": null,
"creatorId": "e9ca23d68d884d4ebb19d07889727dae",
"createTime": "2022-07-11 21:22",
"orgCode": "A01",
"delFlag": "0",
"deviceNum": null,
"childProductNum": null
},
{
"id": "4028648181ed31c40181ed31c4450000",
"productType": "1",
"systemId": "1544602461612294145",
"systemName": "煤矿某子系统",
"productName": "煤矿矿井机电设备",
"productFirm": null,
"productModel": null,
"serviceLife": null,
"nodeType": null,
"nodeTypeName": null,
"gatewayProductId": null,
"gatewayProductName": null,
"networkingType": null,
"dataTransportAgreement": null,
"drivePath": null,
"description": null,
"creatorId": "e9ca23d68d884d4ebb19d07889727dae",
"createTime": "2022-07-11 20:17",
"orgCode": "A01",
"delFlag": "0",
"deviceNum": null,
"childProductNum": null
},
{
"id": "4028ee6581d2ac7f0181d2ac7f000000",
"productType": "1",
"systemId": "1544602461612294145",
"systemName": "煤矿某子系统",
"productName": "液压站类",
"productFirm": null,
"productModel": null,
"serviceLife": null,
"nodeType": null,
"nodeTypeName": null,
"gatewayProductId": null,
"gatewayProductName": null,
"networkingType": null,
"dataTransportAgreement": null,
"drivePath": null,
"description": null,
"creatorId": "e9ca23d68d884d4ebb19d07889727dae",
"createTime": "2022-07-06 16:42",
"orgCode": "A01",
"delFlag": "0",
"deviceNum": null,
"childProductNum": null
},
{
"id": "4028648181c8a6b80181c8a6b8bb0000",
"productType": "0",
"systemId": "1540151920277143553",
"systemName": "ysc测试系统",
"productName": "opc测试",
"productFirm": null,
"productModel": null,
"serviceLife": null,
"nodeType": "2",
"nodeTypeName": "网关子设备",
"gatewayProductId": "4028648181b2bd730181b8ffd343000a",
"gatewayProductName": null,
"networkingType": null,
"dataTransportAgreement": null,
"drivePath": null,
"description": null,
"creatorId": "e9ca23d68d884d4ebb19d07889727dae",
"createTime": "2022-07-04 17:59",
"orgCode": "A01",
"delFlag": "0",
"deviceNum": null,
"childProductNum": null
},
{
"id": "4028648181b2bd730181b8ffd343000a",
"productType": "0",
"systemId": "1540151920277143553",
"systemName": "ysc测试系统",
"productName": "OPC设备",
"productFirm": "OPC测试厂商",
"productModel": "OPC001",
"serviceLife": null,
"nodeType": "3",
"nodeTypeName": "网关设备",
"gatewayProductId": null,
"gatewayProductName": null,
"networkingType": "以太网",
"dataTransportAgreement": "OPC",
"drivePath": null,
"description": null,
"creatorId": "e9ca23d68d884d4ebb19d07889727dae",
"createTime": "2022-07-01 17:03",
"orgCode": "A01",
"delFlag": "0",
"deviceNum": null,
"childProductNum": null
},
{
"id": "4028648181ae6e030181af9c51910009",
"productType": "0",
"systemId": "1540151920277143553",
"systemName": "ysc测试系统",
"productName": "烟感222",
"productFirm": "烟感222",
"productModel": "烟感222",
"serviceLife": null,
"nodeType": "2",
"nodeTypeName": "网关子设备",
"gatewayProductId": "4028648181ae6e030181af984a060007",
"gatewayProductName": null,
"networkingType": null,
"dataTransportAgreement": null,
"drivePath": null,
"description": "烟感222",
"creatorId": "e9ca23d68d884d4ebb19d07889727dae",
"createTime": "2022-06-29 21:17",
"orgCode": "A01",
"delFlag": "0",
"deviceNum": null,
"childProductNum": null
},
{
"id": "4028648181ae6e030181af984a060007",
"productType": "0",
"systemId": "1540151920277143553",
"systemName": "ysc测试系统",
"productName": "烟感系统网关设备",
"productFirm": "海曼",
"productModel": "ha_5280",
"serviceLife": null,
"nodeType": "3",
"nodeTypeName": "网关设备",
"gatewayProductId": null,
"gatewayProductName": null,
"networkingType": "蜂窝(2G / 3G / 4G / 5G)",
"dataTransportAgreement": "MQTT",
"drivePath": null,
"description": null,
"creatorId": "e9ca23d68d884d4ebb19d07889727dae",
"createTime": "2022-06-29 21:13",
"orgCode": "A01",
"delFlag": "0",
"deviceNum": null,
"childProductNum": null
},
{
"id": "4028648181936f6d018193705ade0001",
"productType": "0",
"systemId": "1540151920277143553",
"systemName": "ysc测试系统",
"productName": "ysc 报警网关子设备",
"productFirm": null,
"productModel": null,
"serviceLife": null,
"nodeType": "2",
"nodeTypeName": "网关子设备",
"gatewayProductId": "4028648181936f6d0181936f6d720000",
"gatewayProductName": null,
"networkingType": null,
"dataTransportAgreement": null,
"drivePath": null,
"description": null,
"creatorId": "e9ca23d68d884d4ebb19d07889727dae",
"createTime": "2022-06-24 10:00",
"orgCode": "A01",
"delFlag": "0",
"deviceNum": null,
"childProductNum": null
},
{
"id": "4028648181936f6d0181936f6d720000",
"productType": "0",
"systemId": "1540151920277143553",
"systemName": "ysc测试系统",
"productName": "ysc 报警网关设备",
"productFirm": null,
"productModel": null,
"serviceLife": null,
"nodeType": "3",
"nodeTypeName": "网关设备",
"gatewayProductId": null,
"gatewayProductName": null,
"networkingType": "以太网",
"dataTransportAgreement": "TCP",
"drivePath": null,
"description": "网关设备-以太网-tcp",
"creatorId": "e9ca23d68d884d4ebb19d07889727dae",
"createTime": "2022-06-24 09:59",
"orgCode": "A01",
"delFlag": "0",
"deviceNum": null,
"childProductNum": null
}
],
"timestamp": 1658305667661
}</code></pre></li>
<li>返回参数说明
略</li>
</ul>
<h5>3.获取产品属性</h5>
<ul>
<li><code>http://192.168.110.65:9999/terminal/productProperty/list</code></li>
<li>get 请求方式</li>
<li>入参:
ProductPropertyEntity 设备类型属性
*pageNo 分页参数
*pageSize 分页参数</li>
<li>出参:
<pre><code>{
"success": true,
"message": "操作成功!",
"code": 200,
"result": {
"records": [
{
"propertyUnit": null,
"isRequired": null,
"productId": "4028648181fc1c6c0181fc63409c0001",
"dataType": "String",
"creatorId": "e9ca23d68d884d4ebb19d07889727dae",
"description": null,
"dataName": "value",
"isPublish": "1",
"delFlag": null,
"propertyLength": null,
"propertyName": "ai报警",
"createTime": "2022-07-14 20:29",
"orgCode": "A01",
"propertyType": "0",
"dataCapture": "1",
"id": "4028648181fc1c6c0181fcaf6bf00012"
},
{
"propertyUnit": null,
"isRequired": null,
"productId": "4028648181fc1c6c0181fc63409c0001",
"dataType": "String",
"creatorId": "e9ca23d68d884d4ebb19d07889727dae",
"description": null,
"dataName": "type",
"isPublish": "1",
"delFlag": null,
"propertyLength": null,
"propertyName": "摄像机状态",
"createTime": "2022-07-14 20:28",
"orgCode": "A01",
"propertyType": "0",
"dataCapture": "1",
"id": "4028648181fc1c6c0181fcaeceac0011"
},
{
"propertyUnit": null,
"isRequired": null,
"productId": "4028648181c8a6b80181c8a6b8bb0000",
"dataType": "int",
"creatorId": "e9ca23d68d884d4ebb19d07889727dae",
"description": null,
"dataName": "www",
"isPublish": "1",
"delFlag": null,
"propertyLength": null,
"propertyName": "ww",
"createTime": "2022-07-04 20:23",
"orgCode": "A01",
"propertyType": "0",
"dataCapture": "1",
"id": "4028648181c92ac30181c92ac3710000"
},
{
"propertyUnit": null,
"isRequired": null,
"productId": "4028648181ae6e030181af9c51910009",
"dataType": "String",
"creatorId": "e9ca23d68d884d4ebb19d07889727dae",
"description": null,
"dataName": "guzhang",
"isPublish": "1",
"delFlag": null,
"propertyLength": null,
"propertyName": "guzhang",
"createTime": "2022-06-30 20:17",
"orgCode": "A01",
"propertyType": "0",
"dataCapture": "1",
"id": "4028648181b2bd730181b48b66b40006"
},
{
"propertyUnit": null,
"isRequired": null,
"productId": "4028648181ae6e030181af9c51910009",
"dataType": "String",
"creatorId": "e9ca23d68d884d4ebb19d07889727dae",
"description": null,
"dataName": "huojing",
"isPublish": "1",
"delFlag": null,
"propertyLength": null,
"propertyName": "huojing",
"createTime": "2022-06-30 11:52",
"orgCode": "A01",
"propertyType": "0",
"dataCapture": "1",
"id": "4028648181b2bd730181b2bd73900000"
},
{
"propertyUnit": null,
"isRequired": null,
"productId": "4028648181ae6e030181af984a060007",
"dataType": "String",
"creatorId": "e9ca23d68d884d4ebb19d07889727dae",
"description": null,
"dataName": "yangan",
"isPublish": "1",
"delFlag": null,
"propertyLength": null,
"propertyName": "yangan",
"createTime": "2022-06-29 21:22",
"orgCode": "A01",
"propertyType": "0",
"dataCapture": "1",
"id": "4028648181ae6e030181afa0eff1000b"
},
{
"propertyUnit": null,
"isRequired": null,
"productId": "4028648181936f6d018193705ade0001",
"dataType": "String",
"creatorId": "e9ca23d68d884d4ebb19d07889727dae",
"description": null,
"dataName": "ysc",
"isPublish": "1",
"delFlag": null,
"propertyLength": null,
"propertyName": "ysc",
"createTime": "2022-06-24 11:38",
"orgCode": "A01",
"propertyType": "0",
"dataCapture": "1",
"id": "4028648181936f6d018193ca6486000a"
}
],
"total": 7,
"size": 10,
"current": 1,
"orders": [],
"searchCount": true,
"pages": 1
},
"timestamp": 1658305932112
}</code></pre></li>
<li>返回参数说明
略</li>
</ul>
<h5>4.获取事件关联规则</h5>
<ul>
<li><code>http://192.168.110.65:9999/terminal/droolsRule/list</code></li>
<li>get 请求方式</li>
<li>入参:
DroolsRuleEntity 规则引擎实体
rule_type:规则类型
deviceId:设备id</li>
<li>出参:
<pre><code>{
"success": true,
"message": "操作成功!",
"code": 200,
"result": [
{
"id": "1540229286470905857",
"deviceId": "4028648181936f6d0181937df3b80008",
"productPropertyId": "4028648181936f6d018193ca6486000a",
"productPropertyName": "ysc",
"eventType": "1",
"eventTypeName": "报警",
"ruleDataJson": "{\"id\":\"1540229286470905857\",\"alarmName\":\"ysc测试事件\",\"stringAlarm\":\"火警\",\"alarmType\":\"1\",\"dealProcessId\":\"processKey1643421197826:1:1273634\",\"processName\":\"电话预警\",\"rejectEvent\":[],\"propertyName\":\"ysc\",\"dataName\":\"ysc\",\"dataType\":\"String\"}",
"rule": "import com.alibaba.fastjson.JSONObject\nglobal org.jeecg.modules.terminal.device.alarm.service.impl.DeviceAlarmServiceImpl service\nrule ysc1\n\twhen\n\t\t$json:JSONObject(ysc == \"火警\")\n\tthen\n\t\t$json.put(\"alarmName\",\"ysc测试事件\");\n\t\t$json.put(\"alarmType\",\"1\");\n\t\t$json.put(\"dealProcessId\",\"processKey1643421197826:1:1273634\");\n\t\tservice.saveAlarm($json);\nend\n",
"rejectEvent": "[]",
"isPublish": "1",
"isPublic": "0",
"description": null,
"creatorId": null,
"createTime": "2022-06-24 15:04",
"ruleResult": "ysc测试事件",
"ruleType": "1",
"orgCode": null
}
],
"timestamp": 1658306134637
}</code></pre></li>
<li>返回参数说明
略</li>
</ul>
<h5>4.获取用户信息</h5>
<ul>
<li><code>http://192.168.110.65:9999/sys/user/list</code></li>
<li>get 请求方式</li>
<li>入参:无</li>
<li>出参:
<pre><code>{
"success": true,
"message": "操作成功!",
"code": 0,
"result": {
"records": [
{
"birthday": null,
"relTenantIds": null,
"sex_dictText": null,
"activitiSync": 1,
"userIdentity": null,
"status_dictText": "正常",
"delFlag": 0,
"workNo": null,
"post": null,
"updateBy": "a01user",
"orgCode": "力传智能",
"cornet": null,
"id": "3ce2bbd4ce9e43d192e062f67109bf34",
"thirdType": null,
"email": "610141012@qq.com",
"clientId": null,
"thirdId": null,
"sex": null,
"departIds_dictText": null,
"telephone": null,
"updateTime": "2022-07-05 18:29:55",
"departIds": "",
"avatar": "temp/mine_male.png",
"realname": "111",
"createBy": "a01user",
"phone": "21312",
"createTime": "2022-07-05 18:29:42",
"username": "ttrtr",
"status": 1
},
{
"birthday": null,
"relTenantIds": null,
"sex_dictText": null,
"activitiSync": 1,
"userIdentity": null,
"status_dictText": "正常",
"delFlag": 0,
"workNo": null,
"post": null,
"updateBy": null,
"orgCode": "力传智能",
"cornet": null,
"id": "50bacca345304fb6b40c567326316c4d",
"thirdType": null,
"email": null,
"clientId": null,
"thirdId": null,
"sex": null,
"departIds_dictText": null,
"telephone": null,
"updateTime": null,
"departIds": "",
"avatar": "temp/mine_male.png",
"realname": "duan",
"createBy": "admin",
"phone": null,
"createTime": "2022-07-05 17:02:34",
"username": "duan",
"status": 1
}
],
"total": 6,
"size": 10,
"current": 1,
"orders": [],
"searchCount": true,
"pages": 1
},
"timestamp": 1658306242609
}</code></pre></li>
<li>返回参数说明
略</li>
</ul>
<h1>[APP--标准查询 ]</h1>
<h5>1.获取 标准查询列表</h5>
<ul>
<li><code>http://192.168.110.65:9999/train/mgStandard/list</code></li>
<li>get 请求方式</li>
<li>入参:
MgStandard 标准实体
*pageNo 分页参数
*pageSize 分页参数</li>
<li>出参:
<pre><code>{
"success": true,
"message": "操作成功!",
"code": 200,
"result": {
"records": [
{
"img": "temp/图标_1658202450438.ico",
"implementationTime": "2022-07-19",
"num": "111",
"bak2": null,
"bak3": null,
"updateTime": "2022-07-19 11:59:11",
"approvalTime": "2022-07-19",
"bak1": null,
"type": "PDF",
"createBy": null,
"filename": "temp/煤矿安全规程2011_1658203149432.pdf",
"createTime": "2022-07-19 11:47:55",
"updateBy": null,
"name": "现代消防装备",
"sysOrgCode": null,
"id": "1549239583584075777"
},
{
"img": "temp/烟感1_1658203188714.jpg",
"implementationTime": "2022-07-28",
"num": "111",
"bak2": null,
"bak3": null,
"updateTime": null,
"approvalTime": "2022-07-20",
"bak1": null,
"type": "PDF",
"createBy": null,
"filename": "temp/煤矿安全规程2011_1658203206234.pdf",
"createTime": "2022-07-19 12:00:31",
"updateBy": null,
"name": "222",
"sysOrgCode": null,
"id": "1549242755207708673"
}
],
"total": 2,
"size": 10,
"current": 1,
"orders": [],
"searchCount": true,
"pages": 1
},
"timestamp": 1658306718015
}</code></pre></li>
<li>返回参数说明
略</li>
</ul>
<h1>[APP--一键上报 ]</h1>
<h5>1.获取 标准查询列表</h5>
<ul>
<li><code>http://192.168.110.65:9999/train/mgStandard/list</code></li>
<li>get 请求方式</li>
<li>入参:
MgStandard 标准实体
*pageNo 分页参数
*pageSize 分页参数</li>
<li>出参:
<pre><code>{
"success": true,
"message": "操作成功!",
"code": 200,
"result": {
"records": [
{
"img": "temp/图标_1658202450438.ico",
"implementationTime": "2022-07-19",
"num": "111",
"bak2": null,
"bak3": null,
"updateTime": "2022-07-19 11:59:11",
"approvalTime": "2022-07-19",
"bak1": null,
"type": "PDF",
"createBy": null,
"filename": "temp/煤矿安全规程2011_1658203149432.pdf",
"createTime": "2022-07-19 11:47:55",
"updateBy": null,
"name": "现代消防装备",
"sysOrgCode": null,
"id": "1549239583584075777"
},
{
"img": "temp/烟感1_1658203188714.jpg",
"implementationTime": "2022-07-28",
"num": "111",
"bak2": null,
"bak3": null,
"updateTime": null,
"approvalTime": "2022-07-20",
"bak1": null,
"type": "PDF",
"createBy": null,
"filename": "temp/煤矿安全规程2011_1658203206234.pdf",
"createTime": "2022-07-19 12:00:31",
"updateBy": null,
"name": "222",
"sysOrgCode": null,
"id": "1549242755207708673"
}
],
"total": 2,
"size": 10,
"current": 1,
"orders": [],
"searchCount": true,
"pages": 1
},
"timestamp": 1658306718015
}</code></pre></li>
<li>返回参数说明
略</li>
</ul>
<h1>[APP--培训学习 ]</h1>
<h5>1.获取 标准查询列表</h5>
<ul>
<li><code>http://192.168.110.65:9999/train/mgTrainCourse/list</code></li>
<li>get 请求方式</li>
<li>入参:
MgTrainCourse 课程实体
*pageNo 分页参数
*pageSize 分页参数</li>
<li>出参:
<pre><code>{
"success": true,
"message": "操作成功!",
"code": 200,
"result": {
"records": [
{
"createBy": "gl",
"img": "temp/3_1657615423712.png",
"createTime": "2021-09-29 15:55:20",
"updateBy": "a01ym",
"materials": "[{\"value1\":\"temp/电厂需求整理_1658144764649.docx\",\"key\":1658144751843},{\"value1\":\"temp/煤矿井下电器设备防爆检查标准及执行说明_1658138194345 (3)_1658144828304.pdf\",\"key\":1658144814011},{\"value1\":\"temp/煤矿井下电器设备防爆检查标准及执行说明_1658138194345_1658144831339.pdf\",\"key\":1658144816994}]",
"name": "灭火救援指挥",
"sysOrgCode": "A01",
"type_dictText": "灭火知识",
"updateTime": "2022-07-18 19:47:13",
"id": "1443122205423161345",
"type": "2",
"papers": "[\"1439130877961977858\"]"
}
],
"total": 11,
"size": 10,
"current": 1,
"orders": [],
"searchCount": true,
"pages": 2
},
"timestamp": 1658306841462
}</code></pre></li>
<li>返回参数说明
略</li>
</ul>
<h5>2.获取 标准查询列表</h5>
<p>获取章节(get请求,入参id 课程id; 章节名称从课程管理接口 materials 字段中获取 )
例如:materials: "[{\"value1\":\"temp/煤矿井下防灭火检查内容及标准_1657618360456.pdf\",\"key\":1657589541885}]" 截取字段 ”煤矿井下防灭火检查内容及标准” 为章节名称</p>
<ul>
<li><code>http://192.168.110.65:9999/train/mgTrainMaterial/queryMaterials</code></li>
<li>get 请求方式</li>
<li>入参:
*id 课程id</li>
<li>出参:
<pre><code>{
"success": true,
"message": "操作成功!",
"code": 200,
"result": [
{
"title": "第1章",
"type": "1",
"key": "1548970475256926210"
}
],
"timestamp": 1658307038175
}</code></pre></li>
<li>返回参数说明
略</li>
</ul>
<h5>3.获取章节内容</h5>
<ul>
<li><code>http://192.168.110.65:9999/train/mgTrainMaterial/queryById</code></li>
<li>get 请求方式</li>
<li>入参:
*id 课件id</li>
<li>出参:
<pre><code>{
"success": true,
"message": "操作成功!",
"code": 200,
"result": {
"id": "1548970475256926210",
"createBy": null,
"createTime": "2022-07-18 17:58:34",
"updateBy": null,
"updateTime": null,
"sysOrgCode": null,
"name": "第1章",
"type": "PDF",
"path": "temp/XXXXX 煤矿机电设备月度强制维护保养计划表_1658138311551.pdf",
"memo": null,
"cid": "1548970475210788865"
},
"timestamp": 1658307323037
}</code></pre></li>
<li>返回参数说明
略</li>
</ul>
<h1>[APP--在线考试 ]</h1>
<h5>1.我的考试(待考)</h5>
<ul>
<li><code>http://192.168.110.65:9999/train/mgTrainExam/myExamList</code></li>
<li>get 请求方式</li>
<li>入参:
MgTrainExam :考试实体类
*pageNo 分页参数
*pageSize 分页参数</li>
<li>出参:
<pre><code>{
"success": true,
"message": "操作成功!",
"code": 200,
"result": {
"records": [
{
"ratePoint": 7,
"pname": "火灾科学概论",
"num": 5,
"updateTime": null,
"pid": "1439130773590917122",
"answerPaperStatus": null,
"users": ",ttrtr,duan,a01admin,a01user,admin,test1",
"timelimit": 20,
"createBy": null,
"totalPoint": 13,
"createTime": "2022-07-20 09:32:51",
"updateBy": null,
"rate": 60,
"name": "t001",
"sysOrgCode": null,
"startTime": "2022-07-20 09:40:36",
"id": "1549567981179162625",
"endTime": "2022-07-21 09:00:36",
"answerPaperId": null,
"status": null
},
{
"ratePoint": 9,
"pname": "p1001",
"num": 6,
"updateTime": null,
"pid": "1549587001781571586",
"answerPaperStatus": "答卷中",
"users": ",ttrtr,duan,a01admin,a01user,admin,test1",
"timelimit": 60,
"createBy": null,
"totalPoint": 16,
"createTime": "2022-07-20 10:49:01",
"updateBy": null,
"rate": 60,
"name": "t0002",
"sysOrgCode": null,
"startTime": "2022-07-20 10:50:29",
"id": "1549587148800315394",
"endTime": "2022-07-21 10:50:29",
"answerPaperId": "1549673320553697282",
"status": null
}
],
"total": 4,
"size": 10,
"current": 1,
"orders": [],
"searchCount": true,
"pages": 1
},
"timestamp": 1658307561677
}</code></pre></li>
<li>返回参数说明
略
<h5>1.我的考试(待考)</h5></li>
<li><code>http://192.168.110.65:9999/train/mgTrainExam/myExamList</code></li>
<li>get 请求方式</li>
<li>入参:
MgTrainExam :考试实体类
*pageNo 分页参数
*pageSize 分页参数</li>
<li>出参:
<pre><code>{
"success": true,
"message": "操作成功!",
"code": 200,
"result": {
"records": [
{
"ratePoint": 7,
"pname": "火灾科学概论",
"num": 5,
"updateTime": null,
"pid": "1439130773590917122",
"answerPaperStatus": null,
"users": ",ttrtr,duan,a01admin,a01user,admin,test1",
"timelimit": 20,
"createBy": null,
"totalPoint": 13,
"createTime": "2022-07-20 09:32:51",
"updateBy": null,
"rate": 60,
"name": "t001",
"sysOrgCode": null,
"startTime": "2022-07-20 09:40:36",
"id": "1549567981179162625",
"endTime": "2022-07-21 09:00:36",
"answerPaperId": null,
"status": null
},
{
"ratePoint": 9,
"pname": "p1001",
"num": 6,
"updateTime": null,
"pid": "1549587001781571586",
"answerPaperStatus": "答卷中",
"users": ",ttrtr,duan,a01admin,a01user,admin,test1",
"timelimit": 60,
"createBy": null,
"totalPoint": 16,
"createTime": "2022-07-20 10:49:01",
"updateBy": null,
"rate": 60,
"name": "t0002",
"sysOrgCode": null,
"startTime": "2022-07-20 10:50:29",
"id": "1549587148800315394",
"endTime": "2022-07-21 10:50:29",
"answerPaperId": "1549673320553697282",
"status": null
}
],
"total": 4,
"size": 10,
"current": 1,
"orders": [],
"searchCount": true,
"pages": 1
},
"timestamp": 1658307561677
}</code></pre></li>
<li>返回参数说明
略</li>
</ul>
<h5>2.历史考试</h5>
<ul>
<li><code>http://192.168.110.65:9999/train/mgTrainExamAnswerPaper/historyExamList</code></li>
<li>get 请求方式</li>
<li>入参:
name 考试名称
*pageNo 分页参数
*pageSize 分页参数</li>
<li>出参:
<pre><code>{
"success": true,
"message": "操作成功!",
"code": 200,
"result": {
"records": [
{
"ratePoint": 7,
"pname": "火灾科学概论",
"num": 5,
"updateTime": null,
"pid": "1439130773590917122",
"answerPaperStatus": null,
"users": ",ttrtr,duan,a01admin,a01user,admin,test1",
"timelimit": 20,
"createBy": null,
"totalPoint": 13,
"createTime": "2022-07-20 09:32:51",
"updateBy": null,
"rate": 60,
"name": "t001",
"sysOrgCode": null,
"startTime": "2022-07-20 09:40:36",
"id": "1549567981179162625",
"endTime": "2022-07-21 09:00:36",
"answerPaperId": null,
"status": null
},
{
"ratePoint": 9,
"pname": "p1001",
"num": 6,
"updateTime": null,
"pid": "1549587001781571586",
"answerPaperStatus": "答卷中",
"users": ",ttrtr,duan,a01admin,a01user,admin,test1",
"timelimit": 60,
"createBy": null,
"totalPoint": 16,
"createTime": "2022-07-20 10:49:01",
"updateBy": null,
"rate": 60,
"name": "t0002",
"sysOrgCode": null,
"startTime": "2022-07-20 10:50:29",
"id": "1549587148800315394",
"endTime": "2022-07-21 10:50:29",
"answerPaperId": "1549673320553697282",
"status": null
}
],
"total": 4,
"size": 10,
"current": 1,
"orders": [],
"searchCount": true,
"pages": 1
},
"timestamp": 1658307561677
}</code></pre></li>
<li>返回参数说明
略
。。。</li>
</ul>
<h1>[APP-- 用户中心]</h1>
<h5>1.用户中心</h5>
<p>/sys/user/getClientId get请求,获取cid
/sys/user/setClientId post请求,保存cid
/sys/user/appEdit put请求,入参id
/sys/user/changePassword put请求,入参SysUser 对象 通过username 匹配
/sys/user/queryById get,入参id,获取系统用户对象</p>
<h1>[app --事件确认] 1-4 个接口</h1>
<h5>1. 需要开启流程</h5>
<ul>
<li><code>http://192.168.110.65:9999/activiti_Edit/customFlow/startWarning</code></li>
<li>get 请求方式</li>
<li>入参:
procDefId: processKey1643421197826:1:1273634
tableFlag: 1
formObj: {"alarmName":"火警","alarmTime":"2022-08-02 17:17:32","deviceLocation":"国家数字出版基地--YSC-测试数据","address":"烟感测试12","eid":"40286481825ddbbd01825ddbbdb50000","policeArea":"1"}</li>
<li>出参:
<pre><code>{
code: 200
message: "1437501"
result: null
success: true
timestamp: 1659432210321
}</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;">message</td>
<td style="text-align: left;">int</td>
<td>返回的processInstanceId</td>
</tr>
</tbody>
</table>
<h5>2. 需要更新状态</h5>
<ul>
<li><code>http://192.168.110.65:9999/terminal/deviceAlarm/edit</code></li>
<li>post 请求方式</li>
<li>入参:
id: "40286481825ddbbd01825ddbbdb50000"
processInstanceId: "1437501" (步骤1)</li>
<li>出参:
<pre><code>{
code: 200
message: "编辑成功!"
result: null
success: true
timestamp: 1659432210564
}</code></pre></li>
<li>返回参数说明
略
<h5>3. 需要更新处理事件流程</h5></li>
<li><code>http://192.168.110.65:9999/terminal/deviceAlarm/updateStatus</code></li>
<li>get 请求方式</li>
<li>入参:
orgCode: A01
address: 烟感测试12
id: 40286481825ddbbd01825ddbbdb50000
alarmType: 1</li>
<li>出参:
<pre><code>{
code: 200
message: "更新成功!"
result: null
success: true
timestamp: 1659432210647
}</code></pre></li>
<li>返回参数说明
略
<h5>4. 获取流程数据</h5></li>
<li><code>http://192.168.110.65:9999/alarmProcess/getList/allRunAlarmProcess?processId=processKey1643421197826:1:1273634&processInstanceId=1437501</code></li>
<li>get 请求方式</li>
<li>入参:
processId:processKey1643421197826:1:1273634
processInstanceId=1437501</li>
<li>出参:
<pre><code>{
"success": true,
"message": "操作成功!",
"code": 200,
"result": [
{
"id": "1437501",
"name": "电话预警",
"key": "processKey1643421197826",
"procDefId": "processKey1643421197826:1:1273634",
"procInstId": "1437501",
"actId": "Activity_14hhtgi",
"currTaskName": "电话确认",
"nodeList": [
{
"nodeName": "开始节点",
"dataMap": {
"eid": "40286481825ddbbd01825ddbbdb50000",
"policeArea": "1",
"address": "烟感测试12",
"alarmTime": "2022-08-02 17:17:32",
"alarmName": "火警",
"startTime": "2022-08-02 17:23",
"userName": "admin",
"deviceLocation": "国家数字出版基地--YSC-测试数据"
},
"formJson": "[{\"ele\":\"input\",\"obj\":{\"type\":\"input\",\"config\":true,\"label\":\"事件名称\",\"placeholder\":\"\",\"inlineBlock\":false,\"require\":false,\"maxLength\":30,\"items\":[{\"label_value\":null,\"label_name\":\"\"}],\"value\":\"\",\"name\":\"alarmName\",\"ruleError\":\"该字段不能为空\",\"relation\":false,\"relation_name\":\"\",\"relation_value\":\"\",\"visibility\":true,\"modalTitle\":\"输入框\",\"loading\":false,\"listIndex\":0}},{\"ele\":\"input\",\"obj\":{\"type\":\"input\",\"config\":true,\"label\":\"时间\",\"placeholder\":\"\",\"inlineBlock\":false,\"require\":false,\"maxLength\":30,\"items\":[{\"label_value\":null,\"label_name\":\"\"}],\"value\":\"\",\"name\":\"alarmTime\",\"ruleError\":\"该字段不能为空\",\"relation\":false,\"relation_name\":\"\",\"relation_value\":\"\",\"visibility\":true,\"modalTitle\":\"输入框\",\"loading\":false,\"listIndex\":1}},{\"ele\":\"input\",\"obj\":{\"type\":\"input\",\"config\":true,\"label\":\"地址\",\"placeholder\":\"\",\"inlineBlock\":false,\"require\":false,\"maxLength\":30,\"items\":[{\"label_value\":null,\"label_name\":\"\"}],\"value\":\"\",\"name\":\"deviceLocation\",\"ruleError\":\"该字段不能为空\",\"relation\":false,\"relation_name\":\"\",\"relation_value\":\"\",\"visibility\":true,\"modalTitle\":\"输入框\",\"loading\":false,\"listIndex\":2}},{\"ele\":\"input\",\"obj\":{\"type\":\"input\",\"config\":true,\"label\":\"设备编号\",\"placeholder\":\"\",\"inlineBlock\":false,\"require\":false,\"maxLength\":30,\"items\":[{\"label_value\":null,\"label_name\":\"\"}],\"value\":\"\",\"name\":\"address\",\"ruleError\":\"该字段不能为空\",\"relation\":false,\"relation_name\":\"\",\"relation_value\":\"\",\"visibility\":true,\"modalTitle\":\"输入框\",\"loading\":false,\"listIndex\":3}},{\"ele\":\"input\",\"obj\":{\"type\":\"input\",\"config\":true,\"label\":\"操作者\",\"placeholder\":\"\",\"inlineBlock\":false,\"require\":false,\"maxLength\":30,\"items\":[{\"label_value\":null,\"label_name\":\"\"}],\"value\":\"\",\"name\":\"userName\",\"ruleError\":\"该字段不能为空\",\"relation\":false,\"relation_name\":\"\",\"relation_value\":\"\",\"visibility\":true,\"modalTitle\":\"输入框\",\"loading\":false,\"listIndex\":4}},{\"ele\":\"input\",\"obj\":{\"type\":\"input\",\"config\":true,\"label\":\"操作时间\",\"placeholder\":\"\",\"inlineBlock\":false,\"require\":false,\"maxLength\":30,\"items\":[{\"label_value\":null,\"label_name\":\"\"}],\"value\":\"\",\"name\":\"startTime\",\"ruleError\":\"该字段不能为空\",\"relation\":false,\"relation_name\":\"\",\"relation_value\":\"\",\"visibility\":true,\"modalTitle\":\"输入框\",\"loading\":false,\"listIndex\":5}}]",
"nodeType": "startEvent",
"nodeId": "Event_1p51aum",
"taskId": null
},
{
"nodeName": "电话确认",
"procId": "1437501",
"formJson": "[{\"ele\":\"phone\",\"obj\":{\"type\":\"phone\",\"config\":true,\"label\":\"电话号码\",\"placeholder\":\"\",\"inlineBlock\":false,\"require\":false,\"maxLength\":30,\"items\":[{\"label_value\":null,\"label_name\":\"\"}],\"value\":\"\",\"name\":\"phone\",\"ruleError\":\"该字段不能为空\",\"relation\":false,\"relation_name\":\"\",\"relation_value\":\"\",\"visibility\":true,\"readonly\":false,\"modalTitle\":\"电话号码\",\"loading\":false,\"listIndex\":0}},{\"ele\":\"input\",\"obj\":{\"type\":\"input\",\"config\":true,\"label\":\"责任人\",\"placeholder\":\"\",\"inlineBlock\":false,\"require\":false,\"maxLength\":20,\"items\":[{\"label_value\":null,\"label_name\":\"\"}],\"value\":\"\",\"name\":\"responsiblePersonName\",\"ruleError\":\"该字段不能为空\",\"relation\":false,\"relation_name\":\"\",\"relation_value\":\"\",\"visibility\":true,\"readonly\":false,\"modalTitle\":\"输入框\",\"loading\":false,\"listIndex\":1}}]",
"nodeType": "userTask",
"nodeId": "Activity_14hhtgi",
"taskId": "1437512"
}
],
"applyer": null
}
],
"timestamp": 1659432713001
}</code></pre></li>
<li>返回参数说明
略</li>
</ul>
<h1>[app --事件确认--下一步事件]</h1>
<h5>【流程2 火情判断: 1是有火,0是无火】</h5>
<h5>1. *流程-任务节点审批通过</h5>
<ul>
<li><code>http://192.168.110.65:9999/flowTask/pass</code></li>
<li>post 请求方式</li>
<li>入参:
id: 1442599 【任务id】
procInstId: 1442588 【流程实例id】
formObj: {} 【自定义表单JSON】 /// 表单内容:如填写电话、责任人 formObj: {"phone":"15191608917","responsiblePersonName":"qqq"}
index: 0 【正在审批的流程】
eid: 402864818281a1ce018281a1ce370000 【应急预案id】</li>
<li>出参:
<pre><code>{
code: 200
message: "操作成功"
result: null
success: true
timestamp: 1660038569018
}</code></pre></li>
<li>返回参数说明
略
<h5>2. 获取应急预案列表</h5></li>
<li><code>http://192.168.110.65:9999emergency/mgEmergencyPlan/list</code></li>
<li>get 请求方式</li>
<li>入参:
无</li>
<li>
<p>出参:</p>
<pre><code>{
"success": true,
"message": "操作成功!",
"code": 200,
"result": {
"records": [
{
"updateId": null,
"policeArea": "1,2",
"createTime": "2021-08-23",
"orgCode": "A01",
"name": "应急预案1",
"creatorId": "d70a754ce3cf4b23b14ebac541504f55",
"updateTime": "2022-05-24",
"id": "4028829e7b71dc2c017b71ddb29d0001"
},
{
"updateId": null,
"policeArea": "2,1",
"createTime": "2021-08-23",
"orgCode": "A01",
"name": "应急预案",
"creatorId": "d70a754ce3cf4b23b14ebac541504f55",
"updateTime": "2022-05-24",
"id": "4028829e7b71dc2c017b71e822870002"
},
{
"updateId": null,
"policeArea": "2",
"createTime": "2021-08-23",
"orgCode": "A01",
"name": "应急预案2",
"creatorId": "d70a754ce3cf4b23b14ebac541504f55",
"updateTime": "2022-05-24",
"id": "4028829e7b72004c017b7217f7cc0002"
},
{
"updateId": null,
"policeArea": "31,1,2",
"createTime": "2022-07-25",
"orgCode": "A01",
"name": "测试",
"creatorId": "e9ca23d68d884d4ebb19d07889727dae",
"updateTime": null,
"id": "40286481823380180182341bcf240006"
}
],
"total": 4,
"size": 10,
"current": 1,
"orders": [
],
"searchCount": true,
"pages": 1
},
"timestamp": 1660042576490
}</code></pre>
</li>
<li>返回参数说明
略
<h5>3. 获取流程数据</h5></li>
<li><code>ttp://192.168.110.65:9999/alarmProcess/getList/allRunAlarmProcess?processId=processKey1643421197826:1:1273634&processInstanceId=1437501</code></li>
<li>get 请求方式</li>
<li>入参:
processId:processKey1643421197826:1:1273634
processInstanceId=1437501</li>
<li>出参:
<pre><code>{
"success": true,
"message": "操作成功!",
"code": 200,
"result": [
{
"id": "1437501",
"name": "电话预警",
"key": "processKey1643421197826",
"procDefId": "processKey1643421197826:1:1273634",
"procInstId": "1437501",
"actId": "Activity_14hhtgi",
"currTaskName": "电话确认",
"nodeList": [
{
"nodeName": "开始节点",
"dataMap": {
"eid": "40286481825ddbbd01825ddbbdb50000",
"policeArea": "1",
"address": "烟感测试12",
"alarmTime": "2022-08-02 17:17:32",
"alarmName": "火警",
"startTime": "2022-08-02 17:23",
"userName": "admin",
"deviceLocation": "国家数字出版基地--YSC-测试数据"
},
"formJson": "[{\"ele\":\"input\",\"obj\":{\"type\":\"input\",\"config\":true,\"label\":\"事件名称\",\"placeholder\":\"\",\"inlineBlock\":false,\"require\":false,\"maxLength\":30,\"items\":[{\"label_value\":null,\"label_name\":\"\"}],\"value\":\"\",\"name\":\"alarmName\",\"ruleError\":\"该字段不能为空\",\"relation\":false,\"relation_name\":\"\",\"relation_value\":\"\",\"visibility\":true,\"modalTitle\":\"输入框\",\"loading\":false,\"listIndex\":0}},{\"ele\":\"input\",\"obj\":{\"type\":\"input\",\"config\":true,\"label\":\"时间\",\"placeholder\":\"\",\"inlineBlock\":false,\"require\":false,\"maxLength\":30,\"items\":[{\"label_value\":null,\"label_name\":\"\"}],\"value\":\"\",\"name\":\"alarmTime\",\"ruleError\":\"该字段不能为空\",\"relation\":false,\"relation_name\":\"\",\"relation_value\":\"\",\"visibility\":true,\"modalTitle\":\"输入框\",\"loading\":false,\"listIndex\":1}},{\"ele\":\"input\",\"obj\":{\"type\":\"input\",\"config\":true,\"label\":\"地址\",\"placeholder\":\"\",\"inlineBlock\":false,\"require\":false,\"maxLength\":30,\"items\":[{\"label_value\":null,\"label_name\":\"\"}],\"value\":\"\",\"name\":\"deviceLocation\",\"ruleError\":\"该字段不能为空\",\"relation\":false,\"relation_name\":\"\",\"relation_value\":\"\",\"visibility\":true,\"modalTitle\":\"输入框\",\"loading\":false,\"listIndex\":2}},{\"ele\":\"input\",\"obj\":{\"type\":\"input\",\"config\":true,\"label\":\"设备编号\",\"placeholder\":\"\",\"inlineBlock\":false,\"require\":false,\"maxLength\":30,\"items\":[{\"label_value\":null,\"label_name\":\"\"}],\"value\":\"\",\"name\":\"address\",\"ruleError\":\"该字段不能为空\",\"relation\":false,\"relation_name\":\"\",\"relation_value\":\"\",\"visibility\":true,\"modalTitle\":\"输入框\",\"loading\":false,\"listIndex\":3}},{\"ele\":\"input\",\"obj\":{\"type\":\"input\",\"config\":true,\"label\":\"操作者\",\"placeholder\":\"\",\"inlineBlock\":false,\"require\":false,\"maxLength\":30,\"items\":[{\"label_value\":null,\"label_name\":\"\"}],\"value\":\"\",\"name\":\"userName\",\"ruleError\":\"该字段不能为空\",\"relation\":false,\"relation_name\":\"\",\"relation_value\":\"\",\"visibility\":true,\"modalTitle\":\"输入框\",\"loading\":false,\"listIndex\":4}},{\"ele\":\"input\",\"obj\":{\"type\":\"input\",\"config\":true,\"label\":\"操作时间\",\"placeholder\":\"\",\"inlineBlock\":false,\"require\":false,\"maxLength\":30,\"items\":[{\"label_value\":null,\"label_name\":\"\"}],\"value\":\"\",\"name\":\"startTime\",\"ruleError\":\"该字段不能为空\",\"relation\":false,\"relation_name\":\"\",\"relation_value\":\"\",\"visibility\":true,\"modalTitle\":\"输入框\",\"loading\":false,\"listIndex\":5}}]",
"nodeType": "startEvent",
"nodeId": "Event_1p51aum",
"taskId": null
},
{
"nodeName": "电话确认",
"procId": "1437501",
"formJson": "[{\"ele\":\"phone\",\"obj\":{\"type\":\"phone\",\"config\":true,\"label\":\"电话号码\",\"placeholder\":\"\",\"inlineBlock\":false,\"require\":false,\"maxLength\":30,\"items\":[{\"label_value\":null,\"label_name\":\"\"}],\"value\":\"\",\"name\":\"phone\",\"ruleError\":\"该字段不能为空\",\"relation\":false,\"relation_name\":\"\",\"relation_value\":\"\",\"visibility\":true,\"readonly\":false,\"modalTitle\":\"电话号码\",\"loading\":false,\"listIndex\":0}},{\"ele\":\"input\",\"obj\":{\"type\":\"input\",\"config\":true,\"label\":\"责任人\",\"placeholder\":\"\",\"inlineBlock\":false,\"require\":false,\"maxLength\":20,\"items\":[{\"label_value\":null,\"label_name\":\"\"}],\"value\":\"\",\"name\":\"responsiblePersonName\",\"ruleError\":\"该字段不能为空\",\"relation\":false,\"relation_name\":\"\",\"relation_value\":\"\",\"visibility\":true,\"readonly\":false,\"modalTitle\":\"输入框\",\"loading\":false,\"listIndex\":1}}]",
"nodeType": "userTask",
"nodeId": "Activity_14hhtgi",
"taskId": "1437512"
}
],
"applyer": null
}
],
"timestamp": 1659432713001
}</code></pre></li>
<li>返回参数说明
略</li>
</ul>
<h5>4. 获取应急预案步骤</h5>
<ul>
<li><code>http://192.168.110.65:9999/emergency/mgEmergencyPlanStep/getAll?planId=1&_t=1660042836</code></li>
<li>get 请求方式</li>
<li>入参:
planId:1 有火,0 无火</li>
<li>出参:
<pre><code>{
code: 200
message: "操作成功!"
result: []
success: true
timestamp: 1659432210647
}</code></pre></li>
<li>返回参数说明
略</li>
</ul>
<h5>【流程3 应急预案 】</h5>
<p>重复1-4 同一个接口,只是注意传参
接口1:
id: 1442975
procInstId: 1442892
formObj: {"status":"1"} 【有火】 /// formObj: {"status":"0"}【无火】
index: 2
eid: 402864818281a1ce0182824c8ff20003</p>
<p>接口4:
planId: 4028829e7b71dc2c017b71ddb29d0001</p>
<h5>【流程3】 结束再下一个流程</h5>
<p>接口1
id: 1442991
procInstId: 1442892
formObj: {"emergencyPlan":"4028829e7b71dc2c017b71ddb29d0001"}
index: 2
eid: 402864818281a1ce0182824c8ff20003</p>
<h5>5. 通过应急预案Id推送所有的应急预案步骤</h5>
<ul>
<li><code>http://192.168.110.65:9999/emergency/mgEmergencyPlan/pushMesByPlanId?id=4028829e7b71dc2c017b71ddb29d0001&_t=1660043962</code></li>
<li>get 请求方式</li>
<li>入参:
id: 4028829e7b71dc2c017b71ddb29d0001 应急步骤id</li>
<li>出参:
<pre><code>{
code: 200
message: "发送成功"
result: null
success: true
timestamp: 1660043962456
}</code></pre></li>
<li>返回参数说明
略</li>
</ul>