# **目录** ###### 1.- 企业大屏-->获取企业左上角的企业名称 ###### 2.- 获取地图中的风险点列表 ###### 3.- 企业大屏-->获取首页中间地图列表 ###### 4.- 企业大屏-->获取规章制度列表 ###### 5.- 企业大屏-->获取责任体系 ###### 6.- 企业大屏-->获取风险点列表 ###### 7.- 企业大屏-->获取隐患列表 **简要描述:企业大屏接口文档** ## 1.- 企业大屏-->获取企业左上角的企业名称 **请求URL:** - `localhost:8899/3rd/bigScreenData/getCompanyInfo?gId=641&cId=1 ` **请求方式:** - GET **参数:** |参数名|必选|类型|说明| |:---- |:---|:----- |----- | |gId |是 |String |群组ID | |cId |是 |string | 公司ID | **返回示例** ``` { "code": 1, "data": "xxx矿业开发有限责任公司", "msg": "获取成功", "url": "" } ``` **返回参数说明** |参数名|类型|说明| |:----- |:-----|----- |code |int |1、成功 0、失败 |data |String |企业名称 | ##2.获取地图中的风险点列表 **请求URL:** - `localhost:8899/3rd/bigScreenData/riskPointLis?gId=641&cId=1 ` **请求参数:** |参数名|必选|类型|说明| |:---- |:---|:----- |----- | |cId |是 |string|企业id | |gId |是 |string|机构id | **返回示例(测试使用)** ``` { markerData: "[[-536.703125,-71.488281],[-536.703125,156.351563],[-216.628906,156.351563],[-216.628906,-71.488281],[-536.703125,-71.488281]]", riskPointImg: "", dangerImg: "/upload/2019751925581522114.png", markerTitle: "AK4711", isWeightyDangerSrc: 0, riskPointId: 2378, id: 2380, riskPointLevel: 4, markerType: 3 } ``` **返回参数:** |参数名|说明| |:---- |-----| |markerTitle |风险点名称| |markerType|地图数据类型 (1 点 2 线 3 区域)| |markerData |地图数据 | |riskPointId |风险点id | |riskPointLevel |风险点等级 (1-4)重大,较大,一般,较低 | |isWeightyDangerSrc |是否重大危险源 | **简要描述:** ##3. - 企业大屏-->获取首页中间地图列表 **请求URL:** - `localhost:8899/3rd/bigScreenData/getMapList?gId=641&cId=1 ` **请求方式:** - GET **参数:** |参数名|必选|类型|说明| |:---- |:---|:----- |----- | |gId |是 |String |群组ID | |cId |是 |string | 公司ID | **返回示例** ``` { "code": 1, "data": [ { "mapId": 3416, "mapRasterLayer": "/upload/2019729142328114706.png", "mapName": "3D地图" }, { "mapId": 3523, "mapRasterLayer": "/upload/2019851439106632403.jpg", "mapName": "测试地图" }, { "mapId": 3623, "mapRasterLayer": "/upload/2019881647305167520.jpg", "mapName": "55" }, { "mapId": 7676, "mapRasterLayer": "/upload/2019822151113277881.jpg", "mapName": "地图1" }, { "mapId": 7677, "mapRasterLayer": "/upload/2019822151132582805.jpeg", "mapName": "地图2" }, { "mapId": 7785, "mapRasterLayer": "/upload/2019931026473602556.jpg", "mapName": "新地图" }, { "mapId": 7801, "mapRasterLayer": "/upload/201994110155741899.jpg", "mapName": "地图002" } ], "msg": "获取成功", "url": "" } ``` **返回参数说明** |参数名|类型|说明| |:----- |:-----|----- |code |int |1、成功 0、失败 |mapId |int |地图ID |mapRasterLayer |String|图片地址 |mapName |String |地图名称 **简要描述:** ##4. - 企业大屏-->获取规章制度列表 **请求URL:** - `localhost:8899/3rd/bigScreenData/getRulesRegulationsList?gId=641&cId=1` **请求方式:** - GET **参数:** |参数名|必选|类型|说明| |:---- |:---|:----- |----- | |gId |是 |String |群组ID | |cId |是 |string | 公司ID | **返回示例** ``` { "code": 1, "data": [ { "publishTime": "2019-09-20 17:31:02", "postAuthor": "发大幅度发到付的地方", "groupName": "陕西云康", "postPicUrl": "", "postType": "0", "postContent": "1肥嘟嘟", "accountRealName": "捷达测控1", "postDesc": "的失", "postSource": "", "postTitle": "kjhkhkh对对对", "postId": 11124, "cId": 1 }, { "publishTime": "2019-09-11 10:08:48", "postAuthor": "d", "groupName": "陕西云康", "postPicUrl": "", "postType": "5", "postContent": "d", "accountRealName": "捷达测控1", "postDesc": "d", "postSource": "", "postTitle": "d", "postId": 8042, "cId": 1 } ], "msg": "获取成功", "url": "" } ``` **返回参数说明** |参数名|类型|说明| |:----- |:-----|----- |code |int |1、成功 0、失败 |publishTime |String |发布时间 |postAuthor |String|作者 |groupName |String |群组名称 |postPicUrl |String |缩略图 |postType |String |文章-章节-条目 |postContent |String |文章内容 |accountRealName |String |发布者 |postDesc |String |描述 |postSource |String |来源 |postTitle |String |标题 |postId |String |文章ID |cId |String |公司ID ##5.- 企业大屏-->获取责任体系 **请求URL:** - `localhost:8899/3rd/bigScreenData/getDivisionResponsibility?gId=641&cId=1` **请求方式:** - GET **参数:** |参数名|必选|类型|说明| |:---- |:---|:----- |----- | |gId |是 |String |群组ID | |cId |是 |string | 公司ID | **返回示例** ``` { "code": 1, "data": [ { "publishTime": "2019-09-20 17:31:02", "postAuthor": "发大幅度发到付的地方", "groupName": "陕西云康", "postPicUrl": "", "postType": "0", "postContent": "1肥嘟嘟", "accountRealName": "捷达测控1", "postDesc": "的失控", "postSource": "", "postTitle": "kjhkhkh对对对", "postId": 11124, "cId": 1 }, { "publishTime": "2019-09-11 10:08:48", "postAuthor": "d", "groupName": "陕西云康", "postPicUrl": "", "postType": "5", "postContent": "d", "accountRealName": "捷达测控1", "postDesc": "d", "postSource": "", "postTitle": "d", "postId": 8042, "cId": 1 } ], "msg": "获取成功", "url": "" } ``` **返回参数说明** |参数名|类型|说明| |:----- |:-----|----- |code |int |1、成功 0、失败 |publishTime |String |发布时间 |postAuthor |String|作者 |groupName |String |群组名称 |postPicUrl |String |缩略图 |postType |String |文章-章节-条目 |postContent |String |文章内容 |accountRealName |String |发布者 |postDesc |String |描述 |postSource |String |来源 |postTitle |String |标题 |postId |String |文章ID |cId |String |公司ID ##6.- 企业大屏-->获取风险点列表 **请求URL:** - `localhost:8899/3rd/bigScreenData/getRiskPointList?gId=641&cId=1` **请求方式:** - GET **参数:** |参数名|必选|类型|说明| |:---- |:---|:----- |----- | |gId |是 |String |群组ID | |cId |是 |string | 公司ID | **返回示例** ``` { "code": 1, "data": [ { "riskPointImg": null, "riskPointId": 1267, "aName": null, "riskPointName": "空压机检查", "isOutOfControl": 1, "riskPointType": 1, "riskCount": 6, "riskPointLevel": 1, "sGroupName": null }, { "riskPointImg": "/upload/2019916166454544886.jpg", "riskPointId": 1275, "aName": "test1000,捷达测控1", "riskPointName": "加油站", "isOutOfControl": 1, "riskPointType": 1, "riskCount": 6, "riskPointLevel": 1, "sGroupName": "陕西云康" } ], "msg": "获取成功", "url": "" } ``` **返回参数说明** |参数名|类型|说明| |:----- |:-----|----- |code |int |1、成功 0、失败 |riskPointImg |String |风险点图片 |riskPointId |String|风险点Id |aName |String |责任人 |riskPointName |String |风险点名称 |isOutOfControl |String |是否失控1失控0受控 |riskPointType |String |风险点类型(1 设备设施 2 作业活动) |riskCount |String |风险数量 |riskPointLevel |String |风险点等级 |sGroupName |String |责任单位 ##7.- 企业大屏-->获取隐患列表 **请求URL:** - `localhost:8899/3rd/bigScreenData/getHiddenDangerList?gId=641&cId=1` **请求方式:** - GET **参数:** |参数名|必选|类型|说明| |:---- |:---|:----- |----- | |gId |是 |String |群组ID | |cId |是 |string | 公司ID | **返回示例** ``` { "code": 1, "data": [ { "hdStatus": "待整改", "executor": "test1000", "BeforeAnnex": [ { "detailType": 1, "attachPath": "/upload/201975113931774405.jpg", "attachType": "image", "detailId": 5, "id": 2788 }, { "detailType": 1, "attachPath": "/upload/2019719155935517767.jpeg", "attachType": "image", "detailId": 5, "id": 2789 }, { "detailType": 1, "attachPath": "/upload/20197191559389841130.jpg", "attachType": "image", "detailId": 5, "id": 2790 } ], "hdangerId": 5, "hdangerTitle": "隐患标题5", "hdangerLevel": "重大", "hdangerRetifyTime": "2019-06-25 09:56", "status": 2, "sGroupName": "陕西云康", "AfterAnnex": [ { "detailType": 1, "attachPath": "/upload/20197515696213605.jpg", "attachType": "image", "detailId": 2085, "id": 2086 }, { "detailType": 1, "attachPath": "/upload/2019751450261512292.jpg", "attachType": "image", "detailId": 2043, "id": 2044 } ] }, { "hdStatus": "待整改", "executor": null, "BeforeAnnex": [], "hdangerId": 3354, "hdangerTitle": "yh55", "hdangerLevel": "较大", "hdangerRetifyTime": "2019-07-29 16:00", "status": 2, "sGroupName": null, "AfterAnnex": [] }, { "hdStatus": "待验收", "executor": "test1000", "BeforeAnnex": [ { "detailType": 1, "attachPath": "/upload/20197191558572127780.jpg", "attachType": "image", "detailId": 2, "id": 2774 } ], "hdangerId": 2, "hdangerTitle": "隐患标题2", "hdangerLevel": "较大", "hdangerRetifyTime": "2019-07-23 09:56", "status": 3, "sGroupName": "陕西云康", "AfterAnnex": [ { "detailType": 1, "attachPath": "/upload/20197151022105633882.jpg", "attachType": "image", "detailId": 2545, "id": 2546 }, { "detailType": 1, "attachPath": "/upload/20197151022187404913.jpg", "attachType": "image", "detailId": 2545, "id": 2548 } ] }, { "hdStatus": "待整改", "executor": null, "BeforeAnnex": [ { "detailType": 1, "attachPath": "/upload/2019726186564956162.jpg", "attachType": "image", "detailId": 3385, "id": 3386 } ], "hdangerId": 3385, "hdangerTitle": "99999", "hdangerLevel": "较大", "hdangerRetifyTime": "2019-07-27 16:00", "status": 5, "sGroupName": null, "AfterAnnex": [] }, { "hdStatus": "待整改", "executor": "张三", "BeforeAnnex": [ { "detailType": 1, "attachPath": "/upload/20197191559215293013.jpg", "attachType": "image", "detailId": 1, "id": 2784 }, { "detailType": 1, "attachPath": "/upload/20197191559239803521.jpg", "attachType": "image", "detailId": 1, "id": 2785 } ], "hdangerId": 1, "hdangerTitle": "隐患标题1", "hdangerLevel": "一般", "hdangerRetifyTime": "2019-06-24 09:56", "status": 2, "sGroupName": "开发部", "AfterAnnex": [] }, { "hdStatus": "待整改", "executor": "捷达测控1", "BeforeAnnex": [ { "detailType": 1, "attachPath": "/upload/20197191559501542394.jpg", "attachType": "image", "detailId": 6, "id": 2794 }, { "detailType": 1, "attachPath": "/upload/2019719155953115649.jpg", "attachType": "image", "detailId": 6, "id": 2795 } ], "hdangerId": 6, "hdangerTitle": "隐患标题6", "hdangerLevel": "一般", "hdangerRetifyTime": "2019-06-25 17:56", "status": 5, "sGroupName": "陕西云康", "AfterAnnex": [] }, { "hdStatus": "待验收", "executor": "捷达测控1", "BeforeAnnex": [], "hdangerId": 4, "hdangerTitle": "隐患标题4", "hdangerLevel": "较低", "hdangerRetifyTime": "2019-06-25 09:56", "status": 3, "sGroupName": "陕西云康", "AfterAnnex": [] } ], "msg": "获取成功", "url": "" } ``` **返回参数说明** |参数名|类型|说明| |:----- |:-----|----- |code |int |1、成功 0、失败 |hdStatus |String |隐患状态名称 |executor |String| 当前执行人 |hdangerId |String |隐患ID |hdangerTitle |String |隐患名称 |hdangerLevel |String |隐患等级 |hdangerRetifyTime |String |整改截止时间 |sGroupName |String |当前处理部门 |AfterAnnex |String |整改后附件 |BeforeAnnex |String |整改前附件 | |附件参数说明 |detailType |String |1、隐患;2、验收 |attachPath |String |附件URL |attachType |String |附件类型image、video |detailId |String |附件关联ID |id |String |附件Id **备注** - 更多返回错误代码请看首页的错误代码描述