1.POST Address
http://ip:port/EHCommon/alarm/AccidentAlarm/process
2.Parameter Description
| Field | Required or not | Type | Description |
| id_list | √ | Number[] | Incident ID List |
| status | √ | Number | Status 1: Processing, 0: Not Processing |
| comment | √ | Number | Processing Content |
| is_batch | √ | Number | 0: Single Processing, 1: Batch Processing |
3.Success 200
| Field | Type | Description |
| result | String | Response Results |
| type | Number | Interface Response Status [0 Login Failure, 1 Normal Return, 100 Program Error, 101 Parameter Error, 102 Data Reading Failure, 103 Dongle Authentication Failure, 104 No Request Header SN Set or Request Header SN Configuration Error, 105 No Reservation Permission] |
| message | String | Interface Response Status Description Message |
Correct Return Example

1.POST Address
http://ip:port/EHCommon/alarm/AccidentAlarm/getAlarmReasonDropdown
2.Parameter Description
3.Success 200
| Field | Type | Description |
| result | Object[] | Response Result |
| id | Number | Alarm Reason ID |
| content | String | Alarm Reason Text Description |
| type | Number | Interface Response Status [0 Login Failure, 1 Normal Return, 100 Program Error, 101 Parameter Error, 102 Data Reading Failure, 103 Dongle Authentication Failure, 104 Request Header SN Not Set or Request Header SN Configuration Error, 105 No Reservation Permission] |
| message | String | Interface Response Status Description Message |
Correct Return Example

1.POST Address
http://ip:port/EHCommon/alarm/AccidentAlarm/get
2.Parameter Description
| Field | Required or not | Type | Description |
|---|---|---|---|
| homepage_start_time | Number | Start Time | |
| homepage_end_time | Number | End Time | |
| scene_id | Number | Scene ID | |
| building_id | Number | Building ID | |
| floor_id | Number | Floor ID | |
| areas | Object[] | Region, e.g., {“1”: [1]}, key is region group ID, value is region list | |
| status | Number | Alarm Status, 1 Ended, 0 Alarm in Progress | |
| deal_status | Number | Processing Status, 1 Processed, 0 Not Processed | |
| alarm_reason_id | Number | Alarm Reason ID | |
| uuid | Number | uuid | |
| order | √ | String | Sort Method |
| field | √ | String | Sort Field |
| begin | Number | Start Timestamp | |
| end | Number | End Timestamp | |
| time_type | Number | Time Type, 1 Alarm Duration, 2 Alarm Start Time, 3 Alarm End Time | |
| utype | Number | Location Object Type [1 Personnel, 2 Vehicles, 3 Visitors, 5 Materials, 6 Contractors, 0 Unknown Cards] | |
| serial_num | String | Material Number, Fuzzy Query | |
| person_name | String | Employee Name, Fuzzy Query | |
| visitor_name | String | Visitor Name, Fuzzy Query | |
| licence | String | Vehicle License Plate Number, Fuzzy Query | |
| driver | String | Vehicle Driver, Fuzzy Query | |
| material_name | String | Material Name, Fuzzy Query | |
| contractor_name | String | Contractor Name, Fuzzy Query | |
| card_id | Number | Card Number | |
| work_type_id | Number | Employee Job ID, Contractor Job ID | |
| duty_name | Number | Position ID | |
| degree | Number | Education | |
| sex | Number | Employee Gender, Visitor Gender, Contractor Gender | |
| person_class | Number | Employee Classification | |
| nation | Number | Employee Ethnicity, Contractor Ethnicity | |
| branch_id | Number | Department Visitor | |
| source | Number | Data Source Contractor | |
| unit_id | Number | Contractor Unit Vehicle | |
| type | Number | Vehicle Type, Material Type | |
| page | Number | ||
| limit | Number |
3.Success 200
| Field | Type | Description |
|---|---|---|
| result | Object | Result Set |
| count | Number | Quantity |
| data | Object[] | Accident Alarm Data |
| id | Number | id |
| bs_id | String | Base Station ID |
| bs_name | String | Base Station Name |
| location | String | Coordinates |
| alarm_id | String | ID corresponding to Alarm Reason |
| status | Number | Alarm Status [0 Alarm in Progress, 1 Completed] |
| start_time | Number | Alarm Start Time |
| end_time | Number | Alarm End Time |
| duration | Number | Alarm Duration |
| deal_status | Number | Status, 0 Unprocessed, 1 Processed |
| deal_person | String | Handler |
| deal_time | String | Handling Time |
| comment | String | Handling Content |
| utype | Number | Location Object Type [1 Personnel, 2 Vehicles, 3 Visitors, 5 Materials, 6 Contractors, 0 Unknown Cards] |
| name | String | Location Object Name [Employee Name, Visitor Name, License Plate Number, Material Number, Contractor Name] |
| related_info | String | Location Object Related Information [Department Name – Personnel Category, Unit, Vehicle Type – Driver Name, Material Type – Material Name, Unit – Job Type] |
| card_id | Number | Location Object Card Number |
| uuid | Number | Location Object UUID |
| map | String | Location Map |
| floor_id | String | Floor ID |
| show_area | String | Location Area |
| areas | Object[] | Location Area (for redirection) |
| area_id | Number | Area ID |
| area_name | Number | Area Name |
| type | Number | Area Type |
| group_id | Number | Area Group ID |
| group_name | Number | Area Group Name |
| type | Number | Interface response status [0 Login invalid, 1 Normal return, 100 Program error, 101 Parameter error, 102 Data read failure, 103 Dongle authentication failure, 104 No request header SN set or request header SN configuration error, 105 No reservation permission] |
| message | String | Interface response status description message |
Correct Return Example
{
“type”: 1,
“message”: “Request success”,
“result”: {
“count”: 24,
“data”: [
{
“id”: 24,
“utype”: 0,
“name”: “”,
“uuid”: 0,
“card_id”: 1909003,
“bs_id”: “0x59ca”,
“alarm_id”: “0”,
“status”: 0,
“start_time”: 1692352981,
“end_time”: null,
“scene_id”: 1,
“building_id”: 1,
“floor_id”: 1,
“area_id_list”: “[1, 4, 5, 9, 13, 15]”,
“location”: “x:6.00, y:7.80, z:6.00”,
“duration”: 19083710,
“deal_status”: 0,
“deal_time”: null,
“comment”: null,
“deal_person”: null,
“related_info”: null,
“bs_name”: null,
“map”: “场景1-建筑1-楼层1”,
“areas”: [
{
“id”: 1,
“type”: 1,
“area_name”: “全部”,
“group_id”: null,
“group_name”: null,
“area_id”: 1
},
{
“id”: 4,
“type”: 10,
“area_name”: “dier”,
“group_id”: null,
“group_name”: null,
“area_id”: 4
},
{
“id”: 5,
“type”: 9,
“area_name”: “diyi”,
“group_id”: null,
“group_name”: null,
“area_id”: 5
},
{
“id”: 9,
“type”: 1,
“area_name”: “全局”,
“group_id”: null,
“group_name”: null,
“area_id”: 9
},
{
“id”: 13,
“type”: 1,
“area_name”: “β”,
“group_id”: null,
“group_name”: null,
“area_id”: 13
},
{
“id”: 15,
“type”: 1,
“area_name”: “SS”,
“group_id”: null,
“group_name”: null,
“area_id”: 15
}
],
“show_area”: “全部,dier,diyi,全局,β,SS”
}
]
}
}
1.POST Address
http://ip:port/EHCommon/alarm/AccidentAlarm/export
2.Parameter Description
| Field | Required or not | Type | Description |
| scene_id | Number | Scene ID | |
| building_id | Number | Building ID | |
| floor_id | Number | Floor ID | |
| areas | Object[] | Region, such as {“1”: [1]}, key is region group ID, value is region list | |
| status | Number | Alarm status, 1 ended, 0 alarm in progress | |
| deal_status | Number | Processing status, 1 processed, 0 not processed | |
| alarm_reason_id | Number | Alarm reason ID | |
| id_list | Number[] | Accident alarm ID list | |
| order | √ | String | Sorting method |
| field | √ | String | Sorting field |
| begin | Number | Start timestamp | |
| end | Number | End timestamp | |
| time_type | Number | Time type, 1 alarm duration, 2 alarm start time, 3 alarm end time | |
| utype | Number | Location object type [1 personnel, 2 vehicles, 3 visitors, 5 materials, 6 contractors, 0 unfamiliar cards] | |
| serial_num | String | Material number, fuzzy query | |
| person_name | String | Employee name, fuzzy query | |
| visitor_name | String | Visitor name, fuzzy query | |
| licence | String | Vehicle license plate number, fuzzy query | |
| driver | String | Vehicle driver, fuzzy query | |
| material_name | String | Material name, fuzzy query | |
| contractor_name | String | Contractor name, fuzzy query | |
| card_id | Number | Card number | |
| work_type_id | Number | Employee job ID, contractor job ID | |
| duty_name | Number | Position ID | |
| degree | Number | Education | |
| sex | Number | Employee gender, visitor gender, contractor gender | |
| person_class | Number | Employee classification | |
| nation | Number | Employee ethnicity, contractor ethnicity | |
| branch_id | Number | Department Visitor | |
| source | Number | Data source Contractor | |
| unit_id | Number | Contractor unit Vehicle | |
| type | Number | Vehicle type, material type |
3.Success 200
1.POST Address
http://ip:port/EHCommon/alarm/AccidentAlarm/batchDelete
2.Parameter Description
| Field | Required or not | Type | Description |
| id_list | √ | Number[] | Accident ID List |
3.Success 200
| Field | Type | Description |
| ype | Number | Response Status Code |
| message | String | Response Message |
| result | String | Response Result |
{“type”:1,”message”:”Request succeeded”,”result”:”Successfully deleted 20 pieces of data in batches”}

1.POST Address
http://ip:port/EHCommon/pit/pitRecord/leaveUpDownArea
2.Parameter Description
| Field | Required or not | Type | Description |
| id | √ | Number | Record ID |
| uuid | √ | Number | Personnel UUID |
| leave_time | √ | Number | Time of arrival at the well, second-level Unix timestamp |
3.Success 200
| Field | Type | Description |
| message | String | API Request Message |
| type | Number | API Request Status |
| result | Object | Leave Result |
| id | Number | Modify ID |
Correct Return Example

1.POST Address
http://ip:port/EHCommon/pit/pitRecord/inUpDownArea
2.Parameter Description
| Field | Required or not | Type | Description |
| scene_id | Number | Scene ID | |
| id | Number | Record ID (with ID indicates entering calibration; without ID indicates adding) | |
| uuid | √ | Number | Personnel UUID |
| in_time | √ | Number | Upon arrival time (second-level Unix timestamp) |
3.Success 200
| Field | Type | Description |
| message | String | API Request Message |
| type | Number | API Request Status |
| result | Object | Leave Result |
| id | Number | Modify ID |
Correct Return Example

1.POST Address
http://ip:port/EHCommon/pit/pitRecord/getWeekPitRecord
2.Parameter Description
| Field | Required or not | Type | Description |
| start_time | Number | Start Time | |
| end_time | Number | End Time | |
| branch_id | Number | Department ID | |
| duty_id | Number | Job ID | |
| person_class_id | Number | Personnel Category ID | |
| card_id | Number | Card Number | |
| person_name | String | Employee Name | |
| visitor_name | String | Visitor Name | |
| contractor_name | String | Contractor Name | |
| driver | String | Driver | |
| material_name | String | Material Name | |
| licence | String | License Plate Number | |
| serial_num | String | Material Number | |
| truck_type_id | String | Vehicle Type | |
| material_type_id | String | Material Type | |
| utype | Number[] | 1 Employee 2 Vehicle 3 Visitor 5 Material 6 Contractor |
|
| page | Number | Pagination | |
| limit | Number | Pagination Size |
3.Success 200
| Field | Type | Description |
| message | String | Interface Request Message |
| type | Number | Interface Request Status |
| result | Object | Return Result |
| data | Object[] | List of Mine Dive/Retreat Records |
| uuid | Number | Employee UUID |
| card_id | Number | Card Number |
| down_pit_count | Number | Number of Dives |
| up_pit_count | Number | Number of Returns |
| up_down_time | String | Date [Year-Week] |
| stay_time | String | Dive Duration |
| person_name | String | Employee Name |
| job_num | String | Employee ID |
| duty_name | String | Position |
| branch_name | String | Department Name |
| related_info | String | Related Information |
| person_class_name | String | Employee Category Name |
| utype | Number | 1 Employee 2 Vehicles 3 Visitors 5 Materials 6 Contractors |
| name | String | Location Object Name [Employee Name, Visitor Name, License Plate Number, Material Number, Contractor Name] |
| count | Number | Total Number of Mine Dive/Retreat Records |
Correct Return Example

1.POST Address
http://ip:port/EHCommon/pit/pitRecord/getValidScene
2.Parameter Description
3.Success 200
| Field | Type | Description |
| message | String | Interface Request Message |
| batchDelete | Number | Interface Request Status |
| result | Object[] | Result List |
| scene_name | String | Scenario Name |
| scene_id | Number | Scenario ID |
| high_alarm_type | Number | Entrance/Exit Exceedance Type (Rule 0: None, Rule 1: Yes) |
| low_alarm_type | String | Entrance/Exit Staff Shortage Type (Rule 0: None, Rule 1: Yes) |
Correct Return Example

1.POST Address
http://ip:port/EHCommon/pit/pitRecord/getUpDownPitStatusForDay
2.Parameter Description
3.Success 200
| Field | Type | Description |
| message | String | API Request Message |
| type | Number | API Request Status |
| result | Object | Keys are filter criteria, values are displayed on the page; 1 indicates above the well, 2 indicates below the well, all values are concatenated by the page. |
Correct Return Example

1. POST Address
http://ip:port/EHCommon/pit/pitRecord/getUpDownPitStatusForAll
2. Parameter Description
3. Success 200
| Field | Type | Description |
| message | String | API Request Message |
| type | Number | API Request Status |
| result | Object | Keys are filter criteria, values are displayed on the page; 1 indicates going up, 2 indicates going down, all concatenated by the page. |
Correct Return Example

1.POST Address
http://ip:port/EHCommon/pit/pitRecord/getRecordStatistics
2.Parameter Description
| Field | Required or not | Type | Description |
| type_id | √ | Number | ID Type: 1. Scene; 2. Entrance/Exit Overload; 3. Entrance/Exit Staff Shortage |
| scene_id | √ | Number | Scenario ID |
3.Success 200
| Field | Type | Description |
| result | Object | Results Set |
| person_pit_num | Number | Employees Underground Number |
| visitor_pit_num | Number | Visitors Underground Number |
| truck_pit_num | Number | Vehicles Underground Number |
| material_pit_num | Number | Supplies Underground Number |
| contractor_pit_num | Number | Contractors Underground Number |
| pit_alarm_num | Number | Underground Overcapacity Limit Number of Personnel |
| card_type_num_list | Object[] | List of Card Quantities by Card Type |
| name | String | Card Type |
| person_pit_num | Number | Employee Card Type Quantity |
| truck_pit_num | Number | Vehicle Card Type Quantity |
| material_pit_num | Number | Supplies Card Type Quantity |
| visitor_pit_num | Number | Visitor Card Type Quantity |
| contractor_pit_num | Number | Contractor Card Type Quantity |
| pit_rule_flag | Number | 0 Display Type Card |
Correct Return Example
![]()
1.POST Address
http://ip:port/EHCommon/pit/pitRecord/getRecordByPerson
2.Parameter Description
| Field | Required or not | Type | Description |
| scene_id | √ | Number | Scene ID |
| query_way | √ | Number | Query Method: 1. Query by Department, 2. Query by Job Type, 3. Query by Position, 4. Statistical Statistics by Personnel Category |
| order | √ | Object | Sorting Method: [{“id” => 1, “pid” => 0, “sorting”: 1}] |
3.Success 200
| Field | Type | Description |
| result | Object | Result Set |
| res | Object[] | Classification and Statistical Result Set |
result – Statistics by department
| Field | Type | Description |
| id | Number | Department ID |
| pid | Number | Parent |
| name | String | Department Name |
| person_count | Object | Department Name Employee Count |
| node | Object[] | Child Department Data |
| name | String | Child Department Name |
| id | Number | Child Department ID |
| pid | Number | Parent |
| person_count | Object[] | Department Name Employee Count |
result – Statistics by job type
| Field | Type | Description |
| id | Number | Job ID |
| pid | Number | Parent |
| name | String | Job Name |
| person_count | Number | Number of Employees under Job |
result – Statistics by job title
| Field | Type | Description |
| id | Number | Job ID |
| pid | Number | Parent |
| name | String | Job Title |
| person_count | Number | Number of Employees under this Job |
result – Statistics by personnel category
| Field | Type | Description |
| id | Number | Personnel Category ID |
| pid | Number | Parent |
| name | String | Personnel Category Name |
| person_count | Number | Number of Personnel under Personnel Category |
Correct Return Example
1.POST Address
http://ip:port/EHCommon/pit/pitRecord/getPitRecordPrimitive
2.Parameter Description
| Field | Required or not | Type | Description |
| start_time | Number | Start Time | |
| end_time | Number | End Time | |
| page | Number | Pagination | |
| limit | Number | Pagination Size | |
| up_down_pit | Number | Up/Down Mine [1 Up Mine 2 Down Mine] | |
| utype | Number | Location Object Type [1 Personnel, 2 Vehicles, 3 Visitors, 5 Materials, 6 Contractors, 0 Unknown Cards] | |
| serial_num | String | Material Number, Fuzzy Search | |
| person_name | String | Employee Name, Fuzzy Search | |
| visitor_name | String | Visitor Name, Fuzzy Search | |
| licence | String | Vehicle License Plate Number, Fuzzy Search | |
| driver | String | Vehicle Driver, Fuzzy Search | |
| material_name | String | Material Name, Fuzzy Search | |
| contractor_name | String | Contractor Name, Fuzzy Search | |
| card_id | Number | Card Number | |
| work_type_id | Number | Employee Job ID, Contractor Job ID | |
| duty_name | Number | Position ID | |
| degree | Number | Education Level | |
| sex | Number | Employee Gender, Visitor Gender, Contractor Gender | |
| person_class | Number | Employee Classification | |
| nation | Number | Employee Ethnicity, Contractor Ethnicity | |
| branch_id | Number | Department Visitors | |
| source | Number | Data Source Contractors | |
| unit_id | Number | Contractor Units Vehicles | |
| type | Number | Vehicle Type, Material Type |
3.Success 200
| Field | Type | Description |
| message | String | Interface Request Message |
| type | Number | Interface Request Status |
| result | Object | Return Result |
| data | Object[] | List of Mine Dive/Earth Dive Records |
| id | Number | Mine Dive/Earth Dive Record ID |
| uuid | Number | Employee UUID |
| card_id | Number | Card Number |
| up_down_time | String | Mine Dive/Earth Dive Time |
| person_name | String | Employee Name |
| type | Number | Action [0 Down Mine 1 Up Mine] |
| up_down_pit | String | Mine Dive/Earth Dive [Down Mine Up Mine] |
| job_num | String | Employee ID |
| duty_name | String | Position |
| branch_name | String | Department Name |
| related_info | String | Related Information |
| person_class_name | String | Employee Category Name |
| utype | Number | 1 Employee 2 Vehicle 3 Visitor 5 Materials 6 Contractor |
| name | String | Location Object Name [Employee Name, Visitor Name, License Plate Number, Material Number, Contractor Name] |
| count | Number | Total Number of Mine Dive/Earth Dive Records |
Correct Return Example

1.POST Address
http://ip:port/EHCommon/pit/pitRecord/getPitRecordDetail
2.Parameter Description
| Field | Required or not | Type | Description |
| up_down_time | √ | Number | Search for records for this day/week/month based on the time of entry/exit from the well. |
| type | √ | Number | Type [0 days 1 week 2 months] |
| uuid | √ | Number | Employee UUID |
3.Success 200
| Field | Type | Description |
| message | String | Interface Request Message |
| type | Number | Interface Request Status |
| result | Object | Return Result |
| data | Object[] | List of Well Dive/Exit Records |
| down_time | String | Dive Time |
| up_time | String | Exit Time |
| stay_time | String | Distance Time |
| count | Number | Total Number of Well Dive/Exit Records |
Correct Return Example

1.POST Address
http://ip:port/EHCommon/pit/pitRecord/getPitLocatorData
2.Parameter Description
| Field | Required or not | Type | Description |
| person_name | String | Employee Name | |
| job_num | String | Employee ID | |
| visitor_name | String | Visitor Name | |
| licence | String | License Plate | |
| serial_num | String | Material Number | |
| card_id | String | Card Number | |
| accurate_card_id | String | Card Number Detailed Search | |
| contractor_name | String | Contractor Name |
3.Success 200
| Field | Type | Description |
| result | Object[] | Result Set |
| uuid | Number | Unique ID |
| utype | Number | Tag Type (1 Personnel/2 Vehicle/3 Visitor/4 Vehicle Card/5 Supplies 6 Contractor) |
| floor_id | Number | Floor ID |
| card_id | Number | Card Number |
| floor_name | String | Floor Name |
| building_id | Number | Building ID |
| building_name | String | Building Name |
| scene_id | Number | Scene ID |
| scene_name | String | Scene Name |
| person_name | String | Personnel Name |
| job_num | String | Employee ID |
| visitor_name | String | Visitor Name |
| unit | String | Visitor Company |
| licence | String | License Plate |
| driver | String | Driver Name |
| branch_id | Number | Department ID |
| branch_name | String | Department Name |
| relation | Object | (For vehicle information, there are sub-cards corresponding to the main card information) |
| serial_num | String | Supply Number |
| material_name | String | Supply Name |
| type_name | String | Supply Type Name |
| contractor_name | String | Contractor Name |
| work_type_name | String | Contractor Job Type |
| unit_name | String | Contractor Company Name |
Correct Return Example

1.POST Address
http://ip:port/EHCommon/pit/pitRecord/getDayPitRecord
2.Parameter Description
| Field | Required or not | Type | Description |
| start_time | Number | Start Time | |
| end_time | Number | End Time | |
| branch_id | Number | Department ID | |
| duty_id | Number | Job ID | |
| person_class_id | Number | Personnel Category ID | |
| card_id | Number | Card Number | |
| person_name | String | Employee Name | |
| visitor_name | String | Visitor Name | |
| contractor_name | String | Contractor Name | |
| driver | String | Driver | |
| material_name | String | Material Name | |
| licence | String | License Plate Number | |
| serial_num | String | Material Number | |
| truck_type_id | String | Vehicle Type | |
| material_type_id | String | Material Type | |
| utype | Number[] | 1 Employee 2 Vehicle 3 Visitor 5 Material 6 Contractor |
|
| page | Number | Pagination | |
| limit | Number | Pagination Size |
3.Success 200
| Field | Type | Description |
| message | String | Interface Request Message |
| type | Number | Interface Request Status |
| result | Object | Return Result |
| data | Object[] | List of Mine Dive/Retreat Records |
| uuid | Number | Employee UUID |
| card_id | Number | Card Number |
| down_pit_count | Number | Number of Dives |
| up_pit_count | Number | Number of Returns |
| up_down_time | String | Date [Year-Month] |
| stay_time | String | Dive Duration |
| person_name | String | Employee Name |
| job_num | String | Employee ID |
| duty_name | String | Position |
| branch_name | String | Department Name |
| related_info | String | Related Information |
| utype | Number | 1. Employee 2. Vehicle 3. Visitor 5. Materials 6. Contractor |
| name | String | Location Object Name [Employee Name, Visitor Name, License Plate Number, Material Number, Contractor Name] |
| count | Number | Total Number of Mine Dive/Retreat Records |
Correct Return Example

1.POST Address
http://ip:port/EHCommon/pit/pitRecord/getDayPitRecord
2.Parameter Description
| Field | Required or not | Type | Description |
|---|---|---|---|
| start_time | Number | Start Time | |
| end_time | Number | End Time | |
| page | Number | Pagination | |
| limit | Number | Pagination Size | |
| up_down_status | Number | Up/Down Well Status [1 Up Well 2 Down Well] | |
| uuid_list | Number[] | UUID List | |
| utype | Number | Location Object Type [1 Personnel, 2 Vehicles, 3 Visitors, 5 Materials, 6 Contractors, 0 Unknown Cards] | |
| serial_num | String | Material Number, Fuzzy Search | |
| person_name | String | Employee Name, Fuzzy Search | |
| visitor_name | String | Visitor Name, Fuzzy Search | |
| licence | String | Vehicle License Plate Number, Fuzzy Search | |
| driver | String | Vehicle Driver, Fuzzy Search | |
| material_name | String | Material Name, Fuzzy Search | |
| contractor_name | String | Contractor Name, Fuzzy Search | |
| card_id | Number | Card Number | |
| work_type_id | Number | Employee Job ID, Contractor Job ID | |
| duty_name | Number | Position ID | |
| degree | Number | Education Level | |
| sex | Number | Employee Gender, Visitor Gender, Contractor Gender | |
| person_class | Number | Employee Category | |
| nation | Number | Employee Ethnicity, Contractor Ethnicity | |
| branch_id | Number | Department, Visitor | |
| source | Number | Data Source, Contractor | |
| unit_id | Number | Contractor Organization, Vehicle | |
| type | Number | Vehicle Type, Material Type |
3.Success 200
| Field | Type | Description |
|---|---|---|
| message | String | Interface Request Message |
| type | Number | Interface Request Status |
| result | Object | Return Result |
| data | Object[] | List of Mine Access Records |
| uuid | Number | Employee UUID |
| utype | Number | 1 Employee |
| card_id | Number | 2 Vehicle |
| down_pit_count | Number | 3 Visitor |
| up_pit_count | Number | 5 Materials |
| up_down_time | String | 6 Contractor |
| stay_time | String | Card Number |
| name | String | Number of Mining Descendants |
| job_num | String | Number of Returning Mines |
| duty_name | String | Date [Year-Month-Day] |
| branch_name | String | Mine Access Duration |
| person_class_name | String | Name |
| up_down_status | String | Employee ID |
| last_down_time | Number | Position |
| latest_in_pit | Number | Department Name |
| related_info | String | Employee Category Name |
| id_list | String | Mine Access Status [Underground, Aboveground] |
| count | Number | Last Mining Descendant Time (used for leaving button detection) |
Correct Return Example

1.POST Address
http://ip:port/EHCommon/pit/pitRecord/exportWeekPitRecord
2.Parameter Description
| Field | Required or not | Type | Description |
| start_time | Number | Downhole Time | |
| end_time | Number | Uphole Time | |
| branch_id | Number | Department ID | |
| duty_id | Number | Job ID | |
| person_class_id | Number | Personnel Category ID | |
| card_id | Number | Card Number | |
| person_name | String | Employee Name | |
| visitor_name | String | Visitor Name | |
| driver | String | Driver | |
| material_name | String | Material Name | |
| licence | String | License Plate Number | |
| serial_num | String | Material Number | |
| truck_type_id | String | Vehicle Type | |
| material_type_id | String | Material Type | |
| page | Number | Pagination | |
| limit | Number | Pagination Size | |
| utype | Number | Location Target Type [1 Personnel, 2 Vehicles, 3 Visitors, 5 Materials, 6 Contractors, 0 Unknown Cards] | |
| contractor_name | String | Contractor Name, Fuzzy Search |
3.Success 200
1.POST Address
http://ip:port/EHCommon/pit/pitRecord/exportRecord
2.Parameter Description
| Field | Required or not | Type | Description |
|---|---|---|---|
| uuid | Number | Binding Object ID | |
| card_id | Number | Card Number | |
| begin | Number | Start Time | |
| end | Number | End Time | |
| time_type | Number | Time Type, 1 Enter Time, 2 Leave Time, 3 Duration | |
| up_down_status | Number | 0 Go Down Mine 1 Go Up Mine, No Transmission as All | |
| type | Number | 1 No Record Go Up Mine 2 No Record Go Down Mine 3 Record Go Up Mine 4 Record Go Down Mine | |
| branch_id | Number | Department ID | |
| person_class_id | Number | Personnel Category ID | |
| duty_id | Number | Job ID | |
| job_num | String | Employee ID | |
| name | String | Name | |
| person_name | String | Employee Name | |
| visitor_name | String | Visitor Name | |
| driver | String | Driver | |
| material_name | String | Material Name | |
| licence | String | License Plate Number | |
| contractor_name | String | Contractor Name | |
| serial_num | String | Material Number | |
| status | Number | 1 Normal, 2 Calibrateable | |
| access_status | Number | 1 Enter, 2 Leave | |
| utype | Number | Location Object Type [1 Personnel, 2 Vehicle, 3 Visitor, 5 Material, 6 Contractor, 0 Unknown Card] | |
| work_type_id | Number | Employee Job ID, Contractor Job ID | |
| duty_name | Number | Job ID | |
| degree | Number | Education Level | |
| sex | Number | Employee Gender, Visitor Gender, Contractor Gender | |
| person_class | Number | Employee Category | |
| nation | Number | Employee Ethnicity, Contractor Ethnicity | |
| branch_id | Number | Department | |
| source | Number | Visitor | |
| unit_id | Number | Data Source | |
| type | Number | Contractor |
3.Success 200
1.POST Address
http://ip:port/EHCommon/pit/pitRecord/exportPitRecordPrimitive
2.Parameter Description
| Field | Required or not | Type | Description |
| id_list | Number[] | List of entry/exit records IDs [1 2 3] | |
| start_time | Number | Start Time | |
| end_time | Number | End Time | |
| branch_id | Number | Department ID | |
| duty_id | Number | Job ID | |
| person_class_id | Number | Personnel Category ID | |
| card_id | Number | Card Number | |
| flag | String | Name and Employee ID | |
| page | Number | Pagination | |
| limit | Number | Pagination Size | |
| up_down_pit | Number | Entry/Exit Records [1 Entering the Mine 2 Entering the Mine] | |
| truck_type_id | String | Vehicle Type | |
| material_type_id | String | Material Type |
3.Success 200
1.POST Address
http://ip:port/EHCommon/pit/pitRecord/exportMonthPitRecord
2.Parameter Description
| Field | Required or not | Type | Description |
|---|---|---|---|
| start_time | Number | Downhole Time | |
| end_time | Number | Uphole Time | |
| branch_id | Number | Department ID | |
| duty_id | Number | Job ID | |
| person_class_id | Number | Personnel Category ID | |
| card_id | Number | Card Number | |
| person_name | String | Employee Name | |
| visitor_name | String | Visitor Name | |
| driver | String | Driver | |
| contractor_name | String | Contractor Name | |
| material_name | String | Material Name | |
| licence | String | License Plate Number | |
| serial_num | String | Material Number | |
| truck_type_id | String | Vehicle Type | |
| material_type_id | String | Material Type | |
| page | Number | Pagination | |
| limit | Number | Pagination Size | |
| utype | Number | Location Target Type [1 Personnel, 2 Vehicles, 3 Visitors, 5 Materials, 6 Contractors, 0 Unknown Cards] |
3.Success 200
1. POST Address
http://ip:port/EHCommon/pit/pitRecord/exportDayPitRecord
2. Parameter Description
| Field | Required or not | Type | Description |
|---|---|---|---|
| data_list | Object[] | Records to be exported | |
| start_time | Number | Pit entry time | |
| end_time | Number | Pit exit time | |
| page | Number | Pagination | |
| limit | Number | Page size | |
| up_down_status | Number | Well access status [1-On well, 2-Under well] | |
| utype | Number | Positioning object type [1-Personnel, 2-Vehicle, 3-Visitor, 5-Material, 6-Contractor, 0-Unknown card] | |
| serial_num | String | Material No. (fuzzy query) | |
| person_name | String | Employee name (fuzzy query) | |
| visitor_name | String | Visitor name (fuzzy query) | |
| licence | String | License plate number (fuzzy query) | |
| driver | String | Vehicle driver (fuzzy query) | |
| material_name | String | Material name (fuzzy query) | |
| contractor_name | String | Contractor name (fuzzy query) | |
| card_id | Number | Card number | |
| work_type_id | Number | Employee work type ID, Contractor work type ID | |
| duty_name | Number | Post ID | |
| degree | Number | Education background | |
| sex | Number | Gender of employee, visitor and contractor | |
| person_class | Number | Personnel classification | |
| nation | Number | Ethnicity of employee and contractor | |
| branch_id | Number | Department, Visitor | |
| source | Number | Data source, Contractor | |
| unit_id | Number | Contractor company, Vehicle | |
| type | Number | Vehicle type, Material type |
| Field | Required or not | Type | Description |
|---|---|---|---|
| data_list | Object[] | Records to be exported | |
| start_time | Number | Pit entry time | |
| end_time | Number | Pit exit time | |
| page | Number | Pagination | |
| limit | Number | Page size | |
| up_down_status | Number | Well access status [1-On well, 2-Under well] | |
| utype | Number | Positioning object type [1-Personnel, 2-Vehicle, 3-Visitor, 5-Material, 6-Contractor, 0-Unknown card] | |
| serial_num | String | Material No. (fuzzy query) | |
| person_name | String | Employee name (fuzzy query) | |
| visitor_name | String | Visitor name (fuzzy query) | |
| licence | String | License plate number (fuzzy query) | |
| driver | String | Vehicle driver (fuzzy query) | |
| material_name | String | Material name (fuzzy query) | |
| contractor_name | String | Contractor name (fuzzy query) | |
| card_id | Number | Card number | |
| work_type_id | Number | Employee work type ID, Contractor work type ID | |
| duty_name | Number | Post ID | |
| degree | Number | Education background | |
| sex | Number | Gender of employee, visitor and contractor | |
| person_class | Number | Personnel classification | |
| nation | Number | Ethnicity of employee and contractor | |
| branch_id | Number | Department, Visitor | |
| source | Number | Data source, Contractor | |
| unit_id | Number | Contractor company, Vehicle | |
| type | Number | Vehicle type, Material type |
3. Success 200
1.POST Address
http://ip:port/EHCommon/pit/pitRecord/getRecordByVisitor
2.Parameter Description
| Field | Required or not | Type | Description |
| scene_id | √ | Number | Scene ID |
| order | √ | Object | Sort by [{“id” => 1, “pid” => 0, “sorting”: 1}] |
3.Success 200
| Field | Type | Description |
| result | Object[] | Result Set |
| id | Number | Unit ID |
| pid | Number | Parent Level |
| name | String | Unit Name |
| visitor_count | Number | Number of Visitors under the Unit |
Correct Return Example
![]()
1.POST Address
http://ip:port/EHCommon/pit/pitRecord/getRecordByTruck
2.Parameter Description
| Field | Required or not | Type | Description |
| scene_id | √ | Number | Scene ID |
| order | √ | Object | Sort by [{“id” => 1, “pid” => 0, “sorting”: 1}] |
3.Success 200
| Field | Type | Description |
| result | Object[] | Result Set |
| id | Number | Vehicle Type ID |
| pid | Number | Parent Level |
| name | String | Vehicle Type Name |
| truck_count | Number | Number of Vehicles under the Vehicle Type |
Correct Return Example
![]()
1.POST Address
http://ip:port/EHCommon/pit/pitRecord/getRecordByMaterial
2.Parameter Description
| Field | Required or not | Type | Description |
| scene_id | √ | Number | Scene ID |
| order | √ | Object | Sort by [{“id" => 1, “pid" => 0, “sorting": 1}] |
3.Success 200
| Field | Type | Description |
| result | Object[] | Result Set |
| id | Number | Material Type ID |
| pid | Number | Parent |
| name | String | Material Type Name |
| material_count | Number | Quantity of Materials under Material Type |
Correct Return Example

1.POST Address
http://ip:port/EHCommon/pit/pitRecord/getRecordByContractor
2.Parameter Description
| Field | Required or not | Type | Description |
| scene_id | √ | Number | Scene ID |
| query_way | √ | Number | Query Method: 1. Query by Unit, 2. Query by Job Type |
| order | √ | Object | Sorting Method: [{“id" => 1, “pid" => 0, “sorting": 1}] |
3.Success 200
| Field | Type | Description |
| result | Object[] | Result set |
result – Statistics by job type
| Field | Type | Description |
| id | Number | Job ID |
| pid | Number | Parent |
| name | String | Job Name |
| contractor_count | Number | Number of Employees under Job |
result – Statistics by unit
| Field | Type | Description |
| id | Number | Unit ID |
| pid | Number | Parent |
| name | String | Unit Name |
| contractor_count | Number | Number of Contractors under this Unit |
Correct Return Example

1.POST Address
http://ip:port/EHCommon/pit/pitArea/updatePitArea
2.Parameter Description
| Field | Required or not | Type | Description |
| area_id | √ | Number | Area ID (Upper/Lower Well Area ID) |
| area_name | √ | String | Area Name |
| area | √ | String | Area Coordinates |
| area_template_id | √ | Number | Area Template Name |
| floor_id | √ | Number | Floor ID |
| type | √ | Number | Area Type [9 First Area 10 Second Area] |
| shape | √ | Number | Shape: 1 Non-circular, 2 Circular, Default Non-circular |
| circle_attribute | √ | String | Circular Attribute: {“radius”:1,”center”:{“x”:1,”y”:2]} Default Empty |
3.Success 200
| Field | Type | Description |
| message | String | Interface Request Message |
| type | Number | Interface Request Status |
| result | String | Successfully modified upper and lower well areas |
Correct Return Example

1.POST Address
http://ip:port/EHCommon/pit/pitArea/getPitArea
2.Parameter Description
| Field | Required or not | Type | Description |
| floor_id | Number | Floor ID | |
| area_name | String | Area Name |
3.Success 200
| Field | Type | Description |
| message | String | Interface Request Message |
| type | Number | Interface Request Status |
| result | Object | Return Result |
| data | Object[] | Area List |
| area_id | Number | Well Access Area ID |
| area_name | String | Well Access Area Name |
| type | Number | Well Access Area Category [9-First Area, 10-Second Area] |
| is_use | Number | Enable Status [0-Disabled, 1-Enabled] |
| floor_id | Number | Floor ID |
| area | String | Area Coordinates |
| template_name | String | rea Template Name |
| template_id | Number | Area Template ID |
| area_style | String | Area Template Style |
| shape | Number | Area Shape (Simplified Calculation): [1-Non-circular, 2-Circular] |
| relative_start | Float | Relative Start Height of Area Template |
| relative_end | Float | Relative End Height of Area Template |
| disappear_time | Number | Disappearance Timestamp of Gray Cards in the area; 0 follows the system time |
| count | Number | Total Area Count |
Correct Return Example

1.POST Address
http://ip:port/EHCommon/pit/pitArea/deletePitArea
2.Parameter Description
| Field | Required or not | Type | Description |
| area_id | √ | Number | Well Access Area ID |
3.Success 200
| Field | Type | Description |
| message | String | Interface Request Message |
| type | Number | Interface Request Status |
| result | String | Successfully deleted upper and lower well areas |
Correct Return Example

1.POST Address
http://ip:port/EHCommon/pit/pitArea/checkAreaName
2.Parameter Description
| Field | Required or not | Type | Description |
| name | √ | String | Region Name |
| id | String | Region ID |
3.Success 200
| Field | Type | Description |
| message | String | API Request Message |
| type | Number | API Request Status |
| result | Object | Request Result |
| check | Boolean | If true, the test was successful; if false, the test failed. |
| msg | String | Reason for Test Failure |
Correct Return Example

1.POST Address
http://ip:port/EHCommon/pit/pitArea/addPitArea
2.Parameter Description
| Field | Required or not | Type | Description |
| area_name | √ | String | Area Name |
| area | √ | String | Area Coordinates |
| area_template_id | √ | Number | Area Template Name |
| floor_id | √ | Number | Floor ID |
| type | √ | Number | Area Type [9 First Area, 10 Second Area] |
| shape | √ | Number | Shape, 1 Non-circular, 2 Circular, Default Non-circular |
| circle_attribute | √ | String | Circular Attribute JSON String {“radius”:1,”center”:{“x”:1,”y”:2]} Default Empty |
3.Success 200
| Field | Type | Description |
| message | String | Interface Request Message |
| type | Number | Interface Request Status |
| result | String | Successfully added upper and lower well areas |
Correct Return Example

1.POST Address
http://ip:port/EHCommon/history/gpsHistory/getCardHistory
2.Parameter Description
| Field | Required or not | Type | Description |
| begin | √ | Number | Query Start Time |
| end | Number | Query End Time | |
| uuid | Number | Unique Object ID; At least one of the parameters (uuid, card_id_list, area_id_list|area_xy) is required. | |
| card_id_list | Number[] | Card Number List; At least one of the parameters (uuid, card_id_list, area_id_list|area_xy) is required. | |
| area_id_list | Number[] | Area ID List; area_id_list and area_xy cannot be passed simultaneously. At least one of the parameters (uuid, card_id_list, area_id_list|area_xy) is required. | |
| area_xy | Number[] | Temporary Area Coordinates; area_id_list and area_xy cannot be passed simultaneously. At least one of the parameters (uuid, card_id_list, area_id_list|area_xy) is required. |
3.Success 200
| Field | Type | Description |
| result | Object[] | Result Set |
| id | Number | Auto-increment ID |
| card_id | Number | Card Number |
| uuid | Number | Unique ID |
| card_x | Float | X Coordinate |
| card_y | Float | Y Coordinate |
| time | Number | Timestamp |
Correct Return Example

1.POST Address
http://ip:port/EHCommon/pit/PitRecord/multiDetail
2.Parameter Description
| Field | Required or not | Type | Description |
| utype | √ | Number[] | Card Type: 1-Employee, 2-Vehicle, 3-Visitor, 5-Material, 6-Contractor |
| rule_type_id | √ | Number | Scene Type: 1-Entrance Overstaffing, 2-Staff Shortage |
| card_type_name | String | Card Type Name | |
| order | √ | String | Sort Order |
| field | √ | String | Sort fields only support: in_pit_time, pit_stay_time |
| scene_id | √ | Number | Scene ID |
| personnel_id | Number | Personnel Classification | |
| branch_id | Number | Department ID | |
| duty_id | Number | Post ID | |
| work_type_id | Number | Type of Work ID Vehicle information related filter conditions | |
| type_id | Number | Vehicle Type ID | |
| company | String | Visitor Company | |
| page | Number | ||
| limit | Number |
3.Success 200
| Field | Type | Description |
| result | Object | Result Set |
| count | Number | Total Count |
| data | Object[] | Data(Returned exclusively for materials) |
| card_id | Number | Card Number |
| serial_num | String | Material No. |
| name | String | Material Name |
| type_id | Number | Material Type ID |
| type_name | String | Material Type |
| company | String | Company(Returned exclusively for visitors) |
| licence | String | Returned exclusively for vehicles |
| driver | String | Driver/Contractor Exclusive Return |
| unit_name | Number | Contractor Company Name |
| unit_type_name | String | Contractor Company Type Name |
| branch_id | Number | Department ID |
| branch_name | String | Department |
| job_num | String | Employee ID (Common Fields) |
| uuid | Number | uuid |
| areas | Object[] | Current Area |
| area_id | Number | Area ID |
| area_name | Number | Area Name |
| group_id | Number | Area Group ID |
| group_name | Number | Area Group Name |
| in_area_time | String | Area Entry Time |
| stay_time | Number | Residence Duration (Unit: Second) |
| x | Number | Tag X Coordinate |
| y | Number | Tag Y Coordinate |
| z | Number | Tag Z Coordinate |
| floor_id | Number | Floor ID |
| in_pit_time | Number | Pit Entry Time |
| pit_stay_time | Number | Pit Residence Duration |
Correct Return Example

1.POST Address
http://ip:port/EHCommon/pit/PitRecord/getPitRecordPressureHistory
2.Parameter Description
| Field | Required or not | Type | Description |
| scene_id | √ | Number | Scene ID |
| type_id | √ | Number | ID Type: 1-Scene, 2-Entrance Overlimit, 3-Entrance Staff Shortage |
| begin | √ | Number | Start Timestamp (Default time interval: 3 hours) |
| end | √ | Number | End Timestamp |
3.Success 200
| Field | Type | Description |
| message | String | Interface Request Message |
| type | Number | Interface Request Status |
| result | Object[] | Historical Well Access Statistics List |
| id | Number | Primary Key ID |
| a_num | Number | Limit Number A (0 means none) |
| b_num | Number | Limit Number B (0 means none) |
| c_num | Number | Limit Number C (0 means none) |
| pit_nums | Number | Personnel Count |
| pressure_time | Number | Update Timestamp |
Correct Return Example
