2.4.1.7.25.1. 查询Statos列表

    请求参数:

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

    condition参数:

    格式

    举例

    返回参数:

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

    返回数据举例:

    2.4.1.7.25.2. 查询Statos指定记录

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

    请求参数:

    字段字段名称字段类型说明是否必传
    statos_id消息标识String

    返回参数:

    返回示例:

    1. {
    2. "code": 200,
    3. "msg": "查询成功",
    4. "mix_code":130001,
    5. "mix_msg":"",
    6. "mix_ext":"",
    7. "statos_id": 1001,
    8. "statos_name": "GasElectricityRatioKaiJiaSuYe Every Hour Calculate",
    9. "description": "Every Hour (14) Calculate",
    10. "equipment_id": 1020,
    11. "data": "0.0936",
    12. "template": null,
    13. "script": null,
    14. "reference": "",
    15. "year": 2018,
    16. "month": 11,
    17. "day": 30,
    18. "created": "2018-11-30 15:06:00",
    19. "boss_sync": 0
    20. }
    21. }

    2.4.1.7.25.3. 添加Statos

    调用接口:

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

    请求参数:

    字段字段名称字段类型说明是否必传
    statos_name统计结果名称String
    description描述Text
    statistics_id统计计算标识String
    equipment_id设备标识String
    data采集数据text
    template模板/样式text
    script脚本text
    reference参考号String

    返回参数:

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

    2.4.1.7.25.4. 编辑Statos

    调用接口:

    属性
    url/api/statos/edit
    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": []

    2.4.1.7.25.5. 删除Statos

    调用接口:

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

    请求参数:

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

    返回示例: