数据大屏
  1. TestReportController
数据大屏
  • 默认模块
    • DigitalDashboard
      • ZtTaskController
        • 获取各个状态的禅道任务的数量
        • 根据传入的状态查询数据
      • ProgressController
        • 根据 Id 获取研发进度
        • 修改保存研发进度
      • TestTaskController
        • 新增主任务
        • 根据Id获取测试任务
        • 更新测试任务, 并且生成子任务
        • 结束所有异常停止的任务
        • 获取当天的运行情况
        • getDataByMileage
      • TestReportController
        • 获取近一周每天的运行情况 以及 近六个月每月的运行情况
          GET
      • TestDeviceController
        • 根据条件查询设备列表
      • 文件操作控制器
        • 上传文件
        • 下载文件(浏览器直接下载)
        • 删除文件
        • 根据桶名和文件获取直链
      • TestAttendanceRecordsController
        • getAllType
      • DingTalkController
        • getAttendanceRecords
      • XhLinksController
        • updateByPrimaryKeySelective
        • insertSelective
        • deleteByIds
        • selectByPrimaryKey
        • findAll
      • XhLinksCategoriesController
        • findAll
        • deleteByPrimaryKey
        • insertSelective
        • updateByPrimaryKeySelective
        • selectByPrimaryKey
      • LoginController
        • 用户登录接口
        • isLogin
        • tokenInfo
        • logout
        • 用户登录接口
      • RoleController
        • 新增角色 POST /api/role
        • 更新角色 PUT /api/role
        • 根据ID获取角色详情 GET /api/role/1
        • 获取角色列表 (支持分页和筛选)
        • 删除角色 DELETE /api/role/1
    • ZNSystem
      • MgJob
        • 通过主键查询单条作业数据
        • 新增作业数据
        • 新增作业数据(选择性)
        • 修改作业数据
        • 修改作业数据(选择性)
        • 删除作业数据
      • MgAlgorithm
        • 通过主键查询单条算法数据
        • 新增算法数据
        • 新增算法数据(选择性)
        • 修改算法数据
        • 修改算法数据(选择性)
        • 删除算法数据
      • MgRequirements
        • 通过主键查询单条需求数据
        • 新增需求数据
        • 新增需求数据(选择性)
        • 修改需求数据
        • 修改需求数据(选择性)
        • 删除需求数据
      • MgTask
        • 通过主键查询单条任务数据
        • 新增任务数据
        • 新增任务数据(选择性)
        • 修改任务数据
        • 修改任务数据(选择性)
        • 删除任务数据
    • xhzn-navigation
      • LinksCategoriesController
        • insertSelective
        • selectByPrimaryKey
        • updateByPrimaryKeySelective
        • findAll
        • deleteByPrimaryKey
      • LinksController
        • insert
        • selectByPrimaryKey
        • updateByPrimaryKeySelective
        • insertSelective
        • findAll
        • deleteByPrimaryKey
        • deleteByIds
    • xhzn-versions
      • SoftwareController
        • list
        • getById
        • create
        • update
        • check
      • VersionListController
        • list
        • getBySoftwareId
        • update
        • create
        • deleteVersion
    • Default Group
    • 数据模型
      • Schemas
        • MgJob
        • MgAlgorithm
        • MgRequirements
        • MgTask
      • 示例数据模型
        • Pet
        • Category
        • Tag
      • 禅道任务实体
  • 默认模块
    • xhzn-navigation
      • LinksCategoriesController
        • insertSelective
        • selectByPrimaryKey
        • updateByPrimaryKeySelective
        • findAll
        • deleteByPrimaryKey
      • LinksController
        • insert
        • selectByPrimaryKey
        • updateByPrimaryKeySelective
        • insertSelective
        • findAll
        • deleteByPrimaryKey
        • deleteByIds
    • xhzn-versions
      • SoftwareController
        • list
        • getById
        • create
        • update
        • check
      • VersionListController
        • list
        • getBySoftwareId
        • update
        • create
        • deleteVersion
    • Default Group
    • 数据模型
      • 示例数据模型
        • Pet
        • Category
        • Tag
  • 默认模块
    • xhzn-navigation
      • LinksCategoriesController
        • insertSelective
        • selectByPrimaryKey
        • updateByPrimaryKeySelective
        • findAll
        • deleteByPrimaryKey
      • LinksController
        • insert
        • selectByPrimaryKey
        • updateByPrimaryKeySelective
        • insertSelective
        • findAll
        • deleteByPrimaryKey
        • deleteByIds
    • xhzn-versions
      • SoftwareController
        • list
        • getById
        • create
        • update
        • check
      • VersionListController
        • list
        • getBySoftwareId
        • update
        • create
        • deleteVersion
    • Default Group
    • 数据模型
      • 示例数据模型
        • Pet
        • Category
        • Tag
  1. TestReportController

获取近一周每天的运行情况 以及 近六个月每月的运行情况

开发中
GET
/api/testReport/getDate

请求参数

Query 参数

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://127.0.0.1:8086/api/testReport/getDate?deviceId='

返回响应

🟢200Success
text/plain
格式是 "day": [] "month":[] "errorMessage":[] "total":[]
注意total中 不管是否传了deviceId 返回的都是数组,如果没传deviceId 数组第一项就是总的
date: 时间 别用recordDate
totalMileage: 总里程
totalCount: 运行总次数
totalErrorCount: 运行出错次数
totalTime: 运行总时长
示例
{
    "msg": "操作成功",
    "code": 200,
    "data": {
        "total": [
            {
                "id": null,
                "recordDate": null,
                "deviceId": null,
                "totalMileage": 66109.26,
                "totalCount": 1781,
                "totalErrorCount": 11,
                "totalTime": 256067,
                "date": null
            }
        ],
        "month": [
            {
                "id": null,
                "recordDate": null,
                "deviceId": null,
                "totalMileage": 0,
                "totalCount": 0,
                "totalErrorCount": 0,
                "totalTime": 0,
                "date": "2024-10"
            },
            {
                "id": null,
                "recordDate": null,
                "deviceId": null,
                "totalMileage": 0,
                "totalCount": 0,
                "totalErrorCount": 0,
                "totalTime": 0,
                "date": "2024-11"
            },
            {
                "id": null,
                "recordDate": null,
                "deviceId": null,
                "totalMileage": 0,
                "totalCount": 0,
                "totalErrorCount": 0,
                "totalTime": 0,
                "date": "2024-12"
            },
            {
                "id": null,
                "recordDate": null,
                "deviceId": null,
                "totalMileage": 0,
                "totalCount": 0,
                "totalErrorCount": 0,
                "totalTime": 0,
                "date": "2025-01"
            },
            {
                "id": null,
                "recordDate": null,
                "deviceId": null,
                "totalMileage": 0,
                "totalCount": 0,
                "totalErrorCount": 0,
                "totalTime": 0,
                "date": "2025-02"
            },
            {
                "id": null,
                "recordDate": null,
                "deviceId": null,
                "totalMileage": 66109.26,
                "totalCount": 1781,
                "totalErrorCount": 11,
                "totalTime": 256067,
                "date": "2025-03"
            }
        ],
        "errorMessage": [
            {
                "errorMessage": "图片数量异常: 实时数量 446, PLC数量 446, 理论数量 412",
                "messageDate": "2025-03-07T16:29:03.000+00:00",
                "deviceId": null
            },
            {
                "errorMessage": "图片数量异常: 实时数量 471, PLC数量 471, 理论数量 435",
                "messageDate": "2025-03-07T07:44:03.000+00:00",
                "deviceId": null
            },
            {
                "errorMessage": "计算零偏异常,停止计算",
                "messageDate": "2025-03-07T05:18:55.000+00:00",
                "deviceId": null
            },
            {
                "errorMessage": "计算零偏异常,停止计算",
                "messageDate": "2025-03-07T05:01:46.000+00:00",
                "deviceId": null
            },
            {
                "errorMessage": "任务进程已不存在",
                "messageDate": "2025-03-07T00:27:06.000+00:00",
                "deviceId": null
            },
            {
                "errorMessage": "任务状态为已停止",
                "messageDate": "2025-03-06T07:27:48.000+00:00",
                "deviceId": null
            },
            {
                "errorMessage": "tms-isProcessExists-isProcessExists 监听超时",
                "messageDate": "2025-03-06T06:52:31.000+00:00",
                "deviceId": null
            },
            {
                "errorMessage": "图片数量异常: 实时数量 406, PLC数量 712, 理论数量 406",
                "messageDate": "2025-03-06T02:45:51.000+00:00",
                "deviceId": null
            },
            {
                "errorMessage": "tms-isProcessExists-isProcessExists 监听超时",
                "messageDate": "2025-03-06T02:18:57.000+00:00",
                "deviceId": null
            },
            {
                "errorMessage": "图片数量异常: 实时数量 47, PLC数量 47, 理论数量 0",
                "messageDate": "2025-03-06T02:17:38.000+00:00",
                "deviceId": null
            }
        ],
        "day": [
            {
                "id": null,
                "recordDate": null,
                "deviceId": null,
                "totalMileage": 0,
                "totalCount": 0,
                "totalErrorCount": 0,
                "totalTime": 0,
                "date": "2025-03-02"
            },
            {
                "id": null,
                "recordDate": null,
                "deviceId": null,
                "totalMileage": 0,
                "totalCount": 0,
                "totalErrorCount": 0,
                "totalTime": 0,
                "date": "2025-03-03"
            },
            {
                "id": null,
                "recordDate": null,
                "deviceId": null,
                "totalMileage": 0,
                "totalCount": 220,
                "totalErrorCount": 0,
                "totalTime": 33872,
                "date": "2025-03-04"
            },
            {
                "id": null,
                "recordDate": null,
                "deviceId": null,
                "totalMileage": 0,
                "totalCount": 604,
                "totalErrorCount": 0,
                "totalTime": 86298,
                "date": "2025-03-05"
            },
            {
                "id": null,
                "recordDate": null,
                "deviceId": null,
                "totalMileage": 18029.75,
                "totalCount": 364,
                "totalErrorCount": 6,
                "totalTime": 51025,
                "date": "2025-03-06"
            },
            {
                "id": null,
                "recordDate": null,
                "deviceId": null,
                "totalMileage": 47094.78,
                "totalCount": 581,
                "totalErrorCount": 4,
                "totalTime": 83070,
                "date": "2025-03-07"
            },
            {
                "id": null,
                "recordDate": "2025-03-08",
                "deviceId": null,
                "totalMileage": 984.73,
                "totalCount": 12,
                "totalErrorCount": 1,
                "totalTime": 1802,
                "date": "2025-03-08"
            }
        ]
    }
}
🟢200成功
修改于 2025-03-07 07:20:08
上一页
getDataByMileage
下一页
根据条件查询设备列表
Built with