2.4.1.7.15.1. 查询EquipmentGroup列表(关注设备组)

    请求参数:

    字段字段名称字段类型说明是否必传
    page_index查询页码Integer大于 0,如果为空,则默认从第一页显示
    page_size每页记录数Integer大于 0,如果为空,则默认为 20
    condition查询条件JsonLIKE模糊搜索条件
    start_time开始时间Datetime按创建时间搜索的开始时间和结束时间
    end_time结束时间Datetime
    is_all是否不分页返回(即返回所有数据)Boolean1:是,0:否;如果为空,则默认0

    condition参数:

    格式

    举例

    返回参数:

    字段字段名称字段类型说明是否必传
    code返回码Integer200:成功 500:失败
    msg提示信息String
    result结果Json

    返回数据举例:

    1. {
    2. "code": 200,
    3. "msg": "查询成功",
    4. "mix_code":130001,
    5. "mix_msg":"",
    6. "mix_ext":"",
    7. "result": {
    8. "page_index": 1,
    9. "page_size": 20,
    10. "total_pages": 1,
    11. "total_records": 1,
    12. "data": [
    13. {
    14. "group_id": 1001,
    15. "group_name": "pro+设备",
    16. "description": null,
    17. "sub_equipment": "1007,1005",
    18. "main_equipment": "1001",
    19. "secret": "NYEW",
    20. "image": null,
    21. "template": "[]",
    22. "script": "[]",
    23. "reference": null,
    24. "created": "2018-09-25 09:30:49",
    25. "is_available": 1,
    26. "addition": "[]",
    27. "gis": "23.5485544122,114.0661345267,0,0",
    28. "customer_id": 1001,
    29. "customer_name": "智物联",
    30. "气站状态": 1,
    31. "气电比": "0.1172",
    32. "设备尺寸": "",
    33. "锅炉吨位": "",
    34. "产气量": "10.5H",
    35. "更新时间": "2018-11-30 17:16:35"
    36. }
    37. ]
    38. }
    39. }

    2.4.1.7.15.2. 查询EquipmentGroup指定记录

    调用接口:

    属性
    url/api/equipment_group/get
    http方法post
    Content-Typeapplication/json或application/x-www-form-urlencoded

    请求参数:

    字段字段名称字段类型说明是否必传
    group_id设备组标识Integer

    返回参数:

    字段字段名称字段类型说明是否必传
    code返回码Integer200:成功 500:失败
    msg提示信息String
    result返回结果Json

    返回示例:

    1. {
    2. "code": 200,
    3. "msg": "查询成功",
    4. "mix_code":130001,
    5. "mix_msg":"",
    6. "mix_ext":"",
    7. "group_id": 1001,
    8. "group_name": "pro+设备",
    9. "description": null,
    10. "sub_equipment": "1007,1005",
    11. "main_equipment": "1001",
    12. "secret": "NYEW",
    13. "image": null,
    14. "script": "[]",
    15. "reference": null,
    16. "created": "2018-09-25 09:30:49",
    17. "is_available": 1,
    18. "addition": "[]",
    19. "gis": "23.5485544122,114.0661345267,0,0",
    20. "customer_id": 1001,
    21. "customer_name": "智物联",
    22. "气站状态": 1,
    23. "气电比": "0.1172",
    24. "设备尺寸": "",
    25. "锅炉吨位": "",
    26. "产气量": "10.5H",
    27. "更新时间": "2018-11-30 17:16:35"
    28. }
    29. }

    2.4.1.7.15.3. 添加EquipmentGroup

    调用接口:

    属性
    url/api/equipment_group/add
    http方法post
    Content-Typeapplication/json或application/x-www-form-urlencoded

    请求参数:

    字段字段名称字段类型说明是否必传
    group_name设备组名称String
    description描述String
    sub_equipment子设备标识集合,如:1001,1002,1003String
    main_equipment主设备标识Integer
    secret管理密码String
    image设备组图片路径String
    template模板/样式String
    script脚本String
    reference参考号String
    created记录创建时间datetime
    is_available是否有效:1是、0否Integer

    返回参数:

    字段字段名称字段类型说明是否必传
    code返回码Integer200:成功 500:失败
    msg提示信息String
    result返回结果Json

    返回示例:

    2.4.1.7.15.4. 编辑EquipmentGroup

    属性
    url/api/equipment_group/edit
    http方法post
    Content-Typeapplication/json或application/x-www-form-urlencoded

    请求参数:

    字段字段名称字段类型说明是否必传
    group_id设备组标识Integer
    group_name设备组名称String
    description描述String
    sub_equipment子设备标识集合,如:1001,1002,1003String
    main_equipment主设备标识Integer
    secret管理密码String
    image设备组图片路径String
    template模板/样式String
    script脚本String
    reference参考号String
    created记录创建时间datetime
    is_available是否有效:1是、0否Integer
    addition扩展信息JSON

    返回参数:

    返回示例:

    1. {
    2. "code": 200,
    3. "msg": "添加成功",
    4. "mix_code":130001,
    5. "mix_msg":"",
    6. "mix_ext":"",
    7. "result": []
    8. }

    2.4.1.7.15.5. 删除EquipmentGroup

    调用接口:

    属性
    url/api/equipment_group/delete
    http方法post
    Content-Typeapplication/json或application/x-www-form-urlencoded

    请求参数:

    字段字段名称字段类型说明是否必传
    group_id设备组标识Integer

    返回参数:

    字段字段名称字段类型说明是否必传
    code返回码Integer200:成功 500:失败
    msg提示信息String
    result返回结果Json

    返回示例:

    1. {
    2. "code": 200,
    3. "msg": "删除成功",
    4. "mix_code":130001,
    5. "mix_msg":"",
    6. "mix_ext":"",
    7. "result": []
    8. }

    2.4.1.7.15.6. 查询设备组子设备列表

    调用接口:

    属性
    url/api/equipment_group/get_equipment
    http方法post
    Content-Typeapplication/json或application/x-www-form-urlencoded

    请求参数:

    字段字段名称字段类型说明是否必传
    group_id设备组标识Integer

    返回参数:

    字段字段名称字段类型说明是否必传
    code返回码Integer200:成功 500:失败
    msg提示信息String
    result返回结果Json

    返回示例:

    1. {
    2. "code": 200,
    3. "msg": "查询成功",
    4. "mix_code":130001,
    5. "mix_msg":"",
    6. "mix_ext":"",
    7. "result": [
    8. {
    9. "equipment_id": 1005,
    10. "equipment_name": "测试设备5",
    11. "description": "测试设备5",
    12. "customer_id": 1003,
    13. "equipment_sn": "1001",
    14. "model": "测试设备5",
    15. "type_id": null,
    16. "camera_list": "测试设备5",
    17. "is_group": 0,
    18. "datasheet_id": null,
    19. "aprus_list": "",
    20. "mapping_id": 1003,
    21. "secret": "DZHR",
    22. "auth_code": null,
    23. "equipment_image": "",
    24. "addition": [],
    25. "created": "2018-08-30 18:24:19",
    26. "is_available": 1,
    27. "boss_sync": 0,
    28. "customer_name": "test",
    29. "status_code": 0,
    30. "status_name": "关机|故障"
    31. }
    32. ]
    33. }

    2.4.1.7.15.7. 查询设备组事件、故障、报警、服务、作业列表

    调用接口:

    属性
    url/api/equipment_group/get_process
    http方法post
    Content-Typeapplication/json或application/x-www-form-urlencoded

    请求参数:

    字段字段名称字段类型说明是否必传
    group_id设备组编号Integer
    start_time查询开始时间datetime
    end_time查询结束时间datetime
    page_index查询页码Integer大于 0,如果为空,则默认从第一页显示
    page_size每页记录数Integer大于 0,如果为空,则默认为 20

    返回参数:

    字段字段名称字段类型说明是否必传
    code返回码Integer200:成功 500:失败
    msg提示信息String
    result返回结果Json

    2.4.1.7.15.8. 查询设备组事件列表

    调用接口:

    属性
    url/api/equipment_group/get_event
    http方法post
    Content-Typeapplication/json或application/x-www-form-urlencoded

    请求参数:

    返回参数:

    字段字段名称字段类型说明是否必传
    code返回码Integer200:成功 500:失败
    msg提示信息String
    result返回结果Json

    返回示例:

    1. {
    2. "code": 200,
    3. "msg": "查询成功",
    4. "mix_code":130001,
    5. "mix_msg":"",
    6. "mix_ext":"",
    7. "result": {
    8. "page_index": 1,
    9. "page_size": 20,
    10. "total_pages": 0,
    11. "total_records": 0,
    12. "data": []
    13. }
    14. }

    2.4.1.7.15.9. 查询设备组故障挂板列表

    调用接口:

    属性
    url/api/equipment_group/get_fault_mosaic
    http方法post
    Content-Typeapplication/json或application/x-www-form-urlencoded

    请求参数:

    字段字段名称字段类型说明是否必传
    group_id设备组编号Integer
    page_index查询页码Integer大于 0,如果为空,则默认从第一页显示
    page_size每页记录数Integer大于 0,如果为空,则默认为 20

    返回参数:

    字段字段名称字段类型说明是否必传
    code返回码Integer200:成功 500:失败
    msg提示信息String
    result返回结果Json

    返回示例:

    1. {
    2. "code": 200,
    3. "msg": "查询成功",
    4. "mix_code":130001,
    5. "mix_msg":"",
    6. "mix_ext":"",
    7. "result": {
    8. "page_index": 1,
    9. "page_size": 20,
    10. "total_pages": 0,
    11. "total_records": 0,
    12. "data": []
    13. }
    14. }

    2.4.1.7.15.10. 查询设备组报警挂板列表

    调用接口:

    属性
    url/api/equipment_group/get_alert_mosaic
    http方法post
    Content-Typeapplication/json或application/x-www-form-urlencoded

    请求参数:

    字段字段名称字段类型说明是否必传
    group_id设备组编号Integer
    page_index查询页码Integer大于 0,如果为空,则默认从第一页显示
    page_size每页记录数Integer大于 0,如果为空,则默认为 20

    返回参数:

    字段字段名称字段类型说明是否必传
    code返回码Integer200:成功 500:失败
    msg提示信息String
    result返回结果Json

    返回示例:

    1. {
    2. "code": 200,
    3. "msg": "查询成功",
    4. "mix_code":130001,
    5. "mix_msg":"",
    6. "mix_ext":"",
    7. "result": {
    8. "page_index": 1,
    9. "page_size": 20,
    10. "total_pages": 0,
    11. "total_records": 0,
    12. "data": []
    13. }

    2.4.1.7.15.11. 查询设备组故障和报警挂板列表

    调用接口:

    属性
    url/api/equipment_group/get_mosaic_warn
    http方法post
    Content-Typeapplication/json或application/x-www-form-urlencoded

    请求参数:

    字段字段名称字段类型说明是否必传
    group_id设备组编号Integer
    page_index查询页码Integer大于 0,如果为空,则默认从第一页显示
    page_size每页记录数Integer大于 0,如果为空,则默认为 20
    字段字段名称字段类型说明是否必传
    code返回码Integer200:成功 500:失败
    msg提示信息String
    result返回结果Json

    返回示例: